There's a function in Borland C conio.h
window (int left, int top, int right, int bottom)
how can i provide the same function in VB.Net 6 3994
Assume the follow is the layout of a console screen
---------------------------------------------
| |
| |
|------------------|------------------------|
| x | |
|------------------|------------------------|
If I want to place a text on a certain area of the screen (for example Area
X in the above console screen), I use window(int, int, int, int) method.
Arguments are left, top, right and bottom coordinates of the window, and
after calling this method cout (or Console.out.writeline in C#) will print in
that console area until you create a new one. Point to remember:
window-arguments are not pixel coordinates, they refer to 80 colums and 24
rows of text. This makes placing text exactly inside (for example) an area
somewhat difficult... Header file is conio.h.
"Maverick" wrote: There's a function in Borland C conio.h
window (int left, int top, int right, int bottom)
how can i provide the same function in VB.Net
You are referring to the console IO C/C++ header file.
You cannot do this with VB.NET 2002/3. This functionality is however going
to be made available in VS2005 for which you can download a beta copy from
Microsoft.
HTH
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Maverick" <Ma******@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com... Assume the follow is the layout of a console screen --------------------------------------------- | | | | |------------------|------------------------| | x | | |------------------|------------------------| If I want to place a text on a certain area of the screen (for example
Area X in the above console screen), I use window(int, int, int, int) method. Arguments are left, top, right and bottom coordinates of the window, and after calling this method cout (or Console.out.writeline in C#) will print
in that console area until you create a new one. Point to remember: window-arguments are not pixel coordinates, they refer to 80 colums and 24 rows of text. This makes placing text exactly inside (for example) an area somewhat difficult... Header file is conio.h.
"Maverick" wrote:
There's a function in Borland C conio.h
window (int left, int top, int right, int bottom)
how can i provide the same function in VB.Net
In article <6D**********************************@microsoft.co m>, Maverick wrote: There's a function in Borland C conio.h
window (int left, int top, int right, int bottom)
how can i provide the same function in VB.Net
The only way to do that currently is via the API using P/Invoke.
SetConsoleCursorPosition comes to mind here... You'll want to look at
the console functions documented in msdn.
--
Tom Shelton [MVP]
Console will be available, or the ability to import header files and use
them in code instead of <ImportDLL>?
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl... You are referring to the console IO C/C++ header file.
You cannot do this with VB.NET 2002/3. This functionality is however going to be made available in VS2005 for which you can download a beta copy from Microsoft.
HTH
--
OHM ( Terry Burns ) . . . One-Handed-Man . . . If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Maverick" <Ma******@discussions.microsoft.com> wrote in message news:01**********************************@microsof t.com... Assume the follow is the layout of a console screen --------------------------------------------- | | | | |------------------|------------------------| | x | | |------------------|------------------------| If I want to place a text on a certain area of the screen (for example Area X in the above console screen), I use window(int, int, int, int) method. Arguments are left, top, right and bottom coordinates of the window, and after calling this method cout (or Console.out.writeline in C#) will
print in that console area until you create a new one. Point to remember: window-arguments are not pixel coordinates, they refer to 80 colums and
24 rows of text. This makes placing text exactly inside (for example) an
area somewhat difficult... Header file is conio.h.
"Maverick" wrote:
There's a function in Borland C conio.h
window (int left, int top, int right, int bottom)
how can i provide the same function in VB.Net
In article <#N**************@TK2MSFTNGP15.phx.gbl>, CJ Taylor wrote: Console will be available, or the ability to import header files and use them in code instead of <ImportDLL>?
The console in 2005 lets you set colors, position, etc. It just exposes
more of the underlying console api's.
--
Tom Shelton [MVP]
Ahhh I gotcha.
"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... In article <#N**************@TK2MSFTNGP15.phx.gbl>, CJ Taylor wrote: Console will be available, or the ability to import header files and use them in code instead of <ImportDLL>?
The console in 2005 lets you set colors, position, etc. It just exposes more of the underlying console api's.
-- Tom Shelton [MVP] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mitsura |
last post by:
Hi,
I have included a small listing. The test program opens a panel and
show a bitmap.
What I want is to when the mouse is over the bitmap panel, I want to
trap the left mouse click.
The...
|
by: Maverick |
last post by:
There's a function in Borland C conio.h
window (int left, int top, int right, int bottom)
how can i provide the same function in C#
|
by: Richard Shewmaker |
last post by:
Hi. I've been using CSS for basic stuff, mostly concerning fonts. I want
to get going with using CSS fully. Two days ago I purchased O'Reilly's
"Cascading Style Sheets" and "CSS Cookbook." I've...
|
by: tradmusic.com |
last post by:
Hi,
Is it possible to set a border to only be on the right, bottom and left?
I tried this, but it isn't working:
border: 0px 1px 1px 1px solid #000000;
Any help would be greatly...
|
by: James Brown [MVP] |
last post by:
Hi,
I am having trouble understanding how the 'const' modifier affects the
'left-right' rule when deciphering c-declarations:
const int *x; // x is a pointer to a 'const int'
int const *x; ...
|
by: sathikbasha |
last post by:
hi
Please tel me is there any way to set the value to Page Set Up example LEFT ,RIGHT,TOP and BOTTOM using java script..
|
by: rblaettler |
last post by:
Hey
I need to position an Icon OVER the right bottom corner of an other CSS element, but with variable height and width. So just absolute positioning would not work.
I have something working with...
|
by: Eng Teng |
last post by:
How do I set my form start at the right bottom site in any monitor
resolution?
Regards,
Tee
|
by: garfieldsevilla |
last post by:
I have a report in Access 2003 which consists of a header with two fields and a subform pasted into the centre.
When I open this form, it always displays in Print Preview and I cannot find an...
|
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...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
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: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| | |