Maximising Form And Controls?

Feb 6, 2010

I have a form that needs maximising to the users screen sizes but keep the controls, fonts, etc in uniform with the size of the form.

View 4 Replies


ADVERTISEMENT

Maximising Window List Item?

May 18, 2010

I have a standard MDIWindowListItem that selects child forms correctly but I really want it to maximise the selected form if it is currently minimised. Can't find any event that triggers when a form name is clicked so I can determine the child form selected.VS2005 or 2008

Update:Fiddling about I did find a collection MenuStrip1.MdiWindowListItem.DropDownItems and one can use .text to get the form caption which I could use if I knew the item selected.

View 1 Replies

Add Controls To A Form In Code And Set The Properties Of The Controls?

May 24, 2009

How can I add controls to a form in code and set the properties of the controls using the With statement?Also I would like to know how to add a container control and then add a control to that container.

View 2 Replies

Controls Not Return All The Child Controls For The Form?

Apr 15, 2010

I have a slight problem With an enumaration of child controls on a form. The following code will not get but about have the controls that are on the form. The controls show that the count is correct but when it goes through the loop it skips over some of the controls. If you run it through the enumeration two or three times it will get all the controls a few at a time. The solution uses two forms, one that has the controls and the other that labels are made and displayed on. The Tx is just a index to add a number to the label.name and rename the label. So each label is identified seperately. This works for all the the controls that are seen in the for each loop.

View 11 Replies

Pass Usercontrol Controls Or Form Controls?

May 11, 2009

I created a class that can take either usercontrol.controls or form.controls as a parameter,how can i pass either to that class? as a property or how?

View 4 Replies

Accessing Controls Within Controls On A Form

May 26, 2012

I have a module level sub that I use to clear text fields etc on my forms:

CODE:

The problem I have is in the last few lines of code as I'm not really sure how to access the text boxes contained within the tab controls (of which there are many tabs and many text boxes).

This is the closest I've got but I am getting an "option strict on disallows late binding" error on the tabCtl in the following line.

View 6 Replies

Write Controls Text Into A .txt File And Read Them Form .txt File To Controls Again?

Jan 16, 2012

I have a form. And some controls(such as TextBox,ComboBox,etc.) on the form.Now,I want to store the controls' Text into a .txt file(or any other formarts).Then I want to read the text in the .txt file to my controls.

View 10 Replies

VS 2010 Display Pdf File Inside A Form That Gets Some Values From Form Controls?

Sep 27, 2010

Inside a form, I would like to display a pdf file which is already available in my resources (template file "untitled"). In this pdf file, I have some fields which get their values from some texboxes in another form. My aim is, when the user triggers the button to call this form, it should insert the values inside the pdf file and display the output pdf inside the form.I have written the code to an extend but could not finish it myself after my many trials... Now here are the two things I cannot manage:I can use a directory to read the template pdf "untitled1.pdf". But my aim is to use the file inside my resources. can save the output file in a directory but this is not I want to do. I want to display the output pdf.

View 1 Replies

Make Controls On Form Resize When Form Resizes?

Nov 21, 2009

