Search results

  1. T

    Draw a square

    Hello all, 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. Thanks, Ty
  2. T

    Active Directory

    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...
  3. T

    Hide, Disable Internet Explorer close button

    Hello all, 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...
  4. T

    Best way for storing Data n a win form app

    Thanks for the time. I'll check that out. Ty
  5. T

    Best way for storing Data n a win form app

    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...
  6. T

    Problem with datagridview showing DB data changes

    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...
  7. T

    Application build icon

    Hello, 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? Thanks, Ty
  8. T

    Service starts then fails

    More information 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...
  9. T

    Service starts then fails

    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...
  10. T

    Question onstop

    Threading 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. Ty
  11. T

    Question Create a Windows Service in VS 2008 Pro

    Some thoughts 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...
  12. T

    Question Deploy to Test Server

    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...
  13. T

    Question creating window service which writes system information to a text file

    Try this Download WMICodeCreator. This will not only do what you need but if you change the output language it writes the code for you. Ty
  14. T

    Math Percentage

    Well that was simple enough Thanks! Although I wonder why I cannot get the same from the WMI code. Ty
  15. T

    Math Percentage

    mmmmmm.. Manster, 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 Dim lngReturn...
  16. T

    Math Percentage

    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% This is...
  17. T

    Threading problem

    Got it jmcilhinney, 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...
  18. T

    Threading problem

    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...
  19. T

    Threading problem

    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...
  20. T

    Threading problem

    Code 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. 'Show the...
Top Bottom