• Search

  • Search it up!

Search found 2285 matches

 Go to advanced search

Re: VB.NET Help - Checking If Textbox Contains Text

 by MrAksel ¦  Mon Aug 20, 2012 12:31 pm ¦  Forum: Coding Help & Support ¦  Topic: VB.NET Help - Checking If Textbox Contains Text ¦  Replies: 9 ¦  Views: 129

Code: Select all
If (TextBox1.Text + TextBox2.Text + TextBox3.Text + TextBox4.Text + TextBox5.Text).Contains("letters") Then
End If
And yes, you would be able to check if the captcha is correct your way.

Re: OMG so simple yet so hard picturebox help

 by MrAksel ¦  Sat Aug 11, 2012 9:07 pm ¦  Forum: Coding Help & Support ¦  Topic: OMG so simple yet so hard picturebox help ¦  Replies: 8 ¦  Views: 181

ToolStrip.Items.Clear() ?

Re: Tabcontrol into .txt

 by MrAksel ¦  Sat Aug 11, 2012 8:39 pm ¦  Forum: Coding Help & Support ¦  Topic: Tabcontrol into .txt ¦  Replies: 4 ¦  Views: 125

Code: Select all
For Each file As String In System.IO.Directory.GetFiles("C:\Folder")
   Dim page As New TabPage()
   page.Text = Path.GetFileNameWithoutExtension(file)
   Dim box As New TextBox()
   box.Text = System.IO.File.ReadAllText(file)
   page.Controls.Add(box)
   TabControl1.TabPages.Add(page)
Next

Re: Tabcontrol into .txt

 by MrAksel ¦  Sat Aug 11, 2012 7:54 pm ¦  Forum: Coding Help & Support ¦  Topic: Tabcontrol into .txt ¦  Replies: 4 ¦  Views: 125

Code: Select all
For Each page As TabPage In TabControl1.TabPages
   Dim writer As New IO.StreamWriter("C:\Folder\" & page.Text & ".txt")
   writer.Write(CType(page.Controls.Item(0), TextBox).Text)
   writer.Close() 
Next

OpenGL Application

 by MrAksel ¦  Fri Aug 10, 2012 12:13 pm ¦  Forum: Full Software ¦  Topic: OpenGL Application ¦  Replies: 0 ¦  Views: 207

I found a nice managed OpenGL wrapper on CodeProject, so I have tried a few things.
I continued to build on one of the samples that I downloaded ("TwoDSample"), and I like the result :)
It responds to a few keys. Try clicking on it (left or right). You can also use the arrow keys, and + and -.

Re: help with this crazy timer please...

 by MrAksel ¦  Fri Aug 10, 2012 10:26 am ¦  Forum: Coding Help & Support ¦  Topic: help with this crazy timer please... ¦  Replies: 3 ¦  Views: 95

It would be easier to use a TimeSpan. Public Class mainTimer Dim span As TimeSpan = TimeSpan.Zero Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Me.Dispose() End Sub Private Sub mainTimer_Load(sender As System.Object, e As System.EventArgs) Handles My...

Re: Decompile help?

 by MrAksel ¦  Fri Aug 10, 2012 10:14 am ¦  Forum: Codenstuff boardroom ¦  Topic: Decompile help? ¦  Replies: 2 ¦  Views: 164

It's is nothing illegal in decompiling your own applications, and you can decompile other applications too if you have permission from the creator.

Re: Take Control contest vote

 by MrAksel ¦  Tue Aug 07, 2012 12:40 pm ¦  Forum: Codenstuff boardroom ¦  Topic: Take Control contest vote ¦  Replies: 14 ¦  Views: 848

I don't have the impression that the voters really test the controls, they just look at the images :P

Re: refresh my data didn't work

 by MrAksel ¦  Mon Aug 06, 2012 2:50 pm ¦  Forum: Coding Help & Support ¦  Topic: refresh my data didn't work ¦  Replies: 2 ¦  Views: 73

You can't close an UserControl. You could call Dispose() instead though.
For the first problem, I don't have any clues at all. It might help if you show how you restore the data ;)

Re: Help-Using the cursor to draw a square

 by MrAksel ¦  Fri Aug 03, 2012 2:34 pm ¦  Forum: Coding Help & Support ¦  Topic: Help-Using the cursor to draw a square ¦  Replies: 3 ¦  Views: 108

That would not change anything. Replace the DrawRect code with this:

Code: Select all
Dim r As Rectangle = Rectangle.FromLTRB(Math.Min(_pt1.X, _pt2.X), Math.Min(_pt1.Y, _pt2.Y), Math.Max(_pt1.X, _pt2.X), Math.Max(_pt1.Y, _pt2.Y)
_gr.FillRectangle(Brushes.Black, r)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 229