• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2026 Replies
  • 331 Replies
    1928 Replies

Search found 2285 matches

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

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

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.
by MrAksel
Sat Aug 11, 2012 10:07 pm
Forum: Coding Help & Support
Topic: OMG so simple yet so hard picturebox help
Replies: 8
Views: 454

Re: OMG so simple yet so hard picturebox help

ToolStrip.Items.Clear() ?
by MrAksel
Sat Aug 11, 2012 9:39 pm
Forum: Coding Help & Support
Topic: Tabcontrol into .txt
Replies: 4
Views: 272

Re: Tabcontrol into .txt

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
by MrAksel
Sat Aug 11, 2012 8:54 pm
Forum: Coding Help & Support
Topic: Tabcontrol into .txt
Replies: 4
Views: 272

Re: Tabcontrol into .txt

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
by MrAksel
Fri Aug 10, 2012 1:13 pm
Forum: Full Software
Topic: OpenGL Application
Replies: 0
Views: 427

OpenGL Application

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 -.
by MrAksel
Fri Aug 10, 2012 11:26 am
Forum: Coding Help & Support
Topic: help with this crazy timer please...
Replies: 3
Views: 203

Re: help with this crazy timer please...

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...
by MrAksel
Fri Aug 10, 2012 11:14 am
Forum: Codenstuff boardroom
Topic: Decompile help?
Replies: 2
Views: 347

Re: Decompile help?

It's is nothing illegal in decompiling your own applications, and you can decompile other applications too if you have permission from the creator.
by MrAksel
Tue Aug 07, 2012 1:40 pm
Forum: Codenstuff boardroom
Topic: Take Control contest vote
Replies: 14
Views: 1224

Re: Take Control contest vote

I don't have the impression that the voters really test the controls, they just look at the images :P
by MrAksel
Mon Aug 06, 2012 3:50 pm
Forum: Coding Help & Support
Topic: refresh my data didn't work
Replies: 2
Views: 195

Re: refresh my data didn't work

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 ;)
by MrAksel
Fri Aug 03, 2012 3:34 pm
Forum: Coding Help & Support
Topic: Help-Using the cursor to draw a square
Replies: 3
Views: 251

Re: Help-Using the cursor to draw a square

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)

Go to advanced search