Change Form1.Location With 2 NumericUpDown?

Oct 28, 2009

can i change Form2.Location with 2 NumericUpDown controls?

View 3 Replies


ADVERTISEMENT

Form2 Not Exceed Form1 Location

Sep 4, 2011

I want to create Program which have 2 forms. I want Form2 not out of Form1 region. Example: I have a form with a button. Button1 = Form.show Form2 appear on center the screen and can not exceed size of Form1.

View 2 Replies

Location Of DOS Window Relative To Form1?

Mar 31, 2010

I am calling a program that runs in DOS screen.Is it possible to position this screen to always open exactly same cordinates relative to my FORM1 screen?Or is it possible to run the FORM1 to start at same screen cordinates all the time?

The Code:

Sub Install1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Install1.Click
instance = Process.Start(Application.StartupPath & "Driver.exe")
instance.WaitForExit()
End Sub

View 7 Replies

VS 2008 Form1 Location In 2 Textboxs?

Jul 2, 2009

how do i put my form1 location in 2 textbox's ?

View 1 Replies

VS 2008 Change Value NumericUpDown?

Oct 16, 2009

In my has 2 ComboBox fields and 1 NumericUpDown field. I would like change value umericUpDown in depend of value in Combobox.1. if ComboBox1 and ComboBox2 is empty NumericUpDown = 02. if ComboBox1 has some value and ComboBox2 is empty NumericUpDown = 13. if ComboBox1 is empty and ComboBox2 has some value NumericUpDown = 14. if ComboBox1 has some value and ComboBox2 has some value NumericUpDown = 2

View 6 Replies

Load Form2 On Top Of Form1 Everytime No Matter Location?

May 25, 2009

How can i get form2 to to load exactly center of form1 or a location within the form when i get form2 to show, no matter the location of form1.[code]...

View 10 Replies

Change NumericUpDown Control Value Depends From ComboBox Value?

Oct 20, 2009

The form has 2 ComboBox and 1 NumericUpDown controls. I would like to change value of NumericUpDown based on selection in ComboBox. For example:

ComboBox1 has three value. for instance, AAA, BBB, CCC
ComboBox2 has three value. for instance, DDD, EEE, FFF

The NumericUpDown should has range 0-6 sum of both ComboBox. For instance, if user select from ComboBox1 AAA and from ComboBox2 EEE the NumericUpDown should display value 5.

View 4 Replies

Change The Location Of A Label ( Middle ) To Another Location When A Key Is Pressed Down?

Jan 27, 2010

I'm currently working on a project that has a simple game . I want to change the location of a label ( middle ) to another location when a key is pressed down. But there is something wrong with the first of the If statement .I've underlined "point " because it has the error.

Private Sub Space_Navigator_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Up Then If middle.Location = [u]Point[/u](156, 655) Then middle.Location = New Point(156, 547)
End Sub

View 2 Replies

Name Change For Form1?

May 24, 2011

I may have corrupted my Visual Studio Software. I have two problems which may be related. The first is when I open anew project, I can't change the name of the form. I enter frmXXXX and it returns a splash box indicating I may loose my programming. If I continue the program gives me an unusable form. This happens when I have not even begun to use the form. My Visual Studio is set up to work with Visual Basic only.

Secondly, when I try to incorporate events, I can not get them to function. Using the basic form set as Form1, the Load event will work, but it enters as "Private sub Form1_Load ........ Handles MyBase.Load not Me.Load. When I try to use the events: KeyPress. KeyDown Or KeyUp, I can't get them to function. They also are entered as ........ MyBase.KeyPress. To enter an event I go to the Properties Menu, and use the event enry, click on the function, then double click the function. The sub-routine is loaded into the program, but doesn't function. I am learning by using a text book that the same programming works in a demo which was downloaded.

View 6 Replies

VB 2008 - Change Form1 To The Name Of The Thing

May 16, 2012

Such as with using Visual Basic 2010. what is an easy simple program to make? Like making your own calculator or whatever.If I even tried fiddling around with Visual Basic 2010, I would change Form1 to the name of the thing that I am creating, along with changing the color of the foreground/background and the color of the text too.But its the command text where I have to add text to make it work too that I would have trouble with. I ain't smart when it comes to stuff like Visual Basic.

View 1 Replies

Change Checked State Of Checkbox1 On Form1 From 2?

Mar 22, 2010

Let's say I have a checkbox1 control on form1. I then open form2. I want to be able to change the checked state of checkbox1 on form1 from form2.[code]...

View 5 Replies

How To Use Colorpicker To Change The Form1 Back Color

Dec 12, 2009

i have form1 in vs2008, i would like to have a button where users can click it and the colorpicker pops up, like in photoshop or MSword where you select the text then pick the color.

if this it to complicated than i can have 4 radiobuttons that each one is accosiated wiht a color, is theree a way to make the radiobutton diferent color than white( NOT THE BACKGROUND COLOR)the circle inside.

View 9 Replies

How To Change Windows Form1 Formstate After Splash Screen

Mar 8, 2011

I have made a splash screen for my project and it runs great but I have a problem I can not work out how I make form1 to maximize after splash screen closes I have tried the following code [code]but it did not work how can I make the form1 size maximize after splash screen closes if anyone knows a way please let me know kind regards I have already set the peopties once to be full screen and it showed form1 when loading the splash screen I need the splash screen to show first then the form1 not together otherwise it dose not appear at all and it is running in the background.

View 2 Replies

Using DirectX To Automatically Change Sreen Resoultion On Form1 Load

May 29, 2010

Can you tell me how to change screen resolution using directX and automatically passing UAC. It should also turn back to the original resolution when the user exits the program.

View 5 Replies

