Assign A Value To Another Control In Another Form?

Mar 20, 2012

I am trying to assign values to controls in another form and I created a procedure(sub) to do this I was using myOtherForm.Label1.Text = "Value" but it is giving me an error saying expression does not produce a value

View 1 Replies


ADVERTISEMENT

Assign Form1 Control To A Form Object?

Mar 3, 2009

think i have 2 form & one module..
form1 (has one button name button1)
form2 (also has one button name button1)

[Code]....

View 2 Replies

Assign The Authority And Get A New Form To The New Assign With .net?

Mar 9, 2010

Admin assigns the authority and get a new form to the new assign in with vb.net & access. I am not sure about this,I need a way to do the new form assigned? How?Actually, this project is the admin will assign the authority to a manager, and the manager will get the password to log in. Then, the manager once log in and will get a form to set the rooms who is going to use and date, etc, this is multi-manager to handle the room setting jobs.But, I think, I got stuck, I am not sure how to do the new form, HOW DO YOU ASSIGN THIS NEW FORM FOR EACH NEW MANAGER?????? THIS IS VB.NET WITH ACCESS.

View 3 Replies

Assign Property To Custom Control (WPF)?

Jun 21, 2010

I have created a CustonControl (NOT a usercontrol) and defined a DependencyProperty as following

[code]...

View 1 Replies

Assign A Datasource To A ComboBox Control During Runtime?

Feb 16, 2012

I'm trying to assign a datasource to a ComboBox control during runtime. When I do so, I get the attached message. Here is my

cmbAddressDesc.DataSource = dbDataSet4.tblAddressCodes.addrDescColumn

dbDataSet4 is a typed dataset. I want to learn how to use an Interface. The error message is suggesting using an IList. How would I do this. I'm having trouble finding good documentation on this.

View 2 Replies

Chart Control - Assign Each Series To A New Point?

Jul 18, 2011

Im starting to learn how to use the chart control in VB .how you create a "new" column because atm all the time i add series it puts them side by side.Ive looked at the documentation for the control and the examples but they dont seem to cover this , or i could find it .Now how would i assign each series to a new point?So item 1 would go above column 1 and item 2 above column 2 etc.The code i have at the moment is a test code .

Chart1.Dock = DockStyle.Fill
For i As Integer = 0 To 10
Dim newSeries1 As New Series[code]..........

View 1 Replies

VS 2005 Assign Image From Resources To Pic Control?

Jun 23, 2010

Depending on a key value in my database I want to display one of two images in my resource folder. Basically if my database value contains M I want to show image M in my picture control. Also when I save I need to check which image is loaded to write back either M or T.

View 9 Replies

Remotely Create Folder, Assign Full Control?

Oct 29, 2010

I need to create a shared folder on the desktop for a specific user on a specific pc and assign full control sharing and security permissions for only tat user and a domain admin user. I need to do this for 300+ PCs. Going to each user manually and askin them if i can do tat on their pcs is very time consuming.

Is there a way i can code this and do this remotely where i can input,

1)the computer name/IP Address

2) the folder name i want to create

3) the user for which i have to create it for (just basically goin to doc and settin.>user name> desktop )

and i can achieve the folder creation for tat user with full control to that user and a domain admin user for sharing and security

View 4 Replies

VS 2010 Assign String Value To A Label Control Displayed Text?

Feb 1, 2011

I'm looking to put a few labels on a form but the text that they will display will not be static. Instead they should be dynamic as the values used will be either the value of a specific Environment variable or from a value stored in an array. These values will change depending on which user runs the application. How do I achieve this?

View 2 Replies

Assign Startup Form In VB

Oct 15, 2011

I have an problem to assign a startup form in vb.net. I have three forms:

1) Registration Form
2) Login Form
3) Main Form

Firstly i have set set startup form as registration in properties =>Application after registration completed or saved i am displaying the Login form by hiding the registration form. and entering username and password it displays the Main form. Now the twist when i exit from application next time i started to run my project where i can check if their is entry in registration form it will directly goto login form.

