473,480 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Lines and Boxes in VB.Net

Ok, dumb question from a newbie who does most of his development in
MSACCESS:

Access has a line control and a box control for placing lines on my
form. How is this accomplished in VB.Net? Hopefully we're not back to
using pixel coordinates and a draw method!

-Mike

Nov 21 '05 #1
6 2986
Mike,

One of the things that are missing is the posibility to draw a line on a
form in Net. In my opinion is the most efficient to use a very small control
that has lines

Copied from a message from Herfried, I don't know if it is original his.

You can use a label control with width or height set to 2, and
'BorderStyle' set to 'Fixed3D' to create an inset line.

I hope this helps,

Cor
Nov 21 '05 #2
<bd*****@hotmail.com> schrieb:
Access has a line control and a box control for placing lines on my
form. How is this accomplished in VB.Net? Hopefully we're not back to
using pixel coordinates and a draw method!


Shapes and lines:

Advanced Shape Control
<URL:http://www.codeproject.com/vb/net/advanced_shape_control.asp>

LineControls.exe
<URL:http://www.gotdotnet.com/team/vb/LineControls.exe>
<URL:http://download.microsoft.com/download/7/e/0/7e070297-47fe-4443-9194-ab57acd8ea01/LineControls.msi>

Creating transparent Windows Forms controls.
<URL:http://www.bobpowell.net/transcontrols.htm>

Rules:

Wrapping Win32 Controls in .NET - Horizontal and Vertical Rules
<URL:http://www.codeproject.com/cs/miscctrl/hvrules1.asp>

Alternatively you can use a label control with width or height set to 2, and
'BorderStyle' set to 'Fixed3D' to create an inset line.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Thanks. This is very helpful. At least there's a workaround for
everything. It looks like they left a lot of stuff out but I guess
that's what Whitbey is for...

Nov 21 '05 #4
<bd*****@hotmail.com> schrieb:
Thanks. This is very helpful. At least there's a workaround for
everything. It looks like they left a lot of stuff out but I guess
that's what Whitbey is for...


Whidbey won't include shape controls :-(.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5
That's amazing.. There are shapes on just about every dialog box you
dessign. Why leave that one out?

Nov 21 '05 #6
<bd*****@hotmail.com> schrieb:
That's amazing.. There are shapes on just about every dialog box you
dessign. Why leave that one out?


Only Microsoft knows...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7

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

Similar topics

8
22371
by: john | last post by:
Hi I am a C++ newbie, I am looking to draw single lines and simple boxes in a C++ console window. Is there a draw command with x and y coordinates that can be used with my Dev C++ compiler. For...
5
2005
by: taccea | last post by:
I have data for an insurance (HCFA) i'm printing. I need to draw the undelying lines on the entire page, then overlay the data on it. How do I do this? Any suggestions appreciated. Taccea
2
1649
by: taccea | last post by:
I need to print a report, but I need to first draw lines and boxes for the data. I need to do it at print time using VBA. How do I do this? Any suggestions appreciated. Taccea
3
2699
by: CatMarieS | last post by:
I have been trying to get vertical lines to work in a report using VBA code as suggested by Microsoft here: http://support.microsoft.com/kb/q151543/ (except I replaced Microsoft's default line...
9
3157
by: davetelling | last post by:
I am not a programmer, I'm an engineer trying to make an interface to a product I'm designing. I have used C# to make a form that interrogates the unit via the serial port and receives the data. I...
1
5601
by: BEETHOVEN | last post by:
Is there a way to count how many lines are in a text box on a Access 97 report? I have a report that has a text box and sometimes the box will be 2 lines long and sometimes 3 lines long. I need...
14
3839
by: jj555s | last post by:
I'm reading text from a file and storing it in a string. When I use ShowWindowText, new lines show up as boxes. I used the \r\n trick but I want to save any changes (like notepad) and it'll store at...
6
2534
by: noe1818 via AccessMonster.com | last post by:
Just a quick question about lines: Is it possible to connect a text box (e.g. txtbx1 to txtbx2 and txtbx2 to txtbx3) with lines where txtbx1,2,&3 move up or down according to their values? Like...
6
5831
by: Annalyzer | last post by:
My database must produces a .csv file with a header line that is different from the detail lines. This .csv file contains a monthly report to an outside agency and is uploaded online so it must...
10
8763
by: Benny | last post by:
I am wondering if anyone has a simple approach to detecting the location of boxes and/or lines on an image. For example, if I have an image of a form, and want to find out where all of the boxes...
0
7041
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,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6929
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...
0
5337
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,...
0
4481
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...
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
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...

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.