473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Change GroupBox position

How can I do that?
I tried:

GroupBoxFileText.Location.X = STH

but I get error: "Expression is a value and therefore cannot be the target
of an assignment."
I also tried STH as interger and as string.
Nov 20 '05 #1
3 6568
* "Saber S" <soleimani<NOSPAM@>parstech.net> scripsit:
I tried:

GroupBoxFileText.Location.X = STH

but I get error: "Expression is a value and therefore cannot be the target
of an assignment."
I also tried STH as interger and as string.


'GroupBoxFileText.Left = STH' or
'GroupBoxFileText.Location = New Point(STH, ...)'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Thanks Herfried,
It works :)

It is strange for me as a newbie when I see Location.X and Location.Y in
GroupBox properties window,
but I've to use GroupBox.Left and GroupBox.Top ...

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
* "Saber S" <soleimani<NOSPAM@>parstech.net> scripsit:
I tried:

GroupBoxFileText.Location.X = STH

but I get error: "Expression is a value and therefore cannot be the target of an assignment."
I also tried STH as interger and as string.


'GroupBoxFileText.Left = STH' or
'GroupBoxFileText.Location = New Point(STH, ...)'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
* "Saber S" <soleimani<NOSPAM@>parstech.net> scripsit:
Thanks Herfried,
It works :)

It is strange for me as a newbie when I see Location.X and Location.Y in
GroupBox properties window,
but I've to use GroupBox.Left and GroupBox.Top ...


It's strange, because 'Point' is a structure and the properties 'X' and
'Y' are r/w.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mr.Clean | last post by:
I am trying to mimic a Windows GroupBox control using fieldset, label and radio buttons. The problem lies in that I can not correctly do the radio buttons relative to the groupbox and the label...
0
by: Mark Johnson | last post by:
Sometimes Controls that have been added to a GroupBox do not show up. What I am doing : 1) I am not using the designer, but create all the Controls per hand: groupBoxProdukt_01 = new...
1
by: Luminal | last post by:
greetings is it possible to change the back color of text on the groupbox control? I change the back color property of groupbox but the label's text back color stay the same (grey). If it is...
2
by: Serge | last post by:
Hi, in my windows.forms application I have added a goupBox control to my windows.form. Now I want to know the x,y-position from the mouse cursor when I click on the groupBox. The strange thing...
2
by: Vinny Vinn | last post by:
Any suggestions for a groupbox equivalent in asp.net? I tried a panel but its layout doesnt work well for what i need! Thanks, Vinny
0
by: Peter | last post by:
When my form loads I have 3 items perfectly aligned: '________________________________________________________ (Width, Height) Startup form name is "strForm" (w800, h570) Location(0, 0)...
8
by: johnmmcparland | last post by:
Hi all, my program is trying to add group boxes with radio buttons at run time. While at one point it was able to draw the group boxes without the radio buttons, now it encounters problems just...
2
by: Bob Alston | last post by:
I have an application with several forms. Most forms use radio boxes for Yes/No choices. On a few of these, once one option is selected, the user cannot change the selection without moving to...
3
by: Enkidu | last post by:
I'm trying to add TextBoxes in a square 'array' into a GroupBox. It looks like I have to, for each TextBox, get the size of the GroupBox, calculate position of each TextBox, set the Location of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.