
Dodgeram01
Avatar/Signature-
Posts
41 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Dodgeram01
-
Thanks guys! EXACTLY what I needed.
-
Is there a way to save the back color of a textbox in the same format everytime? Sometimes it will save the color as Color [Red] And sometimes it will save it as Color [A=255, R=82, G=226, B=180]. I need to be able to read this string and convert it to the type system.drawing.color, which I can do. My problem is I can't do this if I don't know what format the color will save in. Is there any easy way around this, or will I have to play around with seeing what format it is in and then formatting it how I need it?
-
Make sure that your friends have installed the .NET Framework on their computers, which is available for free download from the Microsoft Website. Unfortunately...it's 20mb, but it contains all the runtime files they'll need.
-
Is this what you want? Dim MyStream As New IO.FileStream("C:\blah.txt", IO.FileMode.Create) Dim MyWriter As New IO.StreamWriter(MyStream) MyWriter.Write("My Name" & vbCrLf & " is green and cute.") MyWriter.Close() MyStream.Close()
-
Uninstall everythign that you can. Then run a program such as Regcleaner and remove all the little left behinds. Then try it again.
-
Another good book is "Coding Techniques For Microsoft Visual Basic .NET" by John Connel. http://www.amazon.com/exec/obidos/ASIN/0735612544/qid=1038699326/sr=2-1/ref=sr_2_1/104-7876988-5095901 Another book which is looking good (have to wait until Christmas to indulge myself in it) is "Visual Basic .NET: The Tutorials" by Karl Moore. http://www.amazon.com/exec/obidos/ASIN/159059021X/qid=1038699353/sr=2-1/ref=sr_2_1/104-7876988-5095901
-
I was right, it was simple. I moved my additional code below the Initialize Component for the form designer and it worked!
-
I appologize for my denseness... I added the code as you instructed. In my little demo project to help me understand this and get this concept down, I have a radio button on form1 which when selected sets the public variable "SandwichHam" to 1, and then shows the form2. On form2, I added the code as you instructed. I then added the follow: If frm.SandwichHam =1 Then TextBox1.Text = "You ordered ham." End If However, it throws an exception ("An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication1.exe Additional information: Object reference not set to an instance of an object."). I am sure that this is something simple, but apparently still too complicated for my simple mind :rolleyes: :rolleyes: :-\ Thanks again!
-
Excuse my ignorance, but how would one do this? Thank you.
-
Look a little farther in that book. The one I'm thinking of was labeled something like "Your First Real Program." I read it awhile ago though, so I may be wrong.
-
And one of the first samples in "Coding Techniques for Visual Basic .NET" is a clock program! So between the two, you should be able to figure it out.
-
What should one read into, or how would one prevent multiple copies of a form from being opened? For example, my program has an about form, and I don't want the user to be able to open multiple copies of it. Thanks.
-
Just what I was hoping for! Thank You!
-
Okay, practicing my coding skills (lol), I decided to make a little program that would figure the sales tax in with stuff. Anyways, I've come to the conclusion that it'd be a lot more accurate if it would round the total amount to the hundredths place. I believe it will be somethign with the math.round(number) deal, but I can't quite figure it out. Thanks. (the number is assigned to a string).
-
There are many tutorials around. You should check out Karl Moore's sight, vbworld.com. The gotdotnet.com site has a bunch as well. dotnet247 has some as well. They're all over the net, just do a search for them in Google and I'm sure you'll find more than enough. I would also recommend buying a few good books. Francesco Balena's book "Programming Microsoft Visual Basic .NET (Core Reference)" is a good book. It comes with an E-book of his previous book, which is on programming Visual Basic 6.
-
Crazed Lunatic, I don't quite understand the sample. :( Also, the complier didn't like the r.sample line. My code basically looks like this: Console.WriteLine("SP4-What size pilot jet does a Sportsman 400 have?") answer = Console.ReadLine If answer = 40 Then Points = Points + 1 'Points is a counter Console.WriteLine("Correct! Total Points: " & Points) Console.ReadLine() Else Console.WriteLine("Incorrect! Answer is: 40") Console.WriteLine("Total Points: " & Points) Console.ReadLine() End If I put the Console.Readline's in there so that the application would pause, and wait for the user to press a key to continue. I'm not sure if there's a better way to do that though. Back to the subject, I'm not sure like if I should put each question and it's answer logic in separate subs, or what the deal is with it. Thank you.
-
No they're not (not that skilled, yet).
-
I am in the process of making a Console app which will ask trivial questions (ATV specs mostly). Anyways, I've done a little work with the Random object, and was wondering how one would possibly going about using it so that the program will ask the questions in a random order. Thanks.
-
I was just wondering if people were aware that Visual Studio .NET allows you to make your own icons right in the IDE. Open up your project, go to File->Add New Item->Icon File. Select okay, and a little icon editor should open up. Happy icon designing!
-
I'm with TheIrishCoder on this one. I have the same book. I also have Coding Techniques For Microsoft Visual Basic by John Connell, and it is also a nice book. That book also comes with it in eBook form. The one by Francesco Balena comes with a DVD 60 day trial of Visual Studio .NET, and an eBook of Programming Microsoft Visual Basic 6. I thought I'd point that out, because it is misrepresented on Amazon. I may not have been influenced as much to by the book, had I known the ebook wasn't of the actual book. Oh well. It is still loaded with helpful info regardless.
-
I have a programed, named Camplist...which I have been working on for a while. Recently it's been on hold. It will run fine on my compouter, but on some other computers it will give an error. It gave my friend an error number of 940 and of 646. However, when I searched those numbers in the error lookup deal, it didn't yield any results. I do know those are the numbers though. It's exhibited the same sort of behavior ago. I don't understand why it will error on their computers, and not on mine? They have the .NET Framework installed, and also Service Pack 1 for it. Does anyone of any suggestions, or would someone perhaps be willing to look over the code for me? I would appreciate it. Thanks. Email me if you're interested: ghassel1@twcny.rr.com
-
COM...that means that the client computer for this program would also need to have Outlook installed, correct?
-
In solution explorer, right click on properties. In the left file menu, select build. You will then see how to change the application icon.
-
I have reached a dilema. I have a PrintDocument control, and a PrintDialog Control. I set it to Show the printdialog, and then have the PrintDocument control Print. But if you hit cancel on the printdialog box, it'll still print. Does anyone know how to correctly do this?