Progress bar based on exe running process on task manager
Hi Everyone, I tried to code for progress bar based on running .exe file on the task manager. If the file run, the progress bar will appear and when it done, the progress bar will finish. Thank You very much for your help and answer Best Regard …
getting just profile name from profile path
Hi I have a list of profile paths, and I want to remove the c:\users\ and just keep the profile name Things to consider - if run on a computer with a different language then I assume it is not always called c:\users\ The list of profiles are not…
How to auto calculate two rows into third one in datagridview table who uses access database
I insert Access database into Visual Studio Basic. I have put datagridview on the form who uses same database. What i am ask is: How to auto calculate one of the row cell as product of another two, within same datagridview, same database. When you enter…
Special variables declarion and saving output in vb.net
Hi, I am using following code but stuck with variable declaration %UserName% and saving output in text file with ">" Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim get_AppxList As New…
Datagridview as dataentry facing issue
Hi, Please I am using following code in vb.net in order to move datagridview cursor to move to next cell upon enter key, I am facing problem that when cell reached to last column upon enter its insert new row into datagridview before first row which is…
Getting a list of user profile paths on a computer
Hi I am trying to obtain a list of all user profile paths on a machine - just those which are real users so excluding ones like default, public, network services etc I can do it successfully by iterating HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows…
Get selected files from the desktop
Hello Programmers ... Is there a way to get the dynamically selected file or folder paths from the windows 7 desktop? And the result, I would like to show them in a ListBox1 control. Yes, it's an example, it would be great. I await your prompt…
File copy to directory when dir name is not available
Hi, I would like to copy a file (MyFile.txt) to multiple directories with a dynamically created names. In other words, I know the ParentDirectory name but not the child directories as shown in screenshot. There may be sub-directories under…
Opening a specific folder from VB
Hi I am trying to open a specified folder location from VB I am using Process.Start("C:\temp") as example and this works fine But some of the paths I want to open won't work in same way e.g. Process.Start("%WINDIR%\Installer")…
How can I make the first letter of every word to uppercase, In Visual Basic
Hi Great People I am trying to make the first letter of each word in a textbox to Uppercase Maybe using Keypress Event, or Keydown event. Lets say a user types in textbox1 (mickey m mouse) the result I require is (Mickey M Mouse) also there could be…
VB.Net Streamreader
Good morning all. I have basic coding skills so please bear with me! I have created an application which writes a line of text to a file, simple enough. The line itself says xxxxxx | xxxxxx. Could someone tell how i extract the second part of that…
VB.Net copy a directory to another directory
Hi, With following code, I am trying to copy a directory (_sPath) with all files and subdirectories to another folder (_dpath). Dim _sPath() As String = IO.Directory.GetDirectories(IO.Path.Combine("C:\Users", Environment.UserName,…
Help logging into remote server
I need to create a program to restart 3 remote, non AD joined servers. Using VS2019 and I added the LoginForm to the project. Now I am lost. Can anybody point me in the right direction to collect a username and password and then pass that to a restart…
how can i use collectionindexint in vb.net
now i want use collectionindexint in vb.nte .for i moved a store product form oracle to sql service by ssma. the parameter of produce is user define table .by ssma ,it changed to collectionindecint. how can i use it in vb.net
Cant find method DataGridView.ClearSelection(Int32, Int32, Boolean)
Hello, I am using VS VB.Net with .NET Framework 4.8. I want to clear the selection of all cells in a row of a DataGridView except for one cell. The .NET API Browser shows a method for that "ClearSelection(Int32, Int32, Boolean)". But with…
Push Shared Property value change to object instances Vb.Net
Hallo All, I have following code and i am trying to push the shared property change to another class object instances. I have a class setting with shared property language. I have another class Test where it takes this shared property. I want to…
Help with VB 2019 and Win Forms App .Net Framework
open-database-by-sql-server-dotnet-data-provider At the above link is what I'm following to learn how to connect a SQL server table to a VB 2019 form - creating a .Net Framework app. I'm stuck at Steps 2 under the section "Use Server…
Dataset Column Expression Math Error when using convert
OK, this has me stumped. I am just trying to round a column using an expression in datatable column. Here is a program that shows the behavior i am not expecting Dim T As New DataTable Dim Ty As System.Type Ty =…
How to create a webhook listener in VB?
I want to use VB to create a webhook listener to consume messages from a service. The service does not have a listing in Nuget under Microsoft.AspNet.WebHooks.Receivers.*. The service requires an SSL certificate from an approved root authority. The…