Jump to content
Xtreme .Net Talk

BrettW

Avatar/Signature
  • Posts

    36
  • Joined

  • Last visited

About BrettW

  • Birthday 01/07/1980

Personal Information

  • Visual Studio .NET Version
    Visual Basic Express 2008 Edition
  • .NET Preferred Language
    VB.NET, C#

BrettW's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. hahahaha this post is so old and no replies
  2. idk but try this: put it in the combobox1 text changed bit combobox2.items.remove(combobox1.text)
  3. so is it impossible
  4. how can you make the web request not use a proxy at all? (not use the system proxy)
  5. Thanks, but i am making a program that cleans out your pc and defrags it, deletes temp files etc. I could just run Execute defrag.exe but i want a progress bar etc. i wonder if there is any other way since you can't do it in XP.
  6. It highlights the 'Next' line when it throws the exception. I am running Windows XP SP2 on a HP 6730b laptop.
  7. Ok. Umm, when I tried this, it came up with the exception: Invalid Class ? Dim wmi As New ManagementObjectSearcher("Select * from Win32_Volume Where Name = 'C:\\'") Dim volumes As ManagementObjectCollection volumes = wmi.Get() For Each Volume As ManagementObject In volumes Volume.InvokeMethod("Defrag", Nothing) Next
  8. Is there any way to get the defrag progress so i can use a Progress Bar?
  9. Thanks, may I ask what is this bit for: Dim ComputerName As String = "" ??
  10. Does anyone know any way to defrag a disk in vb.net??
  11. The integer problem is fixed now but i have another problem: Public Class ReplaceStr Dim start As Integer Dim first As Boolean = True Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click start = Form1.TextBox1.SelectionStart Try Form1.TextBox1.Find(TextBox1.Text, start, RichTextBoxFinds.None) Form1.TextBox1.Focus() If first = False Then start = start + 1 End If first = False Catch ex As Exception MsgBox("The text was not found", MsgBoxStyle.Information, "VBS Create") End Try End Sub End Class This is not working to find the next occurence of a word. Can someone pls help.
  12. No i didn't copy and paste it. There is absolutely no explanation for this strange behaviour. Perhaps there is a bug in VB. But is normally works?!??!?!?! I will experiment to try and get it to work.
  13. I am trying to get the starting point of the selection and then add 1 to it and search from there like this: dim start as integer start = Form1.RichTextBox1.SelectionStart start = start + 1 MsgBox(start) Try Form1.RichTextBox1.Find(TextBox1.Text, start, RichTextBoxFinds.None) Catch ex As Exception MsgBox("The text was not found", MsgBoxStyle.Information, "VBS Create") End Try But it won't add 1 to start it just adds it to the end (1 + 1 = 11)???
  14. Hi all. I'm trying to find text in richtextbox like so: RichTextBox1.Find("Hello") Which works but it doesn't find the next occurrence of 'Hello'. (Find Next) Can anyone help me?
  15. It has terminate option(allow or deny) but it does nothing. I have full control over the process but can't kill it.
×
×
  • Create New...