View 3 Replies

Assign The ESC Key To Clear Form?

Aug 5, 2009

I looked at another thread to see how to assign the ESC key to clear my form, but it does nothing.

Private Sub frmBookingForm_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown

Select Case e.KeyCode
Case Keys.Escape
InitialiseForm()
End Select
End Sub

Do I need to IMPORT anything before this code works.

View 6 Replies

Two Radionbuttons In A Form - Assign Them With A Value ?

Jan 31, 2012

i have two Radionbuttons in a form and i want them to assign with a value so that i can take that value and tomultiple with other value.The numbers i want to mulitple is decimals.My code look like this:

Private Sub btncalc_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btncalc.Click
Const BandA As Decimal = 16.5[code].....

View 21 Replies

Assign A Form Multiple Designs?

Feb 14, 2012

I want to give a form two designs, one design on application startup and another when a button is pressed. Can I do this with another designer?

View 3 Replies

Assign A Icon For Form By CODE?

Dec 5, 2009

How can i do that in vb.net . I saw this in my designer but i cant file that icon in my resource. How did it store and where [cod]e....

View 3 Replies

Assign Events Dynamically With A Form That Has No Reference?

Jun 19, 2012

I've got a class where I pass in a panel reference and in that panel I'm then required to draw multiple other panels that represent my objects. The issue is that when I go to bind dynamically click events to these panels I don't have reference to the Form of which I want to popup on the click event.

The reason for this structure is so that I can redraw my class dynamically and reattach certain events to each object.

Is there any way to do this without moving my classes logic outside of the Assembly or is there any way to attach my click event to a piece of code logic to a sub in my WinForm?

View 1 Replies

How To Assign Access Key To Close Button In Form

Jan 19, 2011

I am new to visual basic and wondering on how to assign an access key to the close button in my form. It is in VB2010 and wanted to have an access key like x on the keyboard.

View 4 Replies

Assign Values To Txtbox Created At Form Load?

Nov 15, 2011

I have a bunch of text boxes that get created on form load depending on a value in a combo box. The text boxes get named in the fasion txtBx1, txtBx2, ect. Then I want to assign values to those text boxes with a button click. However when I try to write the txtBx1.text = "Blah" code under button click, I get 'txtBx1' is not declared. [code]...

View 3 Replies

Assign A Button To Let A Resource ( JPEG Image ) Become The Background Of The Form?

Jan 16, 2010

I am trying to assign a button to let a resource ( JPEG image ) become the background of my form. But instead, the background becomes blank. Here is what I wrote:

Public Class Choose_Background
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.BackgroundImage = My_Project.My.Resources.african_lion

[code]....

View 2 Replies

Using A Dataset To Fill Datagrid In Form - Assign A Color To The Forum "where =open/closed"?

Aug 4, 2009

Im using a dataset to display data in a datagrid from a sql server DB. One of the colums I have in my datagrid is "Status" the table adapter sql statment selects certain items based on whether there open or closed e.g "where = Open ". I want to remove this row entirely and instead of displaying open or closed for status column, display the open/ closed results in colour on the datagrid. Im really not sure how to go about this whether i need to do it in the table adapter or some sort of property. I presume i need to write a sql statement and selct the identity of the row where x= open etc , is there a way of assigning a colour in sql statement so it displays on my vb form ?

View 2 Replies

Get Form Click Or Form Control Mouse Events To Fire DURING Form LOADing

Aug 26, 2011

Im Using VB 2008. I have MsgBox() statements in all Mouse & Form Click events to TEST & NOTHING FIRES during Form Load when I click on Form or Button Controls !!! The Form Load event contains code for Displaying the Label.Text control many times with changes in the Text to simmulate annimation.

[Code]...

View 7 Replies

VS 2008 Raise Event Of "Win. Form Control" From Form Outside The Control

Oct 13, 2011

I have created simple windows form control with some events.

