I am just starting working with graphics and I would like to draw a square and then place an image on it. My long term goal would be to create a 3D square and place pictures on it with the ability to click any picture on the square and run code to change the picture.
I am creating a front end search app for AD. I have two functions both of which work, however they both have some faults.
I generally search with a either a partial name, first name, or last name so I need to use wild card searching.
This first function returns data however I cannot figure out...
Our organization just went to a web based time clock solution. We have discovered a major flaw in the application. If a user closes IE by using the X - close button without logging out then next user is automatically logged into the previous users account.
We have instructed users...
I have an app I created that currently writes data to a sql db that I created and included in the app build. I did not really think this through as the app fails on another PC then I realized that I would have to install sql express on every computer which is not very user friendly.
So what are...
I am building my first Winform that uses a datagridview. I have used the ASP.Net gridview with the sqldatasource control many times.
Here is the setup.
I have a SQL DB file. I program adds data to the db. I have a link on my main form that shows my second form which has 3 datagridviews. Now...
I was just curious. When I build my application and look in the debug folder I expected to see the exe with the icon that I specified in the project settings however; it was just the generic icon. Is this normal or am I missing a setting?
The log line is only written on the first start of the service. If I start the service again it never even writes the log file line. If I uninstall the service then re-install it and run it same thing the log file is never ran. If I uninstall the service then recomplie my...
I have a service that I created. The first thing it does is write a line to a text file. It is then suppose to run some functions that are in classes. The service starts then an error box comes up that the service failed stopped and that some services stop when the processing finishes. The main...
You are going to have to use threading for you transactions. Then you can check the thread.isbusy to see if work is being done.
Threading can be a monster and more involved that I want to post here, but there are lots of code examples out on the net.
I had the same issue when I tried to use the installutil.exe the first time. Then I found that I needed to add an installer to the project oddly enough with the same instructions you posted.
When I built the project I had the ProjectInstaller.vb file selected. I wouldn't think...
Follow these steps
Assuming that you have added an installer to the project. Build the project. Navigate to your project folder and find the executable file usually in \bin\debug\MyService.exe
Simply copy this file to the test server. You use the installutil.exe to register and install the...
Thanks for the help. Soemthing is just not right so I thought I would post all my code so it can be tried to see what others get.
First this gets the total memory of the PC.
Private Function GetTotalMemory() As Long
Dim lngtemp As Long
I am trying to get a percentage that just does not seem to work.
I am using WMI to get the Total Physical memory of my system and then the Free Physical Memory. Then get the percentage.
2147483648 - Total Memory
838028 - Free memory
According to Task Manager my physical memory is 59%
Once again you have helped me see the light. I was so focused on the problem that I could not see the forest for the trees as it were. I had completly forgot about the e.results.
Here is the code for anyone that wants to add threading to a project. Hope it helps and...
I did see that I was missing that the binding source datatsource was set in the second thread after I posted my last message.
If I move that to the runcomplete any thoughts on how to assign it to the datareader that is returned in the fillgrid method that will not cause cross threading...
The binding source and the grid are created at a module level variable so should be on the main thread. I'm not sure I understand how to get around this. Panel3 is also on the main thread and it does not trow the error on the second run so it does seem logical that it is the binding source but...
Here is the code. This first block is a button click that starts the process.
Private Sub btnsearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsearch.Click
'Create a new thread that will be used to get the data from the DB.