Posts

Showing posts from May, 2023

Donate

Xamarin Forms Error - adb is not recognized as an internal or external command

Image
Good day! Following a tutorial on Xamarin.Forms, I encountered this issue namely " adb is not recognized as an internal or external command " when running adb commands in command prompt. After doing some research for answers to this problem, I came up with the steps to make it work. First is to locate the path of the adb application which can be found in android-sdk->platform-tools folder Next is to go to System Properties and open Environment Variables form. Under System variables, locate the Path entry and click the Edit button. Copy the folder path of the adb.exe application and add it as a new entry to the System variable Path. Click Ok and restart your computer. The adb command should work as expected.

How To Disable WPF UI Debugging In Visual Studio 2022

Image
Hello, When running your WPF application thru Visual Studio, you may find a UI toolbar that is useful for checking the Adorner or Visual Tree of the control such as below. However, if you want to remove that toolbar, go to Tools menu -> Options -> Debugging. Then uncheck " Enable in-app toolbar ". Click Ok. Run the application again and you will notice that the UI toolbar disappear.

Process.Start() Error - An error occurred trying to start process. The specified executable is not a valid application for this OS platform.

Image
Good evening! I had an issue when opening PDF files using Process.Start() which is called in a ShowFile() method of the project. The code which isn't working is shown below. System.Diagnostics.Process.Start(Path.Combine(myDocumentsPath, fileName)); The solution for that is to pass a ProcessStartInfo() object in the Start() parameter. And then set UseShellExecute property of the ProcessStartInfo object to true. The modified code that is working is shown below. System.Diagnostics.Process.Start( new ProcessStartInfo(Path.Combine(myDocumentsPath, fileName)) { UseShellExecute = true }); Output

Donate