VB2008: Form1.BackgroundWorker WONT Stop Form1.Timer From Form3 Click

Sep 9, 2011

Using VB 2008:Situation: A Form1.BackgroundWorker calls a Form1.subroutine. That sub starts a Form1.Timer with Me.tmrOK_BlinkForm.Enabled = True...fires Timer code in event: Public Shared Sub tmrOK_BlinkForm_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrOK_BlinkForm.Tick

Form3.Visible = True
Form3.Label1.Text = gNowButtonDispText
Form3.BackColor = Color.White
Form3.Refresh()

[Code]...

There must be a way to do this, I just need the correct BackgroundWorker Syntax send Stop commad to Form1.Timer from Form3.Click_event...all inside a Form1.BackgroundWorker thread started in Form1.

View 4 Replies

Forms :: Form Variable Value Blank / Null When Move From Form1 To Form2 And Back To Form1

Oct 27, 2009

In my window application, Form1 variable eg. Public str as string. value blank/null when move to Form2 and Back to Form1. How to maintain Form1 varable's value when back to Form1 In vb.net if any one know, reply me soon

View 2 Replies

Forms :: Navigate From Form1 To Form2. And Then Close Form1?

Feb 16, 2009

I have got 2 forms ----- form1 and form2

i wanted to navigate from form1 to form2. and then close form1

i did the following code.

-sub form1 _ page load
dim form as new form2
form.show()
me.close
-end sub

i also tried -- form1.close() and form1.dispose() but all in vain

Problem is that my form1 is not getting closed

View 7 Replies

When Background Worker Opens Form1 / Form1 Is Not Responding

Jun 12, 2010

I have an aboutbox1 and form1..I also have a button. When I click the button it runs the backgroundworker. My background worker then opens form1.My backgroundworker doesnt just open it, it does alot of other stuff so don't ask why im doing it like that.My problem:When the background worker opens form1, form1 is not responding.

View 3 Replies

Change Controls Size And Location Based On The Change Of Font Size?

Jun 14, 2010

I have the Context Menu Options like ( Small Font , Large Font ) based on the selection I want to change the size of the Font in the Controls,Control's Size & location(x,y,height,width). The resize of the controls should not affect the look and feel of the forms.

View 5 Replies

How To Change DLL Location

Jul 6, 2010

I have created a program that uses a 3rd party dll, and has been added as a reference. Is there any easy way to change where vb.net, looks for this dll file? Currently it is dropped in the same location as my main exe, but would rather it looked in the system32 directory. I have googled and tried changing the app.config file, and dont really understand AppDomain.

View 2 Replies

Difference Between Form1.Close & Form1.Dispose?

Oct 21, 2010

Which different abount Form1.Close and Form1.Dispose?

View 1 Replies

Change A Label Box Location?

Aug 9, 2010

I am trying to change a label box location with this script:

Label10.Location = New Point _
(Label10.Location.X = 262, _
Label10.Location.Y = 57)

View 6 Replies

Change Location Of An Element?

Apr 8, 2009

I have panel1 and button1. what i want to do is setting a new location for the panel when pressing the button1.

View 3 Replies

Change The Location Database?

Jul 18, 2012

I use VB2008 and database access and Crystal report.my problem : when ever I change location the database. I will always change location in my report from crystal report. It's very difficults and waste the time because I have many report. how to set up location only 1 place and impact to many report.

My VB Code :

Dim dbname1 As String = "D:AF_SoftwareDBDBAF1.mdb"
Public Strcon As String = "Provider=microsoft.jet.oledb.4.0;data source=" & dbname1 & ";jet OLEDB:Database Password=999"

make code in crystal report , if i want change drive to drive Z / or somthing else.now, i am go to the report and click change location.

View 2 Replies

Change The Location Of A Group Box?

Sep 24, 2009

When I tried changing the location of the group box by:

MyGroupBox.Location.Y = 200

I get an error message, "Error 1 Expression is a value and therefore cannot be the target of an assignment. "

What am I doing wrong?

View 3 Replies

Change The Location Of The Form?

Nov 15, 2009

So i want to change the location of my form so that it pops up in the lower right corner of the screen.

Form1.Show()
Form1.Location = (New Point)

View 4 Replies

Change The My.Settings Location?

Jan 10, 2011

I wanted to know is it posible to change My.Settings location.. for example, not in user folder (dont remember in witch folder, but i know it was in some users folder..), but save in application folder?Cos i write programs portable, so they work if the folder with my program is moved even to different PC..It would be a great if i could use my.settings and store in the application path..Cos i have tried to save in registry, xml file, ini file, and they all are pain in the a*s..

View 4 Replies

Change A Label's Location When A Key Is Pressed?

Aug 13, 2010

I am making a program (obviously), and when the user presses UP, DOWN, LEFT, or RIGHT I would like to move the label's location correspondingly. Here is my code so far, but it does not work:

[Code]...

View 8 Replies

Change Configure File Location?

Jun 21, 2010

I need to holds the common settings for all of the apps ona server (UNC path). Previously I used an ini file on the server and the application was told to look there via a command switch.

I understand that I'm trying to use .net in an old fashioned way by not packaging it for web update & delivery but that's a contraint of the architecture I need to work with.

Is there any way to force my application to use the application.exe.config file from a set location rather than the user data area that .net automatically writes it to? Even if not on a server path, then in the application directory where we can push update it?

View 3 Replies

Change Images When Location Move?

Sep 16, 2009

location after I clicked the images to move them to the left side but it didn't change the image.

Here its the code:

Private Sub PictureBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
If Panel3.Visible = True Then

[Code]....

make the images changes to arrow-black2 when the images moves to location "1, 145"??

View 9 Replies







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