473,566 Members | 3,273 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to implement a Visual Studio like Output window

Hi

I am an XLib programmer making a move to Windows and C#.

To learn as much as I can I am planning to convert a program basic
program
across from XLib.

I have spent the last few days with my head in Windows forms manual
and learnt alot.

In my application I wish to have a window similar to the output window
in Visual Studio.

How is the output window in Visual stuido implemented?

Is it a giant text box or it is a special window?

How can I make a simple console like output window in a windows
application?

Thanks

David

May 6 '07 #1
5 3227
Use a textBox or a richTextBox. I do that in my application. I have a
synchronized queue that collects messages from all threads and a timer
that prints them 30 times / second. I concatenate all the messages
using StringBuilder. Then if my new text.Len + existing text.Len is
greater than current amount of allowed text in the box I chop off the
first 1/3 of the existing text before appending.

May 6 '07 #2
Hi Group,

I have implemented a log using a textbox.

In this log I insert my log messaage to the end of the text box.

I have attached ScrollBars.Vert ical to the text box.

However the scroll bar is always at the top, so as I continue adding
to the
log the most recent events are off the bottom of the screen.

How do I modify the scrollbars so it is at the bottom and the oldest
text at the top goes off the screen and I need to scroll to see it.

Thanks

David
May 7 '07 #3
It's easier to log to a ListBox and as you log each message set the item to
SetSelected. The scrolling is done automatically.

<da***********@ yahoo.com.auwro te in message
news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
Hi Group,

I have implemented a log using a textbox.

In this log I insert my log messaage to the end of the text box.

I have attached ScrollBars.Vert ical to the text box.

However the scroll bar is always at the top, so as I continue adding
to the
log the most recent events are off the bottom of the screen.

How do I modify the scrollbars so it is at the bottom and the oldest
text at the top goes off the screen and I need to scroll to see it.

Thanks

David

May 7 '07 #4
Hi
It's easier to log to a ListBox and as you log each message set the item to
SetSelected. The scrolling is done automatically.
If I use a listbox is it possible for the user to select part of the
text and copy to NOTEPAD etc?

I wish to be able to select some of the text if it is interesting in
the log.

Why does the scrolling work correctly for the listbox and not the text
box?

David
May 7 '07 #5
I'm not sure if you can select text from a listbox.

If you have an edit box and say it is multiline and check the Scrollbars
option, doesn't it add the scrollbars for you?

<da***********@ yahoo.com.auwro te in message
news:11******** **************@ u30g2000hsc.goo glegroups.com.. .
Hi
>It's easier to log to a ListBox and as you log each message set the item
to
SetSelected. The scrolling is done automatically.

If I use a listbox is it possible for the user to select part of the
text and copy to NOTEPAD etc?

I wish to be able to select some of the text if it is interesting in
the log.

Why does the scrolling work correctly for the listbox and not the text
box?

David

May 8 '07 #6

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

Similar topics

0
2575
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project: OSTDLL, Configuration: Debug Win32 ------ Compiling... StdAfx.cpp
0
774
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project: OSTDLL, Configuration: Debug Win32 ------ Compiling... StdAfx.cpp
4
1841
by: Bill Burris | last post by:
When compiling my solution which contains 15 projects (2 Window Apps, 2 Services, 11 class libraries, C#, MC++, & C++), I was receiving warnings about symbols defined in multiple places. Selecting Rebuild Solution did not make the problem go away. After selecting Clean Solution, followed by Rebuild Solution, the problem went away. I had...
4
1334
by: Steve | last post by:
1) How can I perform backward search in editor of Visual Studio .NET? In VC++ 6.0 it was enough just to hold Shift button. This combination doesn't work anymore in Visual Studio .NET? 2) Each time I build C++ project in Visual Studio .NET, the annoying window "Task List - 1 Build Error task shown (filtered)". I don't like format of this...
11
1849
by: Larry Bird | last post by:
I'm attempting to build my first VC++ .net project and I'm unable to get a clean compile. Please view code below: // This is the main project file for VC++ application project // generated using an Application Wizard. #include "stdafx.h" #using <mscorlib.dll>
8
2196
by: HELLO $$$ | last post by:
To those who are familiar to MS Visual studio : I have recently Visual Studio 2005. Please can any body tells me , when I write a code: How can I separate the files of such code from the Studio program and operate it away from mother program (Studio). Thank you. =============================
16
2194
by: Jon Davis | last post by:
We ordered new systems with fast hardware and great specs, but Visual Studio takes longer to build a project than on the old workstation. Msbuild is faster, csc.exe is faster, file copy is faster. But opening copying the project files straight over from one workstation to the new workstation, opening the projects locally on the new...
1
1545
by: Nathan | last post by:
Hello, I have a programming assignment due for my programming class. Basically, I have to code the program in visual studio..then I have to paste the code and the output into microsoft word(2007). Well my friend told me that you can copy and paste the "outputbox" into Word. When i say "output box"..i mean the display window that pops up...
0
7312
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7645
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...
0
7953
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...
0
6263
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...
1
5485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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...
0
3643
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...
1
2085
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
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.