- My Forums
- Tiger Rant
- LSU Recruiting
- SEC Rant
- Saints Talk
- Pelicans Talk
- More Sports Board
- Fantasy Sports
- Golf Board
- Soccer Board
- O-T Lounge
- Tech Board
- Home/Garden Board
- Outdoor Board
- Health/Fitness Board
- Movie/TV Board
- Book Board
- Music Board
- Political Talk
- Money Talk
- Fark Board
- Gaming Board
- Travel Board
- Food/Drink Board
- Ticket Exchange
- TD Help Board
Customize My Forums- View All Forums
- Show Left Links
- Topic Sort Options
- Trending Topics
- Recent Topics
- Active Topics
Started By
Message
Any programmers around? Need help in Visual Studio.
Posted on 11/4/14 at 2:48 pm
Posted on 11/4/14 at 2:48 pm
This for a Visual Programming Basics class. I literally haven't the slightest clue what I am doing. Going to school for computer networking and this is a required class.
Can someone tell me where I am going wrong? I can't get this last error message fixed. I am completely lost. Not even sure how I got this far. I already turned it in because it was due last night, but I'm hoping if I can get some guidance on what I did wrong then I can start to figure things out.
Can someone tell me where I am going wrong? I can't get this last error message fixed. I am completely lost. Not even sure how I got this far. I already turned it in because it was due last night, but I'm hoping if I can get some guidance on what I did wrong then I can start to figure things out.
Posted on 11/4/14 at 2:54 pm to VaBamaMan
try telephonelabel = cint(TelephoneText.Text) instead of Cint(telephoneText)?
*edit*
also in your DIM statement you have "telephonelab" as your integer but you're trying to store in to "telephonelabel" could also be causing you issues.
*edit*
also in your DIM statement you have "telephonelab" as your integer but you're trying to store in to "telephonelabel" could also be causing you issues.
This post was edited on 11/4/14 at 2:59 pm
Posted on 11/4/14 at 3:01 pm to Doldil
quote:
also in your DIM statement you have "telephonelab" as your integer but you're trying to store in to "telephonelabel" could also be causing you issues.
Posted on 11/4/14 at 3:03 pm to VaBamaMan
it happens man...
I don't know if it would help at all, but my naming convention was always
intNAMEHERE
txtNAMEHERE
strNAMEHERE
lblNAMEHERE
etc...
instead of adding the identifier at the end because lab/label is obviously easy to overlook
I don't know if it would help at all, but my naming convention was always
intNAMEHERE
txtNAMEHERE
strNAMEHERE
lblNAMEHERE
etc...
instead of adding the identifier at the end because lab/label is obviously easy to overlook
Posted on 11/4/14 at 3:09 pm to Doldil
Yeah, she wants Label, or Text/TextBox on the end of our naming conventions.
I fixed that, and now it is giving me problems with the .toString on the bottom.
"An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: Conversion from string "System.Windows.Forms.TextBox, Te" to type 'Integer' is not valid."
I hate programming, no chance on God's green earth I pass this class. It is a mini semester, so we have to build 2 of these a week. Plus other assignments.
I fixed that, and now it is giving me problems with the .toString on the bottom.
"An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: Conversion from string "System.Windows.Forms.TextBox, Te" to type 'Integer' is not valid."
I hate programming, no chance on God's green earth I pass this class. It is a mini semester, so we have to build 2 of these a week. Plus other assignments.
Posted on 11/4/14 at 3:27 pm to VaBamaMan
You need CInt(TelephoneText.Text)
Posted on 11/4/14 at 4:42 pm to JollyGreenGiant
quote:this.
You need CInt(TelephoneText.Text)
What you're doing now is trying to convert the entire TelephoneText object to an integer. You just need to convert the value of the object's Text property to an integer if that makes any sense yet.
Also, if you're trying to store that in a label, you'll need to store it in the label's Text property. I'm totally confused by the naming conventions that she's wanting you to use, but if that's your label's ID then: TelephoneLabel.Text = TelephoneText.Text
This post was edited on 11/4/14 at 7:35 pm
Posted on 11/4/14 at 7:04 pm to VaBamaMan
We fixed that shite earlier in the thread baw. U need to have a different attitude. Programming skills can take your career much farther than just being a network or desktop analyst
Posted on 11/4/14 at 8:20 pm to TigerRagAndrew
quote:
What you're doing now is trying to convert the entire TelephoneText object to an integer. You just need to convert the value of the object's Text property to an integer if that makes any sense yet.
No one explained that this was why .text needed added. That simple statement explained several things to me.
quote:
U need to have a different attitude.
This is my second programming class. Took basics last semester because that was my original degree field. Switched to networking when I realized that I wasnt getting it. I am not an idiot, I just had a hard time wrapping my head around learning computer language. This class is a requirement for Networking though.
I appreciate the help greatly from everyone. Thanks guys.
Posted on 11/5/14 at 8:42 am to VaBamaMan
quote:
I am not an idiot, I just had a hard time wrapping my head around learning computer language.
I went through my entire first couple of vb.net classes getting through alright but not really understanding the logic of everything...about the start of my 3rd quarter and my first C# class things just kind of clicked and everything started making sense. The logic behind programming can sometimes take a little bit to click, especially when it's all new to you.
I don't do programming in my day to day job, but occasionally have to do a little bit of it. It's definitely nice to know the basics, so keep at it and you'll be fine.
Popular
Back to top
2






