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

    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...
  5. 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...
  6. 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
  7. 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...
  8. 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...
  9. T

    Threading problem

    I have a datagridview control on my form that is used to display data from a DB query. I am using a backgoundworker control that is used to get the data so I can display a progress bar for user notification. When the thread completes I rebind the data source of the grid and show the data. This...
  10. T

    Query runs when ran against DB in server explorer but returns no rows in code

    This statement runs correctly when I open a new query on the DB in server explorer. SELECT ID, [Program Title], [Contact Hours], [Start Date], [Expiration Date], Presenter, [Type of Program], Method FROM Programs WHERE ([Expiration Date] BETWEEN ? AND ?) Now when I run the following code in my...
  11. T

    Help with Slider form function

    I am trying to make a form expand from one size to another using a slider animation. The problem is when I run it the form resizes but without the animation. I'm not sure how to use the animation when resizing the form. It works if the form is a set size and then I run the animation. The form...
  12. T

    Copy shortcut from desktop

    What I'm trying to do is copy a shortcut from my desktop to my form. So the I would have a shortcut on my form just like the desktop. Thoughts? Thanks, Tyler
  13. T

    IF Statement question

    Hello all, Trying to get a IF statement working. strUSER = "Test1" This works.... The exception does not fire ElseIf Not strUSER Like "Test1" Then Throw New ArgumentException("Error") End If This does not.....The exception does fire strUSER = "Test1" ElseIf Not...
  14. T

    Drag N Drop with a listview

    Hello, I have a listview that displays images in the large icon view. I placed a picturebox ontop of the listview in the bottom corner so that the user could drag items onto the picture box. I stupidly thought it would be easy to do drag n drop where when you drag an image it would follow the...
  15. T

    Questions on data

    Hello, I have an app that I wrote with a SQL DB. I installed this on a test PC and then realized that it was making me download and install SQL Express. The app then failed as it could not connect to the DB. This DB is really just a temp storage place that allows me to place data and then run...
  16. T

    backgroundworker is not set to report progress?

    Hello all, I am using backgroundworker thread in my app. I also have a class in my project and am able to updated the user UI from the form, but most of my time consuming operation happens in the class so I tried to do an update like this Form1.BackgroundWorker1.ReportProgress(4, strname), but...
  17. T

    Using Databases in win form apps

    I have an app that I am writing that uses a SQL DB. I guess I assumed that since the app is interacting with the DB that it would not matter if the user had SQL installed or not. I have SQL on my Dev machine and have not had any issue, but a test build on another PC failed so I'm wondering if...
  18. T

    Reading a XML file to build a treeview

    Hello all, I used an example to create a XML document like this. <?xml version="1.0" encoding="utf-8"?> <Dups> <Parent Path="C:\Pics\Duo.JPG"> <Child>C:\Pics\DSCN1303.JPG</Child> </Parent> <Parent Path="C:\Pics\Homes.JPG"> <Child>C:\Pics\DSCN1295.JPG</Child> </Parent> </Dups>...
  19. T

    Sql group by

    Hello, all I have a table that has 3 columns. name path hash Now I know that there are duplicate records. I want to return all the records and I want to group them by the column that will show the duplicates which is the hash field. I want all the records returned and I want the duplicate...
  20. T

    Useing a class in a win app

    Hello, I am creating a win app that uses a class. Every time I try to fill a property or read a property of the class I am getting an error that there no instance of the object. I have a web app that I am also building that I have dozens of classes in and have no problems what so ever so I am...
Top Bottom