473,699 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting Position of a Button in Form

1 New Member
how do I set button location X Y dynamicaly
Oct 20 '13 #1
1 1124
pod
298 Contributor
Expand|Select|Wrap|Line Numbers
  1. YourButton.Location = new System.Drawing.Point( desired_X_position, desired_Y_position);
Oct 21 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
312
by: Doug | last post by:
I use this code to open a form as a mdi child form from a mdi form menu option and it works fine frmPolicy = New Polic frmPolicy.MdiParent = M frmPolicy.Show( On the child form (frmPolicy) I have a button that I want to open a new form as a child of the mdi form frmOrgPolicy = New OrgPolic frmOrgPolicy.MdiParent = Me.Parent 'This is the line of code that does not work properly
1
8183
by: mar10a | last post by:
I'd like to change the top margin of a text box based on a State Field. If the state is LA I want the box to appear 1" from the top, if it's CA I want it to appear 2" from the top. I was trying code similar to this but was not having success. Any ideas are appreciated. If State = "LA" Then lablename.Move Top:=1
3
1857
by: Xarky | last post by:
Hi, I have a page with 2 textboxes(Name and Surname) and two buttons(Submit and Reset). Now I have set the tab for them 1 Name 2 Surname 3 Submit 4 Reset
0
1830
by: Oenone | last post by:
I would like to set the caret position in a (single-line) textbox to a position based on the number of pixels from the left of the control. For example, I want the caret to be positioned 50 pixels from the left (or as near to there as possible based on the characters in the control). I basically have the position in which the user has positioned the mouse cursor within the textbox, and want to react as if they had actually clicked it....
12
4567
by: David Thielen | last post by:
Hi; I have my <form> in the master page because the master page includes the menu for all pages. But I would like to set the default button and control to place the caret in for each page. Is there a way to do this? (My understanding is this has to be done in the form tag.) -- thanks - dave david_at_windward_dot_net
1
3224
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio button with this link of code: echo 'SCRIPT language=JavaScript setCheckedValue("'.$_SESSION.'");</SCRIPT>'; //? <snip of code>
0
1097
by: Doug | last post by:
Hi, Is there a way to get a popup window to position itself near the control button than launched it. My date selector popup appears all the way to the left, and the control button is all the way to the right.
2
1326
by: FunkyWinkerbean | last post by:
Greetings, I seek a best practice to dynamically load form data to the current web page. Example: a user logs into a web page to add a recipe. 1. recipe web page loads with no ingredients where the user is prompted to enter ingredient: Please enter ingrediant QTY: ____ MEASURE:___ ITEM___. And so he enters form data <1> <cup><sugar> and clicks submit button 2. same page reloads displaying a grayed out table to list 1 cup sugar and form...
3
3410
by: Dan | last post by:
Hi, I made a form consisting of a lot of server-controls (dropdownlist, radiobuttonlist ...). Some controls have their property 'autoPostBack' = true because some things must happen when selectedvalue is changed. My problem: suppose that the property 'autoPostBack' of 20th control is true, each time the user changes the selectedvalue, he is sent back to the top of the form after postback. He has then to scroll down to find the 21th...
0
8705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8941
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8896
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7784
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.