This form has button which opens Form with some settings.

Now, I need to raise the events inside the control when I click some buttons within the settings form ..

View 5 Replies

VS 2008 - Draggable Control And AutoScroll - Allow Moving A Control On A Form At Run-time

Dec 26, 2009

The following code works perfectly to allow moving a control on a form at run-time. However, when AutoScroll is set to True on Form1, and you drag Button1 past the right and/or bottom bounds of the form, it goes haywire. I really need someway to smoothing control the autoscroll so that as you scroll the control off the form, the scrollbars smoothly appear.

[Code]...

View 1 Replies

Copy To The Clipboard Using CNTRL/C On A Menustrip - Copying Text From One Control To Another Control On A MDI Child Form?

Aug 19, 2009

I am still messing around with Cntrl/Copy and Paste from a menustrip. Paste is working fine. The copy is working to a certain extent. It will copy the complete text field from one control to another. how do I determine what is the selected text only. My code below:

Private Sub CopyToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Handles CopyToolStripMenuItem.Click
Dim activeChild As Form = Me.ActiveMdiChild ' Determine the active child form.
Dim activeControl As Control = activeChild.ActiveControl

[code]....

View 4 Replies

One Trigger A Click Event In A UserControl From The Main Form's Tab Index Control That Contains An Instance Of The User Control?

Jan 5, 2011

The code is listed below which hopefully illustrates what I'm trying to do:[code]....

View 12 Replies

Panel On A Main Form Containing A PictureBox Control On Top Of A TableLayout Control

Mar 15, 2010

I've got a Panel on a main Form containing a PictureBox control on Top of a TableLayout control. Both the child controls have their docking properties set to Top. The Picture control has sizemode set to Zoom.

What I'm finding is that the picture doesn't size properly when I start the app. There is a border at the top and bottom in the PictureBox control. It's only when I resize the overall form that it's correct.

So at the moment I've got this ugly bit of startup code, just to fix the problem Me.WindowState = FormWindowState.Normal Me.WindowState = FormWindowState.Maximized

What am I missing?

View 2 Replies

Set CommandTarget Of WPF Control As Textbox Which Is Written In Win Form User Control?

Feb 10, 2010

i want to set the CommandTarget property of menu item to the TextControl which is written in win form or just tell me any way which can execute the command lets say cut copy paste on the control which is written in win form user control and added to xaml through WindowsFormsHost

View 1 Replies

Form Control - Using Listbox Or Drag And Drop Control?

Jul 6, 2011

I have a form set up with a few text boxes for first name last name and job title and i got the class for EditDialog. vb. The question is I have to drop some controls onto the form to make a generic add and edit employee dialog. Now would I use the listbox or drag and drop control?

View 2 Replies

Control Resize With Form User Control?

Oct 8, 2011

I have a user control which contains some textboxes,buttons ,labels and comboboxes . I used that control in a form and inside a split contaier.Splitter can be moved by the user. User control is docked as fill.

Now when user move the splitter the user control size is changes as it is dock fill but the inner controls used in that user control looks like fixed in a single place .It are not moving nor resizing .How to do this .Is there any property to perform thisI already know about anchor property but sometimes it causes overlapping of controls so I can not use it.

View 11 Replies

2003 Control On Child Form To Create Event On Parent Form?

Oct 28, 2010

Here is the pertinent part of my code:

Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 3 Replies

Basic Windows Form With One Crystal Reports Form Veiwer Control?

Mar 12, 2009

I have a basic Windows form with one Crystal Reports form veiwer control on it. When ran on the development machine it displays the report fine.After build and publish the application is now installed on a user PC. I am getting an error that the Crystal Decisions. Windows. Form version 12.0.2000.0 can not be found. All the Crystal dll's are in the install directory but none of them are being installed in the install machines GAC.Am I setting my publish output up wrong, may references wrong, or is the local GAC files the problem. The message is so criptic, it doesnt really point me in the right direction.

View 1 Replies







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