all groups > dotnet windows forms > july 2005 > threads for july 15 - 21, 2005
Filter by week: 1 2 3 4 5
MDI Client Repaint
Posted by pramod at 7/21/2005 11:43:07 PM
Hi,
I have created a MDI Form with the formborderstyle = NONE so that it
does not display any title bar and control buttons. This MDI form host a
child form with the same attibutes ( i.e formborderstyle = NONE ). The MDI
form contains set of buttons. On pressing each button a new child f... more >>
How do you check for the tab changing in a TabControl?
Posted by aualias at 7/21/2005 9:58:23 PM
Hi,
I have a dialog with a TabControl. Some of the TabPages have TabControls on
them. If I need to detect when the outer TabControl is about to change to
another TabPage I can override the WndProc() and handle WM_NOTIFY and
TCN_SELCHANGING.
However, when one of the inner tabs change WM... more >>
SetWindowsHookEx - how to determine where the message came from.
Posted by Jeremy Chapman at 7/21/2005 4:42:20 PM
I have used SetWindowsHookEx successfully to filter messages comming in, but
I am trying to determine where the message came from originally, because I
only want to suppress messages from certain apps. Can this be done? I
can't figure out how.
... more >>
Can not retrieve text value of bound textbox
Posted by Wishing I was skiing mom at 7/21/2005 10:17:03 AM
This seems like such a simple task. I have a textbox that is bound to a
database field, the text box displays the expected value but in my code when
I try to evaluate the text (ex. If txtSecurityGroup.Text = "purchasing") the
text property is = "". I am sure I am missing something here.
He... more >>
System Tray Application
Posted by Barguast at 7/21/2005 10:09:02 AM
I want to create an application that will start off in the system tray
without any initial form being displayed. The problem is that I can't seem to
create such an application without including a NotifyIcon control on a form.
Isn't there any way to start an application in the system tray wit... more >>
Web service is slow or times out sometimes - HELP
Posted by Karen at 7/21/2005 9:20:07 AM
We currently have a smart client windows application developed in
Visual Studio .NET (vb.net) 2003. The windows application resides on
multiple client machines which run the .NET Framework 1.1 (v1.1.4322).
The client application accesses a web service located on a Windows 2003
server and reside... more >>
Unbound DataGrid (Cols count)- How To
Posted by Antonio Paglia at 7/21/2005 8:28:31 AM
Does anyone know how to get the number of columns in unbound datagrid ?
TIA
Antonio
... more >>
Left and Right Arrow keys don't move cursor in focused TextBox
Posted by nate axtell at 7/21/2005 7:56:08 AM
VB .NET 2003: I have TextBox controls on the pages of a TabControl, then
when running the application I try to move the cursor when a TextBox has
focus. The Right and Left arrow keys don't move my cursor through the text.
Only the Up and Down arrows work for moving the cursor left and right. ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to trigger other thread
Posted by Axel Dahmen at 7/21/2005 12:00:00 AM
Hi,
I've two threads in my program: 1) The original program thread and 2) a
worker thread.
For simplicity my worker thread writes its output into the static controls
and status bar by itself.
In the Form_Closing() event, I want to shut down my worker thread gracefully
and wait for its co... more >>
How draw 3D buttons by code?
Posted by TonyVal - MSDN News at 7/21/2005 12:00:00 AM
Hi,
I want to draw 3D buttons by code nice like this one:
http://www.download.com/AquaButton-Control/3000-10253_4-10414398.html?tag=lst-0-1
The code may be anyone of .NET languages.
Please help me out.
Thanks in advance.
John Lid
... more >>
DataGridView
Posted by Tony at 7/20/2005 12:27:06 PM
Is it possible to display images and icons in this control?... more >>
preventing combobox dropdown box from showing
Posted by Brian Henry at 7/20/2005 11:06:43 AM
Is there anyway to prevent the white box that drops down when you do a
combobox dropdown from showing? I am trying to make a custom combobox which
requires showing a custom form in its place, but the white box shows up
still ontop of the new form that is taking its palce even though there is n... more >>
One-shot setting of app Visual Style
Posted by Gianluca Torta at 7/20/2005 7:59:41 AM
Hi all,
in a previous message on this newsgroup James Morgan was asking whether
there is "something like Java Pluggable L&F: one line of code and your
app looks the way you want it to" (for WinForm apps)
http://groups-beta.google.com/groups?as_umsgid=14e876fd.0409171437.8b90d66@posting.googl... more >>
Microsoft and their failure to fix 5 year old bug
Posted by schoenfeld1 NO[at]SPAM gmail.com at 7/20/2005 6:53:16 AM
How many more years will it take for the geniuses at Microsoft to fix
the TabPage control so it uses the proper xp-theme when specified to do
so?
I'm betting another 5 to 7, how about you?
... more >>
Bug in Framework: Activate Event
Posted by Axel Dahmen at 7/20/2005 12:00:00 AM
Hi,
I've noticed an error in the Activate event of .NET Framework 1.0/1.1: When
a .NET program starts but the window is opened behind other windows and thus
is NOT activated, the Activate event still is fired. So the program can not
recognize if it is active or not.
Can someone reproduce th... more >>
LOGFONT, Font.FromLogFont & Font.ToLogFont
Posted by Lloyd Dupont at 7/20/2005 12:00:00 AM
I am using LOGFONT definition from here:
http://www.pinvoke.net/default.aspx/Structures/LOGFONT.html
I get my LOGFONT with
myFont.ToLogFont(lf);
a bit later I attempt to recreate the same font with:
Font.FromLogFont(lf);
And what is then is:
if I get the LOGFONT again (with previous c... more >>
ListView - SelectedIndexChange event
Posted by Bob Dankert at 7/19/2005 6:31:13 PM
I have a form which has a listview and some controls. The controls on the
form are only enabled if there is an item selected in the listview. My
problem is that there is some flicker when changing items in the listview.
I found this is because when I change items, first the item is deselecte... more >>
Tools for porting MFC dialogs to C#
Posted by Oculus at 7/19/2005 11:02:08 AM
Hi,
I need to port a boatload of MFC dialogs (~50) to C#. I'm an accoplished
MFC/C++ and C# GUI developer, but it would save me a huge amount of time if
there was a tool that would generate stub C# classes from the MFC (or just
plain old Win32) .RC dialog resources.
I've been searching... more >>
ITypedList causing my GridStyle to break!
Posted by Tomas at 7/19/2005 6:36:04 AM
I've got a custom collection called CurrencySummaryTransactionCollection
which is a collection of CurrencySummaryTransaction objects. Each of these
objects has a nested TransactionSummary member called Transactions. I don't
want the DataGrid to display these nested transactions so I've impleme... more >>
Panel SetFocus
Posted by Ladachris at 7/19/2005 5:19:03 AM
Hello everybody!
In our application we have a row of panels that act as a navigation panel -
looking similar to a tree.
It works fine, all the panels can be clicked and the related action is
performed.
It got a requirement that this control must be accessable by keyboard, so it
must h... more >>
Set each character in TextBox a different colour?
Posted by redneon at 7/19/2005 3:39:01 AM
Is it possible to set each character in a TextBox a different colour?
... more >>
Windows Forms SOAP Server
Posted by OfurGørn at 7/19/2005 2:07:02 AM
Hello.
I have been trying to access a local 3rd party application through a web
service, but it seems that IIS has no access to the "user space" that the
application runs in - even though I have experimented with impersonation, the
IIS rights on my filesystem and so on. The idea now is to... more >>
activex wrapper for a .net control
Posted by christoph at 7/19/2005 1:02:06 AM
is it possible to provide an activex wrapper for a .Net control,
e.g. written as C++ MFC or ATL class?
--
christoph.w... more >>
incorrect window location, size & position (with .NET 2.0 beta2)
Posted by Lloyd Dupont at 7/19/2005 12:00:00 AM
I have a Form initialized like that:
//--
public DragingForm()
{
SetStyle(ControlStyles.Opaque, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.ContainerControl, false);
SetStyle(ControlStyles.Sele... more >>
catch user clicking on the X button
Posted by Stephan Steiner at 7/19/2005 12:00:00 AM
Hi
I need a special variant of catching the OnClosing event. Basically I want
OnClosing to not close the form if the X button has been pressed, but to
minimize it. So far, no problem. The problem is that I don't know a way to
figure out if the event is thrown because the user pressed the X ... more >>
Distributing application with Access database
Posted by Tomas Machala at 7/19/2005 12:00:00 AM
Hi, is it possible to distribute applications using Access database to
systems without Access installed?
I've also heard that if I do so, I have to pay for some license, is it true?
... more >>
border consideration
Posted by Lloyd Dupont at 7/19/2005 12:00:00 AM
I have a custom control (completely user drawn) to which I would like to
apply a standart border.
1st: There is the BorderStyle and Border3DStyle enums, I don't know which
one I should choose for my control, what do you reckon?
2nd: once the border is set, I have to draw it (the border)(e... more >>
AVI animation on VB.NET form howto?
Posted by Mikael Jansson at 7/18/2005 10:57:05 PM
Hi,
I tried to find how to show an AVI animation sequence like a "filecopy"
animation but did not find how to do that in VB. Is there a control in
VB.NET or any other way of doing it??
I be very happy for a code example if possible.....feeling a little lost for
the moment ;-)
br
/ Mi... more >>
Create Explorer-like ListView control
Posted by Dotnetjunky at 7/18/2005 8:16:02 PM
Hi,
The .NET ListView control doesn't support moving items freely as in Explorer
pane. Has anyone here come across any 3rd-party ListView control which
support the above feature and (optionally) grouping feature (as when we right
click on Explorer pane, choose Arrange Icons By - Show in Gro... more >>
ListView LVINSERTMARK is invisible
Posted by MarkR at 7/18/2005 6:53:08 PM
Hello, all:
I'm trying to get the ListView Insert Mark to appear in my XP application,
and though the SendMessage(...LVM_SETINSERTMARK...) call returns TRUE, the
mark is not visible.
I built a simple, unmanaged MFC app to do the same thing and it works. Both
apps use v6 of CommCtrl, bot... more >>
Taking Bitmap snapshot of a from or a control on a form
Posted by Sajjad at 7/18/2005 6:23:14 PM
i have one application running remotly and want to take its window snapshort
at any given time,
Here is a code i wrote
public Bitmap GetPicture()
{
Bitmap sbmp = new Bitmap(1000, 1000);
Graphics g = Graphics.FromImage( sbmp );
System.Windows.Forms.PaintEventArgs pe = new PaintEvent... more >>
That damnedable ComboBox control
Posted by Sgt. Sausage at 7/18/2005 5:14:48 PM
Just ranting. Too many bugs with WinForms ComboBox.
Title says it all. Ignore this post.
... more >>
Window flickers when over an opengl window
Posted by TDaranchuc at 7/18/2005 2:51:05 PM
I have a splash screen that displays over an application with an opengl
context and the window flcikers. I would like to know how I can solve this
problem. Thanks in advance.... more >>
problem creating transparent window...
Posted by ve at 7/18/2005 12:59:01 PM
Hello guys,
I am trying to create a transparent form using CreateWindowEx() by calling
the unmanaged code. But everytime after the call the returned handle is zero.
i could nto figure what is the problem in that...
Here is the code
--------------
[DllImport("User32", SetLastError=true... more >>
Is there a dual function for ListBox.IndexFromPoint(Point p)?
Posted by dlyle at 7/18/2005 8:16:04 AM
I'm writing a poor man's browser using an owner drawn ListBox. I was
positioning the ListBox items (Controls) using Control.Location until I
discovered that Control.Location has the seemingly retarded limitation of
32767 (2^16 signed integer). I had been mapping viewport coordinates to real
... more >>
Interop with OpenOffice?
Posted by Lloyd Dupont at 7/18/2005 12:00:00 AM
In my application I would like to have a powerfull text editor.
RichTextBox falls a bit short of it.
I cannot assume my application's user would have MS-Word (it's not standart
part of the OS, hey!)
Is there any ways / examples of embedding OpenOffice TextControl in .NET?
... more >>
newbie: Basic input dialog?
Posted by deko at 7/17/2005 12:00:00 AM
I have a WinForms app that needs to take user input on open - before the
FormMain is displayed.
On the Form Load event of FormMain, I test for existence of an Access
database:
if (!File.Exists(Application.StartupPath +
"\\myAccess.mdb"))
If the mdb is not there, I need to o... more >>
How to change font, size and style of a label programatically
Posted by Ron Rasmussen at 7/16/2005 11:58:04 AM
I am trying to change a lables font at runtime.
When I sent the labels font to New Font ("Andy",16,2) it wont allow be to
set the style(2)
If I remove the style it errors because the font does not support the style
regular.
This has to be easy....What am I doing wrong?
Thanks... more >>
Specifying borders for a panel
Posted by marc.cueto NO[at]SPAM gmail.com at 7/15/2005 9:38:49 PM
How can I do it so that I can specify which border I would like to
appear on a panel? Say for example on a panel I want all sides except
the right side to be drawn?
... more >>
FolderBrowserDialog won't accept the My Documents (or below) folder for the selectedpath
Posted by Dan Hinsley at 7/15/2005 6:53:32 PM
I want to set the selectedpath in the folderbrowserdialog to a subdirectory
of my "My Music" folder, yet allow the user to traverse higher than that in
the directory if they want (in other words I don't want to set the root
folder to this My Music, I want to set it to My Computer). But when I... more >>
how to write a text file in a web server
Posted by NormD at 7/15/2005 2:29:03 PM
I have a no touch deployment application. I'm trying to write a file to a web
server by using webclient class' UploadFile method but I get an security
exception. What should I do to overcome this exception?
... more >>
SystemTray Balloon Window suppressed with fullscreen apps?
Posted by Terry at 7/15/2005 2:27:16 PM
I read that the system tray balloon window will be suppressed when
there's a fullscreen app running like a game or PowerPoint presentation.
I've personally verified this behavior, but it doesn't seem to be
smart enough to know that the task bar is on a second monitor. It just
seems to che... more >>
Topmost Tool Window
Posted by Kevin Cochran at 7/15/2005 1:49:02 PM
Greetings,
I have a vb.net app, and I have a tool window that I was to be topmost while
the application is in focus, but not stay on top of other apps that get the
focus.
Basically, I want it to behave like the tool windows in Photoshop.
How do I set the attributes to do this?
Thanks... more >>
Resources
Posted by Paul Cheetham at 7/15/2005 12:06:49 PM
Hi,
I am developing a Windows Form app, that has graphical buttons.
Obviously I use the same button more than once throuout the application,
but Visual Studio would appear to embed a set of images for each button
into the program resources, instead of using a commen one.
If I can make it ... more >>
Drag/Drop an Image from a Web Browset
Posted by JezB at 7/15/2005 9:47:28 AM
I've implemented a drag & drop operation which allows an image (or a file
containing an image) to be dropped onto a custom control. This works fine on
dragging an image file already on my hard drive, but on dragging an Image
from any web page in a web browser, I'm getting an "Out of memory" ex... more >>
Autoscroll scrollbar thumb position being reset upon focus change
Posted by dlyle at 7/15/2005 7:27:02 AM
Given the following Form with a panel with autoscroll set to true and with
enough controls at different locations to cause autoscrolling to be visibly
on, there is a slight annoyance with the behavior of the scrollbar upon
switching focus to another window -- the scrollbar thumb position
aut... more >>
Developing Windows App for different screen resolutions
Posted by vishy at 7/15/2005 2:05:04 AM
Hi,
Our project requirement is to develop app for 2 different screen resolutions
1024x768 and .. 800x600.so basically I want my forms loaded with controls
behave expectedly when screen resolution changes..how can this be done?
thanks... more >>
visual demo idea to shut up a mac developer?....
Posted by Lloyd Dupont at 7/15/2005 12:00:00 AM
I'm porting a Mac application to window.
Regularly I have comment like that:
- (me): hum.. there is no shadow object in .NET's Graphic's object.
- (him): what? but that's standart (mac) stuff!!!
or
- (me): well, the default RichTextBox doesn't handle kerning (character
spacing).
- (him... more >>
Draft font printing
Posted by Andrea at 7/15/2005 12:00:00 AM
Does someone know how to print draft font using plain c# (PrintDocument) ?
or some 3 party NET component ?
I have an Intermec termal printer and wuold like to print a small report
using printer fonts (for barcode).
I can do this easily with msaccess using a label and selecting installed
inte... more >>
|