Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sjn78
  • Order by date
  1. sjn78

    listview control - alternate backcolor

    In a loop readin records using i as a counter item.UseItemStyleForSubItems = False If i Mod 2 = 0 Then item.SubItems(0).BackColor = System.Drawing.SystemColors.Window Else item.SubItems(0).BackColor = System.Drawing.Color.LightGreen End If i += 1 Try that to start with, I did this a fair...
  2. sjn78

    Writing out a Recordset as a Text File (How?)

    I was doing the same thing, reading a text file into datasets etc, and then writing them back out to txt files. As you have probably discovered, there is plenty of code to write and I got to the stage where I stopped it all and put it into an access database figuring I would get the user to get...
  3. sjn78

    Repaint graphics

    My work backgroud is to do with drawing programs, ie Cad, not sure if anyone has heard of programs such as 12D and MapInfo (MapInfo is worldwide application though). That is the reason behind my suggestion. But as the first post wasn't too clear on what his program was for, paint program or...
  4. sjn78

    Repaint graphics

    If I was doing it I woudn't go with the bitmap...how do u interact with already drawn objects if you want to enable erasing?? Keep all of your lines, rectangles, etc in an array. Dim myRectangles() as Rectangle For starters, make you array 100 or something, just to see what it going on...
  5. sjn78

    Accessing Access queries from VB.Net...

    If your using Access, you can just go to the query, change it to the SQL View, and copy and paste it into your code. You will have to make some small adjustments, but nothing major.
  6. sjn78

    Send an email using the DEFAULT MAIL CLIENT

    Why not use the mailto process?? Will bring up the default mail client whatever it may be. You can fill in all of the fields by code, and then the user just has to press send and its done.
  7. sjn78

    vb net for shareware

    XP SP1 cd comes with the framework in the disc, but you have to install it yourself. SP2....framework is automatically installed?? not sure.
  8. sjn78

    How to declare a global variable

    Aren't modules a thing of the past? You can pass the object or whatever is it by value or by reference between forms using proper OOP methodolgy.
  9. sjn78

    What instead of App.Path?

    application.staruppath Very similar if not that, can't remember off hand.
  10. sjn78

    error trying to create a form.

    I had this problem once, but you won't like my answer. I tried reinstalling VB/VS.Net and it still wouldn't fix it, so I ended up reformating.
  11. sjn78

    Event Triggering Order

    Explain a bit more on what you are trying to do, eg, what controls and events you want triggered when.
  12. sjn78

    Using DirectCast in a class

    If your statusbar is on your main form you need to pass the main form into your class Class myStatusBar ' Assuming frmMain is your form with the statusbar Shared Sub WriteStatusBarMSG(ByVal Message as String, ByRef f as frmMain) f.Statusbar1.Text = Message End Sub End Class '...
  13. sjn78

    Select Case

    Yes, but whats the point of using the 24 lines of code. You are doing the same thing 4 times. The way I showed is 7 lines. And later, if you put more fields in, you just have to name your textbox in an approiate manner, eg txtSuburb, to get Suburb to be displayed in the message box if its not...
  14. sjn78

    making a datagrid like microsoft outlook

    http://www.glacialcomponents.com/ProdDetail.aspx?pid=GlacialList It may be able to do what you want. I haven't downloaded, but its worth a shot.
  15. sjn78

    Select Case

    Private Sub txtBox_Validated(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFirstName.Validated, txtLastName.Validated, txtDOB.Validated, txtTime.Validate Dim t as TextBox t = DirecCast(sender, TextBox) If t.Text = "" Then MessageBox.Show("Please provide " &...
  16. sjn78

    Connecting to a Microsoft Access Database

    That doesn't seem right. What is your connection string? And having the database open doesn't affect anything when using it in your program, unless you are modifing a tables structure.
  17. sjn78

    Select Multiple Items in TreeView

    You can't. Not even in Explorer. I think you are meaning the right hand side in explorer with file view. It is a listview, and that has the ability to do mulit-selections. It doesn't make sense to have multi-select in a treeview, you can only view the contents of one folder at a time, so...
  18. sjn78

    Mouse Click in VB.NET

    Record what?? mouse x & y, what button was clicked? You should be able to do all of this on the mousedown event.
  19. sjn78

    How to create a status bar for custom browser like IE bar?

    There are too many unknowns to make a progress bar display accuratley. eg, your connection speed, the site's speed, the pages size. Only way I can think of doing this to get it close is to try and get the websites size, then work out how much you have downloaded then show the progress bar to...
  20. sjn78

    How to create a status bar for custom browser like IE bar?

    By the look of IE's statusbar, I think you can manage with the statusbar in .NET If you want to show a progress bar, thats not too hard either. http://www.dotnetforums.net/showthread.php?t=75910&highlight=progress+statusbar

Part and Inventory Search

Back
Top