Jump to content
Xtreme .Net Talk

mutant

*Experts*
  • Posts

    1922
  • Joined

  • Last visited

Everything posted by mutant

  1. You can find a great control in that URL that will help you achieve that and it comes with the source: http://www.dotnetmagic.com/
  2. I dont think there is that possibility because both of them do excatly the same thing and they have both the KeyValue of 13. [edit] [/edit] Sorry I misunderstood your question, I realized it now that I just look at your response.
  3. System.Environment.CommandLine :)
  4. mutant

    New to VB.Net

    Have a look on these websites: http://www.windowsforms.com http://www.gotdotnet.com http://www.codeproject.com
  5. mutant

    colercoding

    Thank you for correcting me VolteFace, I didnt have VS.NET available to me at the time I was writing that and so I wasnt sure of the loop. :)
  6. Yes, the files should be on MSDN discs, 3 of them.
  7. The help files should be there, Ive heard of some people missing them in the standard versions. Maybe you could return the software and get a new copy and see if its there.
  8. mutant

    colercoding

    Yes, that should work.
  9. mutant

    colercoding

    The code I showed you highlights all occurences of the string, it probably doesnt highlight it in your case becuase you never reset the start variable to 0 to search the whole thing for each string. Also you you have to change this line for every string: start += 8 'change this number to the length of your string. With the length of your string. And becuase you are doing more than one loop you have to substitute this: If start = -1 Then Return With: If start = -1 Then Exit Do
  10. mutant

    Icons?

    You can make 16x16 in VS.NET by creating a new icon, going to the Image menu and then New Image Type. This will show you a list of available sizes and formats.
  11. mutant

    colercoding

    Here is an example of what VolteFace said: Dim start As Integer = 0 Do start = r.Text.IndexOf("Add type", start) If start = -1 Then Return 'if not found the value will be -1 r.SelectionStart = start r.SelectionLength = 8 r.SelectionColor = Color.Red start += 8 Loop
  12. mutant

    colercoding

    You would have write syntax highlighting yourself or download/buy a ready control. RichTextBox doesnt have that functionality built in.
  13. From what I see in your code, that line is not in any sub or function (cant do that), put it in your form load event handler.
  14. I dont know if I understood you correctly, you have the logging in done, if the user enters good username and pass the datagrid is populated. But if the combination is wrong you have an empty datagrid. Could you show the code you use to get the user authenticated? As for two people creating same username, you could set the username colum of the database as a primary key, so two same usernames will not be allowed.
  15. What if the user chooses more than one? Its a checkbox list. Maybe you should use RadioButtons if you want to limit to only one.
  16. Use IO.File.Delete instead of Kill. :D
  17. mutant

    webclient

    I tried your code, none of those two imaes exist on the server. Tried downloading and viewing in browser. Thats why the error. Maybe you should look for some other website with images for testing
  18. You could have an arraylist to keep track of those newly created textboxes, and then when you want them to disappear go through the array and dispose them: 'Somewhere on top of your code Dim boxes As New ArrayList 'then somewhere else in your keydown event... Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown Dim txtBox As New TextBox 'do some properties here... Me.Controls.Add(txtBox) boxes.Add(txtBox) End Sub 'then somewhere else to dispose them.... Public Sub DestroyBoxes() Dim x As Integer For x = 0 to Boxes.Count - 1 DirectCast(Boxes(x), TextBox).Dispose() Next End Sub
  19. mutant

    webclient

    What is your code? What lines is the error on?
  20. You dont need to register .NET DLLs, framework takes care of managing them. Your second question, you mean you want to access and view the GUID?
  21. The next thing you need is the command that will be executed in the database, something like: Dim dbCmd As New OleDb.OleDbCommand("command text goes here", Conn) First the command that will be executed, like: SELECT columnname FROM tablename And then you provide the connection that will be used. The next thing you have to do is execute the command. If the command returns results (like the one I showed above) you use the ExecuteReader class to get the data to the OldDBDataReader. If you query doesnt return anything, like a querty that inserts data then you execute the command with the ExecuteNonQuery method.
  22. In the code shown below the text you have trouble understanding they are showing that you first created a shared variable which can be access globally and then what is done in that code is putting an actual instance of the form into the variable that is shared. So now you have a shared variable that contains an instance of the form, that was assigned to it by first creating the instance and then making the shared variable store it.
  23. VS.NET academic contains the same stuff as VS.NET pro with addition of student tools. You dont get much bonus stuff like you do with Enterprise versions but its good enough. You get VB.NET, C#, C++ and J# with it.
  24. Some of the overloads of DrawString accept an argument called StringFormat, this is where you can use it: Dim strfmt As New System.Drawing.StringFormat strfmt.Alignment = StringAlignment.Center 'you have 3 choices here Then just pass in this as the StringFormat argument.
  25. mutant

    Sorting

    You say you have a colletion so Im assuming you have an array or ArrayList . Did you try the sort method of the array?
×
×
  • Create New...