Thanks for the answers. I'm still experimenting, but the really helped push me in the right direction.
sa_runner
Posts
-
resizing contols in a form -
resizing contols in a formI've been experimenting with this and cannot get the results I want. I have two multiline textboxes. I want them to resize as the form expands. However, when the form expands, the top textbox will grow over the bottom one. I would like to keep spacing the same. Do I need to write a formula in the form.resize method or what? Thanks in advance.
-
Question about objects and formsThank you! This was very helpful.
-
Question about objects and formsI've been writing an app (desktop) that has information that needs to be passed between forms. I'd like to use an object to move the information about the forms, but it didn't seem too feasible. I did some research online and most people say to use a 'global' module that holds the variables that are common amongst the forms, but there are trade-offs. However they (the articles I've read) won't specify the trade-offs. Is it a performance issue that is caused by doing this? Is there a way to move an object from form to form cleanly? I'm just curious as to this community's thoughts on the subject. If this needs to move to another forum area, please feel free. I placed it here because I develop in VB.Net 2k5. Thanks in advance.
-
a minor horrorI agree with the code review and that one hopes the programmer is open for constructive criticism. However, the one giving the advice should also be open to rebuttal. I've been in situations where I give an answer, in a nice, logical tone and got blasted for going against the criticism. I wasn't trying to be rude, but explaining why I did what I did. Of course, the guy giving the criticism was a hot head to begin with, which may not have helped. :) But yes, code reviews are very helpful and a good learning environment as long as all parties are open-minded to some degree.
-
Adding a label to a group box in runtime...I have a group box called box. I would like to create a label (label1) that I want to create in runtime and add it to the group box. How do I go about doing that? I can create it in runtime just fine. I just can't seem to get it to be inside the group box. Thanks in advance.
-
Button inside of a group boxNevermind, I found the answer: Me.grpQuadrant.Controls.Add(btn)
-
Button inside of a group boxProbably an easy question for the gang here. I have a group box that I want to create a button at runtime. When I create the button right now, it places it 'behind' the group box instead of inside of it. How do I get the button to show up inside of the box? Thanks in advance.
-
How to draw on an imageTake a look at this link. It helped me alot with a graphics project that I'm working on. http://www.informit.com/articles/printerfriendly.aspx?p=29477[^]
-
vb6 & vb.net comparisonTake a look at this book. I have it and found it to be a pretty good resource for making the transition, if you haven't already. http://www.amazon.com/Book-Visual-Basic-2005-Developers/dp/1593270747/ref=sr_1_48?ie=UTF8&s=books&qid=1215014222&sr=8-48[^]
-
form questionThank you both!
-
form questionIs there a way to disable the close button in the upper right corner of a form? I know how to get rid of the minimize and maximize, but I would like to disable the close button as well. Any help would be greatly appreciated.
-
Graphics questionThanks! That helped alot. I found a pretty good link on this, because of your answer (doing more research). It's http://www.informit.com/articles/printerfriendly.aspx?p=29477[^]. I got my code working the way I want now. Thanks again.
-
Graphics questionI have a circle, or any polygon, drawn on a form via VB.NET (2k5 in this case). I would like to know if my cursor is inside of the circle/polygon. Is there an easy way to know this. I've been tinkering with the use of the x,y location of the mouse pointer, but don't know how to convert this into the location of the circle. Thanks in advance for any advice.
-
Auto select in a text boxThis should be a softball for some of you. :) I want to have all of the text in a textbox highlighted when I enter (click, tab, etc) into it. How do you do that? Thanks in advance!
-
KeyDown method questionI have an app where I have a parent and child form. How can I capture the key that is pressed (if any) on the child form? I tried the keydown method, but when I run the program, it will not enter the method when I type a key. Any help would be appreciated. Thanks.
-
Use of @ in a variable nameI appreciate all the answers. Thanks.
-
Use of @ in a variable nameIs there any significance to the use of the @ in a variable name (like @intx)? Thanks.
-
New to C#Would someone please give me a good book I can learn C# 2005 from? I am not new to programming, but kind of new to C#. Thanks.
-
List box selectionI was a little freaked by the code, but got the general idea of what you were trying to say. Again I appreciate all the help. This is a great site to get ideas for things and how to do things.