I just started using Microsoft Visual Basic 2010 Express.
I made a simple calculator.
Discuss Visual Basic.
Last edited by CheeseMunchy (2012-02-11 09:38:50)
Offline
I've made $10 off a browser I made
Offline
majormax wrote:
I've made $10 off a browser I made
![]()
How did u do that?
lollol i'm such a noob.
Last edited by CheeseMunchy (2012-02-11 09:44:52)
Offline
majormax wrote:
I've made $10 off a browser I made
![]()
How did you make money off of it?
Anyway, I've made a browser, Optum, it's around here somewhere. Then I lost the source when my computer crashed.
Offline
Is it possible to make an autoclicker with an interval of like .0000000000001?
I heard someone say something about looping.
Offline
peterkap wrote:
Is it possible to make an autoclicker with an interval of like .0000000000001?
I heard someone say something about looping.
I know you can loop. I have no idea how.
Offline
I my gosh. I'm already make epic programs!
I made a program that changes the the value of a label by 1!
XP
Offline
Wow, this is easier then I thought.
Offline
Does anyone know how to make something wait
?
Offline
Daffy22 wrote:
CheeseMunchy wrote:
Does anyone know how to make something wait
?System.threading.thread.sleep(100) will pause for 1 second.
Btw, check my sig. Open Mind is made in VB![]()
Ok, thanks!
I'll check it out. :>
Offline
Any one know how to connect Visual Basic (.Net) to scratch so they can communicate?
I'm planing on using VB as an interface to control a real world object with inputs from scratch.
My site Offline
what-the wrote:
Any one know how to connect Visual Basic (.Net) to scratch so they can communicate?
I'm planing on using VB as an interface to control a real world object with inputs from scratch.
Not really sure thats possible. Could you use a mod to write to file and then use the .net filewatcher control to check for new files? Im not 100% sure I know what you mean.
Offline
Daffy22 wrote:
what-the wrote:
Any one know how to connect Visual Basic (.Net) to scratch so they can communicate?
I'm planing on using VB as an interface to control a real world object with inputs from scratch.Not really sure thats possible. Could you use a mod to write to file and then use the .net filewatcher control to check for new files? Im not 100% sure I know what you mean.
![]()
it would be cool if someone wrote a program that would probably use wminput to tell Scratch the sensor values of the Wiimote lol
Offline
nathanprocks wrote:
Daffy22 wrote:
what-the wrote:
Any one know how to connect Visual Basic (.Net) to scratch so they can communicate?
I'm planing on using VB as an interface to control a real world object with inputs from scratch.Not really sure thats possible. Could you use a mod to write to file and then use the .net filewatcher control to check for new files? Im not 100% sure I know what you mean.
![]()
it would be cool if someone wrote a program that would probably use wminput to tell Scratch the sensor values of the Wiimote lol
Yeah! Not gona happen in vb though
Offline
Found some info on communicating with VB.net.
Imports System
Imports System.IO.Ports
Public Class Form1
Dim WithEvents Port As SerialPort = _
New SerialPort("COM1", 9600, Parity.None, 8, StopBits.One)
This is great.
So scratch communicates on COM1, 42001.
So how many bits does scratch use, parity and stop bits?
And the format scratch communicates.
http://www.codeproject.com/Articles/17190/Communication-on-a-serial-port-in-NET-2-0
for more info.
Last edited by what-the (2012-02-12 06:22:26)
My site Offline
Daffy22 wrote:
nathanprocks wrote:
Daffy22 wrote:
Not really sure thats possible. Could you use a mod to write to file and then use the .net filewatcher control to check for new files? Im not 100% sure I know what you mean.
![]()
it would be cool if someone wrote a program that would probably use wminput to tell Scratch the sensor values of the Wiimote lol
Yeah! Not gona happen in vb though
![]()
![]()
Did you make Open Mind?
Ah! Here's Optum, my web browser!
Last edited by SeptimusHeap (2012-02-12 08:07:37)
Offline
Hey, could somebody look over this code, I don't know what's wrong. It can't send emails.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox2.Text = "" Then
TextBox2.Text = "No Message"
End If
If TextBox1.Text = "" Then
MsgBox("Please enter an adress.")
Exit Sub
End If
Dim mTo As System.Net.Mail.MailAddress
Try
Dim AdressTo As New System.Net.Mail.MailAddress(TextBox1.Text)
mTo = AdressTo
Catch
MsgBox("Invalid target adress")
Exit Sub
End Try
Dim mFrom As System.Net.Mail.MailAddress
Try
Dim AdressFrom As New System.Net.Mail.MailAddress(My.Settings.EmailUsername)
mFrom = AdressFrom
Catch
MsgBox("Invalid sender email")
Exit Sub
End Try
Dim smtpServer As New SmtpClient()
Dim mail As New MailMessage()
smtpServer.Credentials = New Net.NetworkCredential(My.Settings.EmailUsername, My.Settings.EmailPass)
If My.Settings.EmailSite = "Yahoo" Then
smtpServer.Port = 465
smtpServer.Host = "plus.smtp.mail.yahoo.com"
smtpServer.EnableSsl = True
End If
mail = New MailMessage()
mail.From = New MailAddress(My.Settings.EmailUsername)
mail.To.Add(TextBox1.Text)
mail.Subject = TextBox2.Text
mail.Body = TextBox3.Text
Try
smtpServer.Send(mail)
Catch
MsgBox("Failed to send email. Please check username/password")
Exit Sub
End Try
MsgBox("Mail Sent Succesfull!")
End Sub
End ClassOffline
Also, I'm trying to add an image background to my application, is there any way to make the back of a tabstrip transparent?
Offline
SeptimusHeap wrote:
Also, I'm trying to add an image background to my application, is there any way to make the back of a tabstrip transparent?
I don't think so...
Offline
SeptimusHeap wrote:
Hey, could somebody look over this code, I don't know what's wrong. It can't send emails.
Code:
P...
Have you made sure that your ISP allows you to send emails? I setup my computer before as an email host and my ISP would not allow me to send emails (It's meant to reduce spam).
My site Offline
what-the wrote:
Found some info on communicating with VB.net.
Imports System
Imports System.IO.Ports
Public Class Form1
Dim WithEvents Port As SerialPort = _
New SerialPort("COM1", 9600, Parity.None, 8, StopBits.One)
This is great.
So scratch communicates on COM1, 42001.
So how many bits does scratch use, parity and stop bits?
And the format scratch communicates.
http://www.codeproject.com/Articles/17190/Communication-on-a-serial-port-in-NET-2-0
for more info.
Are you sure Scratch has to communicate on COM1? It's a port that doesn't exist on many computers anymore... including mine
For the format, it's
byte byte byte byte message
the four bytes represent the size of the message string.
Offline
I'm making a WYSIWYG editor in VB.Net that uses RTF (NOT the kind WordPad or MS Word uses) called Coco Office. (it's actually gonna become a whole suite of programs someday)
So far it has save, open, bold, underline, italic, copy pictures into the text box, resize those pictures(I think), and about.
And all of that in only 70 lines of code.
And 4 resources.
Yes, I know. It's pretty powerful for VB.
And soon, I'm gonna use some module thingy I found online to make it look like MS Word 2007 when I figure out how to use it.


Offline
cocolover76 wrote:
I'm making a WYSIWYG editor in VB.Net that uses RTF (NOT the kind WordPad or MS Word uses) called Coco Office. (it's actually gonna become a whole suite of programs someday)
So far it has save, open, bold, underline, italic, copy pictures into the text box, resize those pictures(I think), and about.
And all of that in only 70 lines of code.
And 4 resources.
Yes, I know. It's pretty powerful for VB.
And soon, I'm gonna use some module thingy I found online to make it look like MS Word 2007 when I figure out how to use it.
Got a screenshot!
http://imgur.com/s6cQq
For Antidote users:
EDIT: Also, you might wanna note it saves to .COF files. Coco OFfice.
Last edited by cocolover76 (2012-02-12 10:01:26)


Offline