all groups > dotnet windows forms > november 2004
Filter by week: 1 2 3 4 5
Auto Expanding TextBox/Controls
Posted by Tobin Harris at 11/30/2004 11:51:38 PM
Hi there,
I've googled this problem, and not found a suitable solution yet. I was
wondering if anyone has made any progress?
Basically, I want to make a textbox automagically adjust it's height to show
all the text it contains. So, if I add text then it grows, and it shrinks if
I remove ... more >>
Transparent control
Posted by Olo at 11/30/2004 10:14:49 PM
Hi,
I have to write transparent control - simple red rectangle. When I mouse
move control should change position(left and top). The problem is when
red rectangle is moving over other controls such Buttons, PictureBoxes
it flicker.
Below is code of rectangle control :
public class... more >>
Threading
Posted by Charles A. Lackman at 11/30/2004 9:49:00 PM
Hello,
I am making a app that creates a thread to show a clipboard. If the
clipboard is double clicked, another window is displayed, the event is
handled inside the main app. What I would like to do is have the clipboard
use the main thread of the application that called it to handle the ... more >>
How to print AxWebBrowser control?
Posted by Serg at 11/30/2004 11:01:04 AM
Hello,
how do I submit AxWebBrowser control to print?
Thank you... more >>
Post-Mortem Debugging
Posted by kerryljenkins NO[at]SPAM hotmail.com at 11/30/2004 8:11:48 AM
Does anyone have advice about ways to obtain information about errors
that occur in Windows Forms applications at a user site? I am
currently sending exception.ToString back to me. I am not
distributing the .pdb files for size reasons so I do not get line
numbers in the stack trace. I have re... more >>
How to simply load a freeekin bitmap from a resource?
Posted by _BBB at 11/30/2004 7:28:48 AM
I'm coming over from a background in VC++, and in general I've been
pleased with the simplicity of the .NET environment. Not here.
I've done google searches on this subject (loading bitmaps from a local
resource) and always come up with complex solutions. This can't be right.
Everyone packs ... more >>
DateTime Bound to TextBox
Posted by mark at 11/30/2004 5:57:01 AM
Hi,
I have bound a DateTime field in a DataTable to a TextBox field. Other
String and Numeric fields are also bound to separate TextBoxes. If a new
DataRow is created and a DateTime value is entered no problem. However,
after the row is saved, I am unable to clear the date from the textb... more >>
prevent Multi line select on DataGrid?
Posted by mttc at 11/29/2004 11:11:36 PM
How I can prevent Multi line select on DataGrid?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Hidding a window and preventing Alt-Tabbing to it
Posted by Danielb at 11/29/2004 7:59:43 PM
I'm trying to hide the main form of my application, as I want all of the
user interaction with my application to come from interacting with a notify
icon with a context menu in the system tray (which I have working). I've
figured out how to hide the form easy enough, set the WindowState to
... more >>
Panel & keyboard focus
Posted by Mikhail Fedosov at 11/29/2004 5:21:10 PM
I have a panel and some of my controls on it (each control is derived from
Control, not from UserControl). I need to delete the selected control by
pressing the Del key. How it can be done? Panel does not process any
keyboard events. Also I don't want to delete any controls when focus is on
... more >>
Deployed simple C#.NET single form application to Windows server 2003 and the form will not display, but application appears in the the task bar.
Posted by Roger.Smith at 11/29/2004 4:54:26 PM
I have a very simple C#.NET (Framework 1.1) application that is one form
with standard .NET controls on it. The application requires a CONFIG file
to work. When I install the application to Windows 98/2000/XP, I simply
install the .NET framework and copy the EXE and CONFIG files to the
wor... more >>
DataGridView tab order
Posted by Christoffer at 11/29/2004 1:47:59 PM
Hello, I have a DataGridView with several columns. I would like to change
the tab order for the columns but I can not find a way to do this. There is
no property to set the tab order. I could listen for the tab-keypress but I
can not find a method setting focus on a specific cell in the DataGr... more >>
find process by processname
Posted by Jeremy Chapman at 11/29/2004 1:14:01 PM
I wanted to find a process by the ProcessName property, but I discovered
that if the executable name changes, the ProcessName reflects that. Is
there some way for me to identify a process by something that may not
change?
... more >>
Creating VS Studio like control
Posted by Harshad Rathod at 11/29/2004 12:41:11 PM
How do you create controls like Toolbox and Solution Explorer that expands
OnMouseOver and lsides back when looses focus? Also, it has bookmark.
--
Thanks for your help.
Harshad Rathod... more >>
creating VS Studio like controls
Posted by Harshad Rathod at 11/29/2004 12:33:15 PM
How do you create controls like Toolbox and Solution Explorer that expands
OnMouseOver and lsides back when looses focus? Also, it has bookmark.
--
Thanks for your help.
Harshad Rathod... more >>
Hello, Japan?
Posted by David at 11/29/2004 11:43:04 AM
My application is so successful that it needs to go global.
The only problem is that that means Japanese. I don't know the first thing
about making a Japanese language application. I know I have to use Unicode,
but that's about it.
In case it matters, the user will be presented with a ... more >>
Showing verbs in a PropertyGrid at runtime
Posted by Ian Ringrose at 11/29/2004 11:42:09 AM
I wished to show verbs in a PropertyGrid that is hosted in my own WinForms
application. The normal way to show verbs is to provide a IDesigner
implementation, however this only works when the PropertyGrid is hosted
inside of MSDEV. This is my solution, comments please.
using System;
usin... more >>
Closing all instances of an application
Posted by Jeremy Chapman at 11/29/2004 11:23:13 AM
I start up several instances of an application I've written. From one of
the applications I'm trying to close all of them, but it's not working. I'm
doing this by registering a message and broadcasting it. but when I put a
breakpoint in my overridden WndProc, It never seems to get the message.
... more >>
Obtaining system appearance settings.
Posted by Alfetta159 at 11/29/2004 10:51:03 AM
How do I find out what the Systems's appearance parameters are such as the
window border width or color?... more >>
create object dynamically
Posted by ronnel.santiago at 11/29/2004 10:29:25 AM
hi guys,
i just have a doubt about this one... i have several class that just
basically do CRUD operations (create, read, update, delete) now for example
on my delete function, i want to create objects dynamically based on
TableName..
this is my current line of code
Public Sub ActionButton... more >>
Maximize
Posted by Charles A. Lackman at 11/29/2004 10:00:14 AM
Hello,
I have an application that starts notepad.exe from a button click in VB.NET.
I am looking for a way to make the window maximize or minimize from the vb
app.
Any suggestions (if at all possible, detailed) will be greatly appeciated,
Thanks,
Chuck
... more >>
Monitor Dial-up Connection
Posted by Brad at 11/29/2004 7:19:03 AM
I am writing a smart client application that needs to monitor the users
dial-up connection status. If the user disconnects, I need to prompt them to
reconnect, or quit the application. I tried using the following WMI query
wmiDialupDisconnect = New ManagementEventWatcher("SELECT * FROM
MS... more >>
creating instance of a form from a variable
Posted by Harshad Rathod at 11/29/2004 6:15:04 AM
Ususally we do like:
SalesOrderForm fm = new SalesOrderForm();
where SalesOrderForm is a valid form in one of the assembly, that is
SalesOrderForm is a type. How can I create an instance of SalesOrderForm
when I do not know its type at run tyme? For example
public openForm (string for... more >>
Time of inactivity
Posted by Nicola at 11/29/2004 6:03:02 AM
I have a vb.net application that starts with a login form.
I would like to show it again after 5 minutes of inactivity of the
application.
Now, I use a timer and I start it in the application.idle event, but it
doesn't work fine, because it shows the login form every 5 minutes of
activity ... more >>
Mouse event handlers
Posted by Roger Crawfis at 11/29/2004 3:07:32 AM
I am writing a 3D graphics demo for my students, and thought I had a really
slick solution for handling the interaction with the mouse. There are
several ways to interact with a 3D world, and I have attached a mouseDown
event handler to my OpenGL panel (control). What I want to do, is based ... more >>
Getting the keyboard state in MouseMove
Posted by Roger Crawfis at 11/29/2004 2:47:11 AM
In my windows app, I have an event handler for the mouse move, and want to
allow for constrained interaction using the shift or control keys. I can not
figure out how to get the state of the shift, control or alt key modifiers
for the mouse. The mouseEventArgs does not seems to have anything... more >>
How can I custom draw a window title bar
Posted by Nigel Armstrong at 11/28/2004 1:49:04 PM
Hi All
I've tried without success on google and google groups to find the answer to
this, but without success - but I do recall it being discussed...
In my application, if I want a slightly modified Title Bar on some forms -
eg so that it is coloured yellow rather than using the system sch... more >>
Dynamic Properties. What the point?
Posted by Rene at 11/27/2004 10:50:23 PM
I have been playing around with the "Dynamic Properties" of the controls and
for the life of me, I can't figure out why would anybody care about using
feature.
It looks like the only things that this feature does is store and retrieve
values from the app.config file! The thing is that, the... more >>
XML editor component
Posted by Anders K. Jacobsen [DK] at 11/27/2004 8:46:43 PM
Hi
Im planning to develope a open source editor for editing some special xml
files. I guess its quite a task (read time-consuming) to develope my own xml
editor from scratch. I need tag highligtning, endtag autocomplete and just
plain texteditor capeablities.
Anyone know of a free xmledi... more >>
Convert ascii code to string
Posted by Daniel Passwater via DotNetMonster.com at 11/27/2004 6:44:36 PM
I am working on an app that is receiving hex numerical values via serial connection. I am now to the point that I have converted each byte into its ascii code value. Could comeone please tell me how to convert 48 to 0, 49 to 1, etc? I need to display this in a textbox.
Thanks in advance for any and... more >>
Unresponsive UI during lengthy processing
Posted by Marcos Stefanakopolus at 11/27/2004 5:57:34 PM
Ok, I'll admit it, I'm a winforms newbie. I'm writing an image processing
program that, by its nature, gets into some fairly lengthy processing
cycles. As long as I don't touch the UI while it's working, don't alt-tab
away and come back, don't minimize and restore--in short, as long as I sit... more >>
Which Group for Webforms
Posted by Jeff Gaines at 11/27/2004 7:48:24 AM
Can anybody tell me which is the most appropriate news group for
questions on Webforms rather than Windowsforms?
Many thanks.
--
Jeff Gaines Damerham Hampshire UK... more >>
CheckListBox on a TabControl... wierd behaviour
Posted by dev guy at 11/26/2004 5:59:19 PM
hi
I have a tabcontrol with few pages. 2 of the tab pages have one checklistbox
each, when I flip through the tab pages, the checkboxlist loses the check
states.
I thought, the tab control may not be painting them properly. but that is
not the case. the check states are lost by the checklis... more >>
Selecting ListView item with Windows Message
Posted by Koala at 11/26/2004 5:40:12 PM
Hi, I'm trying to select all listView items with SendMessage API function
and LVM_SETITEMSTATE windows message
....
hWnd = listView.handle;
index = -1;
....
LVITEM lvItem = new LVITEM();
lvItem.mask = LVIF_STATE;
lvItem.stateMask = LVIS_SELECTED;
lvItem.state = LVIS_SELECTED;
IntPtr point... more >>
DataBind DBNull Image
Posted by Jeronimo Bertran at 11/26/2004 4:13:14 PM
I am using forms databinding to show an image in the database in a
pictureBox. To do this I am handling the Format event to convert the byte
[] to a bitmap:
Binding bind = new System.Windows.Forms.Binding("Image", this.dataSet1,
"Employee.Image");
bind.Format += new ConvertEventHandler... more >>
Data Find Row and Databinding
Posted by Jeronimo Bertran at 11/26/2004 3:13:38 PM
I have create a form that is databound to a dataset. I am able to move
through the dataset by using the BindingManagerBase.Position. However, I
need to be able to jump to a specific row in my dataset. I am finding the
desired row in the dataset by using the Find Method in the
DataRowCol... more >>
DataGrid with auto live update?
Posted by jason at 11/26/2004 2:02:38 PM
Hi all,
Working with dataset and datagrid in disconnected mode may improve
scalability. However, this means that multi clients instances are viewing
'out of date' local copies if changes were made by someone else to back end
database.
In situation where I need a datagrid to auto refresh,... more >>
[SURVEY] Windows Forms developer feedback wanted
Posted by ingo NO[at]SPAM xamlon.com at 11/26/2004 5:29:33 AM
Hello,
We want to learn about your interest in building windows applications
using declarative or markup-based programming techniques. Microsoft
will enable some of these technologies as part of Longhorn/Avalon, but
is less focused on bringing these new ideas to Windows Forms
developers, and ... more >>
Datagrid doesn't reflect changes in datasource
Posted by René Titulaer at 11/26/2004 2:45:04 AM
Dear all,
when I fill my dataset the datagrid doesn't reflect these changes.
Here's the scenario
- add new form
- add datagrid to form
- add dataset to form
- bind datagrid to dataset (using datagrid properties)
- next code is generated in InitializeComponent() -> dataset is created,
d... more >>
Custom double buffer
Posted by Kuba Florczyk at 11/26/2004 2:02:13 AM
Hi
I've got some problem doing double buffer.
Here is my problem:
I've got custom control on which i paint some data (chat messages, lets call
it ChatControl), this control is puted on a scrollable panel.
Of course i've set right styles on a ChatControl:
//styles
this.SetStyle(Control... more >>
XML and the Dataset
Posted by Daren Hawes at 11/25/2004 5:51:52 PM
Hi I have a XML File and a Dataset
<?xml version="1.0" standalone="yes"?>
<Tank xmlns="http://www.tempuri.org/Tank.xsd">
<Tank>
<TankName>Tank One</TankName>
<TankLocation>Lounge Room</TankLocation>
<TankSize>140 Litres / 40 Gallons</TankSize>
<TankContents>FOWLR (Reef Tan... more >>
Detecting Dialogs from other application
Posted by Randall Campbell at 11/25/2004 5:23:09 PM
I have some C# code that runs via the VSAEngine under a host program. There
is a situation where the host program will display a dialog that will stop
execution of my code. There is no API available to me to prevent this.
Is there a way by either looking at windows messages or a hook, that I ... more >>
Table Control
Posted by Ryu at 11/25/2004 4:55:15 PM
Is there a table control i can use in Windows Form?
... more >>
Toolbar buttons have blue line at bottom edge of images
Posted by Charles Goehring at 11/25/2004 4:38:20 PM
Windows Forms App Gurus,
I have a toolbar on a form. Some of the buttons have images on them.
Buttons with images have a blue line that is like a focus indicator at
the bottom edge of the image (all toolbarbuttons with images have this).
I can't figure out how to get this turned off. Tri... more >>
How to FTP via VPN to sites with real adresses on different IP's ?
Posted by Jason Robertson at 11/25/2004 4:28:44 PM
Hi,
I am using Windows 2003 Server. The VPN works fine, but I want to FTP
through the VPN so the connection is encrypted. The problem is each of my
IIS sites has a real Internet address specified, w.x.y.z. So when the VPN
comes up using a private IP, I can't connect to any of the FTP sites u... more >>
How to trap F5 in Windows Forms?
Posted by Ryu at 11/25/2004 3:41:04 PM
Hi All,
I have created a simple form that displays a simple message. But the message
cant seem to be displayed? Any reason why? Below is my code.
private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs
e)
{
if(e.KeyCode == Keys.F5)
{
MessageB... more >>
Drag and Drop Message from outlook
Posted by martinwlarsen NO[at]SPAM hotmail.com at 11/25/2004 1:33:06 PM
I have made a little app that accepts drag and drop from all sources but when
I drop a Outlook Email the FileContents is always null.
Is there any Microsoft documentation on how to correctly access the .msg
using drag and drop from outlook?
BRGDS
Martin
... more >>
PLEASE HELP - Using URL with EventLog
Posted by Shads at 11/25/2004 7:55:23 AM
I'm trying to write a url as a hyperlink in the Eventlog,
does anyone know if this is possible ??
I have found the following site that confirms this can be
done, but he doesn't say how !!!
http://www.codeproject.com/dotnet/evtvwr.asp
... more >>
problem in calling winapi that use pointer to struct from c#
Posted by amit bharadwaj at 11/25/2004 5:35:04 AM
hi am using panel with autoscroll , now i want to call window api
BOOL GetScrollInfo(HWND hwnd, int fnBar, LPSCROLLINFO lpsi));
now am doing like tht
unsafe public static extern bool GetScrollInfo(uint hwnd,uint SB_HORZ,
SCROLLINFO* si );
but it causes a problem in lasst parameter , pls ... more >>
My User Controls Tab disappeared
Posted by arne.wiklund NO[at]SPAM intellifield.no at 11/25/2004 12:57:45 AM
Hello,
I have seen alot of issues regarding controls not appearing in the "My
User Controls" tab. My problem is that this tab is not shown at all.
My colleuges got this tab when installing VS, but I did not. I have
tried to create one myself but no controls are added (yes, I have
created the c... more >>
|