How would i make so when the user resizes the form the controls on the form resizes to what ever(ex: form become full screen textbox is full screen.

View 2 Replies

Controls On MDI Form To Display Child Form?

Apr 15, 2010

I took picture box and some container controls on my MDI form but when I am opening my child forms it going to backside of my MDI forms controls.

How can I resolve this issue because I cannot remove my controls from my MDI form but at the same time I want to use my child form worked properly.

View 1 Replies

Scale Controls On A Form To Fit Form Proportionately?

Nov 30, 2010

I have a visual basic 2010 form with various group boxes, buttons, and labels. i want to be able to have the form maximized but when i do that the controls stay where they are at and they do not resize with the form. i want them to resize proportionately with the form.

View 1 Replies

.net - Dynamic Use Of Form Controls?

Mar 7, 2010

I have 10 labels named lbl1, lbl2, ... lbl10

I'd like to change their propriety (using a cicle) with the cicle index

for i as integer=1 to 10 step 1
lbl (i) = PROPRETY 'I know this is wrong but it's what I would do...
end for

I'm using a workaround, but I'm looking for a better way..

[Code]...

View 4 Replies

.net - Go Through All The Controls On A Form In Vb2005?

Sep 28, 2011

Whats the best way to go through all the controls on a form in vb2005? Im writing a program that can edit a string of bytes based on the information on the form. each control is tagged with the hex address it modifies and values it can be, what is the best way to go through all the controls on a form even those controls embedded in other controls?

View 1 Replies

Accessing Controls From Another Form?

Jan 19, 2011

how can i access the controls that i made from another form? i'm also going to also use function (on the same form as the controls) that access that controls?

View 3 Replies

Add Controls At Runtime To Form?

Mar 29, 2012

I have created a form Dynamically at run time using this below code but how can i add controls to it.

Dim NewFm as Form
NewFm.ShowDialog()

how can i add treeview to this form and populate with data during runtime?

View 2 Replies

Add Controls To Form After App Is Built?

Apr 26, 2009

let's say my app is buit and i want to add xtra controls to the app.[code]...

View 4 Replies

Add Dynamic Controls To Your Form?

Oct 12, 2009

How would you add Dynamic controls to your form, from an array which size may vary depending on how many controls the user has selected and has been retrieved from a database?

View 2 Replies

Adding Controls To A Form?

Apr 1, 2010

I have been working on a VB 2005 applications for the past week and now I'm not able to add a control to the form. It's a very basic app with only one form and I can add the control in design mode but it does not appear on the form in run mode and is on the verge of driving me nuts. Pretty new to programming by the way.

View 8 Replies

Arrange Controls On A Form?

Sep 3, 2011

I have a simple form. In the top left corner I have a numericupdown box. Under that I placed a panel that holds a picturebox. I did that so I could use the panel autoscroll feature if I resize the picturebox to be bigger than the form. To set this up, I set the panel to dock fill. If I do this, it covers up the numericupdown box. The docking on a form is very, very sensitive. How can I make sure I set this up correctly.

btw - If I place the numericupdown box on the panel and I scroll later. The numericupdown box scrolls away also. I am trying to make sure it stays fixed.

Also - I looked to add the numericupdown box to a toolstrip, but the box is not available to be placed on it - This would be my first choice.

View 1 Replies

Can't Get Form Controls To Refresh

Jan 30, 2012

Been playing around with this and simply can't get it to work

I've got a form and I've created a button called refresh. The button is meant to do exactly that. What happens is that when the form loads, it checks the database for values. If it finds values, it creates a dynamic edit box related to the value.

I open the form and it paints accordingly and as I expect it. If I delete a value from the database then click the refresh button, it should re-draw the form and paint the background grey. The logic definitely works because I trapped the bit of code and it does hit the part where it's meant to set the background grey.

Now, I'm not sure I'm refreshing the form properly because all I'm doing within this sub is calling the form on load event: formLRQuadrantSchedule_Load(Me, New System.EventArgs)

This seems to work logic wise, just not doing what I want. So, I tried this (amongst several other things):

Dim dynTextBox As New TextBox()
Me.Controls.Add(dynTextBox)
With dynTextBox

[Code]....

View 8 Replies

Clearing All Controls In A Form?

Mar 8, 2009

Is there a way such that I could reset/clear the values of the controls in my form no matter what type of control they are, can be controls from control suites like Janus and/or ComponentOne?

I am thinking perhaps I could somehow get their base control types?Here is my current implementation but somehow I need to add ElseIf for the other control types.

[Code]...

View 11 Replies

Disable All Form Controls?

Jul 29, 2009

on one of my form, if user press a button then it sync data with another database and it takes time. i show a hidden group box on form which show progress bar of processing. during this process i want to disable all the controls of the form so that user not able to do anything form until process if finished.because most control on the form has validation and if i do me.enabled = false, it disable the control but still use can click on any of text box and then depending on validation event get fired.in a nutshell, want to disable any kind of activity on form.

View 16 Replies

Dynamic Controls In A Form?

Jun 6, 2011

i have a form with many dynamic controls. i want to add an item to a listbox ( by the way, to find this listbox i'm using 'tag'. if someone have any other idea i'll be hope to hear but that's not the problem) in order to do so i use this

For Each ctl As Control In Me.Controls
If TypeOf ctl Is ListBox Then
ctl.items.add("i want to add this line")

[code]....

and items is not recognized and this eror massage apear: 'items' is not a member of 'System.Windows.Forms.Control'.

View 2 Replies

Finding Controls On A Form?

Feb 13, 2010

I have a form that for some reason has several textboxes but I can't find them anywhere on the form. How can I get rid of these?

View 2 Replies

Form Transparent But Not The Controls?

Apr 5, 2010

I know Opactity controls a form's tranparency but the controls have the same level of tranparency too.

View 5 Replies

Generic Controls On A Form

Jan 17, 2010

I have developed a project on vb.net (2008) which contains some forms those are more or less same looks.I want to incorporate a tool bar and status bar and want to color backgroud and some control I can insert or incorporate as per my requirement on every form. I want to do completely in class which will be my base class and the class will be inherited from other class whatever modification i do in the derived class. I can't get confidence therefore please give me a sample code regarding such type of process.

View 1 Replies

Get All The Controls Of A Particular Type In A Form?

Jul 12, 2010

Is it possible to get all the controls of a particular type in a form without using any loop and without iterating all the controls (recursively or not depends upon the design of form).

I have the issue with loop is: there are a lot of controls in my form (more than 500) and it is taking a lot of time in executing the function

View 8 Replies

Getting Controls To Re-size With Form?

Aug 1, 2011

I want my form to start in a maximised state, this is simple enough, however the problem I am having is that my controls do not re-size with the form between minimising and maximising and it looks un-proffesional.

View 2 Replies

Group Controls In Form?

Feb 8, 2011

How can I group controls in my Form?

I don't need groupbox or panels, just something in the code...

To make it clear:

I have one form, Form1.

I have 3 buttons: Button1, Button2 and Button3, and I have 2 labels, named Label1 and Label2.

I have 2 "groups", in group1 there is Button1, Button2 and Button3. In group2 there are the two labels (Label1 and Label2).

But how can I program that, that if I write (for example) "Group1.Hide()", then everything In Group1 hides (visible = false). And so on with group2.

View 4 Replies

How To Bind XML To Form Controls

May 2, 2012

I have the following XML file:
<?xml version="1.0" encoding="utf-8" ?>
<root>
<Language code="0" control="form" attribute="text">
<NL>Upload expansies</NL>
<UK>Upload expansions</UK>
</Language>
[Code] .....
I would like to bind the text between the NL or UK tags, based on a setting, to the control with the name in the attribute "control".

I started with this:
Dim xf As New Xml.XmlDocument
xf.LoadXml(My.Resources.Languages)
I am thinking I need to do something like a search in the xmldocument for the specific control, then get the text from the children.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved