all groups > dotnet windows forms > august 2003
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Panel Resize Problem
Posted by JS at 8/31/2003 11:46:44 PM
Hey all,
I have three panels that take up the full width of the form minus the
splitter docked to the left and they are all anchored.
Panel1 (top panel) has a button on it to allow the user to change the height
depending on the current height.
private void BtnExpand_Click(object sender,... more >>
Calling JOE WHITE
Posted by Trent at 8/31/2003 11:23:31 PM
Joe,
You sound like a knowledgable fellow - any chance you can
look at my earlier datagrid - capture sort posting.
Cheers,
Trent... more >>
Simple program mem hog
Posted by Stephen at 8/31/2003 9:50:51 PM
I have a fairly simple program with 2 forms, one having
only a toolbar with 5 buttons and a simple status bar,
and 8 menu entries in VB. The other form is larger with
a couple small images and several labels. I have 4 or 5
complex classes but no instances of them declared and my
program ... more >>
Controls draw slow on forms
Posted by Stephen at 8/31/2003 9:43:24 PM
I have a simple Help->About window with about 15 labels,
5 buttons, and 2 web links in VB.NET. It also has 2
pictureboxes, an icon 48x48x32bpp and the other
180x180x8bpp. I am running a decent machine at 2.4GHz,
nothing running to slow it down, but you can see the form
draw each control ... more >>
who can explain?
Posted by AlexS at 8/31/2003 8:26:15 PM
Here is the problem:
An error has occurred because a control with auto-generated id '_ctl2' could
not be located to raise a postback event. To avoid this error, explicitly
set the ID property of controls that raise postback events.
Description: An unhandled exception occurred during the execut... more >>
Problem Editing TreeView Labels
Posted by Peter D. Dunlap at 8/31/2003 5:04:38 PM
I'm working on a Windows Forms app that includes a TreeView control.
The TreeView is set to allow label editing. If I click twice on a
label I can edit it fine. I also have a "Rename Client" item on a
context menu, and if I pick that I can edit the label.
However, at the next level up I have... more >>
Bug in ToolTip component?
Posted by Edward at 8/31/2003 6:22:27 AM
Hi all,
In my application I have modal form and controls on this
form have tooltips. I do not recreate instance of the
form, only hide it and show again. But after second
ShowModal all tooltips disapear. Is this known bug, or I
do something wrong?
Sample code illustrates this behavior:
... more >>
DataObject.SetData to exact bytes, with no extra baloney?
Posted by Graham Wideman at 8/30/2003 7:09:05 PM
Folks:
I am trying to use .NET's DataObject.SetData to set a particular format for
clipboards and drag and drop. But I am as yet unable to prevent .NET
DataObject from prefixing my desired data with some unwanted data.
(I can do the parallel operation just fine using my own implementation o... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
e.State.HotLight NEVER true for me...
Posted by jackolantern33 NO[at]SPAM hotmail.com at 8/30/2003 4:12:33 PM
Hi everyone,
I'm using the ownerdraw functions for creating a menu, and while I can
get TRUE for e.State.Selected , I can't get a TRUE on
e.State.HotLight, no matter how much I run the mouse over the menu
item. I'm on Windows XP. Here's the code I'm using:
void MenuOnDraw(object sender, S... more >>
Get MdiChild focus back from parent control!
Posted by lu NO[at]SPAM ils.uec.ac.jp at 8/29/2003 10:18:22 PM
Dear all,
I am currently design a mdi program using C# and .net framework. I
met a problem that when I clicked the controls in parent form, such as
buttons, numericUpDown, etc, the control get focus, and I can't get
activeMdiChild focus back even I set ActiveMdiChild.Focus().
I seems li... more >>
Who can help me with splitter
Posted by Jason at 8/29/2003 5:55:26 PM
Hi,
I have a splitter control between tabcontrol and
listview. It works. I want to keep the ratio by which the
splitter divide the screen when I maximize the window.
Sometimes I maximized d the window and then set the
spillter near the bottom of the screen. Then I restored
the windows ... more >>
Repost: Where can I download the famous sample of SortedListView written by Carlos Peres?
Posted by José Joye at 8/29/2003 5:22:04 PM
In fact, I'm trying to add a sort arrow in the column header of a list view.
According to posts and sites, it is shown in the famous sample. However, the
link is not valid anymore:
http://www.codeproject.com/cs/miscctrl/sortedlistview.asp
Someone points me to the google cache:
http://www.... more >>
How to differ single and double clicks?
Posted by Alexander Osipov at 8/29/2003 3:48:13 PM
Hi!
I've got into trouble trying to place different actons on single and double
clicks in the TreeView nodes.
Unfortunately, the TreeView control fires both Click and DoubleClick events
sequentially when the user makes double click on some node and there is now
way to say at first Click event... more >>
drag/drop email message
Posted by Tom Olson at 8/29/2003 2:44:48 PM
I am trying to implement drag/drop functionality of email
messages from Outlook into my user control. The goal is
to capture the drop event and create a .msg file similar
to doing a "Save As..." from Outlook or dragging an email
into Windows explorer. I seem to get only a portion of
the ... more >>
Shaped Forms - Transparency does not work (sometimes)
Posted by Andrew Wiles at 8/29/2003 2:42:30 PM
Hi
I posted the basis of this problem a few days ago with no response but now
have some new informationthat may hopefully trigger someones
memory/interest.
If I set the BackgroundImage attribute for a form to a bitmap and the
TransparencyKey property to one of the colors in the form (in my ... more >>
Determine proper width of Label?
Posted by David Sworder at 8/29/2003 9:39:53 AM
Hi,
A Windows form that I'm developing will have two controls: Label1 and
Label2. Both controls are of type Label (go figure). The text of Label1 will
not be known until runtime and may change at times. When the MyText property
of the containing form is set, I want to:
a) Set the La... more >>
How can I do this?
Posted by Jenny C. at 8/29/2003 7:38:02 AM
Hi,
I have a VB.NET Windows app, and I want to make a HTTP
POST to a web page.
Anyone has an example of how I can do this?
thanks a lot,
Jenny... more >>
datagrid events
Posted by Robert Smith at 8/29/2003 6:13:31 AM
Hello,
I have a datagrid called dgprojects that is bound to
a dataset called dsprojects. However I wish to detect when
the user scrolls down the grid and selects another row, so
that I can call another procedure using the element in the
first column of the row as the parameter.
Than... more >>
Easily Saving user settings in a c# Windows Forms application
Posted by Nevyn Twyll at 8/29/2003 1:33:47 AM
I understand that I am not supposed to alter the .config file for a program
(accessible through the AppSettings[]).
Is there a System class you could recommend that I could use (or even a
class out there somewhere) to easily load and save custom settings for the
current user? My only thought ... more >>
Strange behavior in Release mode vs. Debug mode
Posted by Jón Óskar Erlendsson at 8/28/2003 9:05:11 PM
hi there,
I got a rather annoying functionality in my code that I could not figure
out.
My system is built with a "operation based" functionality which means that
a user's permission is based on which stored procedures he/she can execute
through the program.
When I ran it in debug mode ( eit... more >>
how to get the form
Posted by filip stas at 8/28/2003 5:32:12 PM
how can I get the name of a form (or the form as object) to which a =
control belongs for example a menuitem. How can I get the form through =
the menuitem?... more >>
imagelist question
Posted by chan at 8/28/2003 4:49:35 PM
Hi,
I have a question about using imagelist in treeview. I
want to create a treeview for allowing navigating through
the system directory structure. How can I get the
imagelist of the windows system's imagelist that contains
the glyph of drives, and folders, etc. I know I can
create my ... more >>
drawing the sort arrow in the listview column header...
Posted by José Joye at 8/28/2003 2:29:42 PM
hello,
I know that this topic has be raised many many time. However, they always
refer to the famous Carlos Peres and the related link:
http://www.codeproject.com/info/error404.asp?404;http://www.codeproject.com/cs/miscctrl/sortedlistview.asp
It is currently not valid...
Does anyone know wh... more >>
Large bitmap and Win32 API
Posted by Ivan Vickovic at 8/28/2003 10:52:23 AM
I use BitBlt for scrolling a large bitmap (3200x2600)px but problem is
because HBITMAP takes too much memory.
After loading of images:
bmp = new Bitmap("c:\\Bitmaps\\3200x2600Gif.gif");
takes about 8Mb and after executing following line:
handleBitmap = bmp.GetHbitmap();
my application i... more >>
Simple question...
Posted by Sean at 8/28/2003 10:47:02 AM
I have just started windows development, and have a really
simple question:
I want to create a 'dropdown' control, with a down arrow
to the right, which when clicked, causes the items in the
control to 'drop down', in a list, which the user can
scroll through. We've all seen them.
I ad... more >>
Images not visible when using XP Visual Styles
Posted by Axel Schlumberger at 8/28/2003 10:37:21 AM
Hello,
I am using the new method of the .NET Framework 1.1
Application.EnableVisualStyles()
to enable the XP Visual styles in my Windows Forms application. This works
fine so far, but now the images of all my TreeView controls disappeared.
When I disable the XP Styles the icons are shown ... more >>
Flithy .NET SPAMMERS - http://www.ticktop.net
Posted by John Timney (Microsoft MVP) at 8/28/2003 10:25:19 AM
Aplologies for the cross-posted mail.
This crap .NET component provider, who would likely win the worst web site
in the world competition are a dirty SPAMMING company and send out junk mail
to random mail list with false reply addresses.
Don't support this scum company by buying their produc... more >>
Posting and Handling Custom Messages (WM_USER type)
Posted by Brian Reed at 8/28/2003 10:05:46 AM
I would like to handle custom messages in my windows form/application. In
ATL, I derived from CWindowImpl and added message handlers to my message
map. In VB Code requires me to hook into the WinProc to handle messages.
How can I achieve the same thing in C#? Do I have to hook into the WinProc... more >>
form.show not working
Posted by Robert Smith at 8/28/2003 8:45:52 AM
Hello,
I have a problem with my form.show not working. I have
a standard forms collection class as follows:
Public Class FormsCollection
Inherits CollectionBase
Public Shadows Function Add(ByVal FormObject As
Form) As Form
MyBase.List.Add(FormObject)
... more >>
Format Dates in Combo Box
Posted by Pete at 8/28/2003 8:22:51 AM
How do you format dates in a combo box?
The dates from the database diaplay both the
date and time (i.e. 8/28/2003 12:00:00 AM).
What I want is just 8/28/2003.
Thanks in advance
... more >>
How to handle WM_GETTEXT in overridden WndProc ?
Posted by mav.northwind NO[at]SPAM web.de at 8/28/2003 1:55:52 AM
Hi folks!
I have a .NET RichTextBox derived class which has to react differently
to WM_GETTEXT (and some other messages) than it does by default
(mainly converting between \n and \r\n).
I override WndProc, but returning the (altered) text does not work:
protected override void WndProc(ref S... more >>
How to use Control.Invoke from a new thread
Posted by Christopher DuBuc at 8/27/2003 5:28:16 PM
I am new to threading and am a little confused...
I have a windows form with which I have placed a user
control made up of a treeview control and some loading
methods. Since the loading of the treeview takes a while
(15 sec), I am attempting to run the treeview loading
logic in another th... more >>
simple databinding on a tabpage not so simple??
Posted by Robi at 8/27/2003 4:47:20 PM
In a toy project, the tab control is benign. Every time I
get a large windws form with lots of control on lots of
tab pages, it turns into a monster! True since J++ also.
OK: Databinding controls on tab pages is a huge headache
because for some reason when I fill a dataset before
chan... more >>
Timer not working inside loop
Posted by Jay Stacy at 8/27/2003 1:51:26 PM
I have a timer on my form that works fine when I'm just
sitting there looking at the form. As soon as I click a
button that runs a routine that loops, the timer doesn't
fire. What I want to do is exit from the loop after a
certain time period if the loop exit condition is never
met. Basica... more >>
How to find the DragDrop source ?
Posted by Nick Carter at 8/27/2003 11:59:07 AM
I have a 4 listboxes. I want to drag items from listbox1 onto listbox2 and
from listbox3 onto listbox4. I don't want listbox2 to accept items from
listbox3. How can I determine which listbox is the source of the drag
operation ?
Nick Carter
... more >>
GetChanges in a DataSet
Posted by developer at 8/27/2003 6:44:53 AM
Normally I can verify if a datasets content has changed on
an event like a button click. In my case I would like to
do this check on the form closing event. When I make the
checkup I get the original dataset with without the
changes that are supposed to have taken place. Even when
I "watch... more >>
Row select in a windows forms datagrid
Posted by James Bender at 8/27/2003 6:25:00 AM
Hi,
I have a datagrid that displays search results. I also
have a column style applied to this grid.
I would like to open a window for the appropriate row
when the user double-clicks on it, but I am having
trouble capturing the event in a way that the user
doesn't have to do it a few t... more >>
How to programmatically set check on listview control
Posted by Lilly at 8/27/2003 5:30:24 AM
Hi,
I have a listview control and set its checkboxes = true.
How am I able to programmatically set check on it instead
of using mouse click?
e.g. if I want to set check for the first listview item, I
declared this:
Dim e As ItemCheckEventArgs = New ItemCheckEventArgs
(indices(i), Che... more >>
Treeview control in a datagrid
Posted by Victor at 8/27/2003 4:39:49 AM
Hello,
I=B4d like to present a datagrid with several column, where=20
the first one is a treeview. In this way, when the user=20
open a row clicking "+", the rest columns data are=20
presented.
How can I get it?
thanks in advance.
Victor
... more >>
Date Difference
Posted by Sonu at 8/26/2003 9:59:57 PM
Hi
I want to calculate the no of days between 2 given days.
Using c#.But the start date and the end date should not be
counted.Eg., Diff between 01/01/2003 and 01/10/2003
(mm/dd/yyyy format)should be 8 days.
Thanks
Sonu... more >>
Data Binding
Posted by YK Ng at 8/26/2003 5:58:21 PM
Hi,
I retrieve a customer row from the Northwind database
into a DataSet and bind it to a number of text boxes as
follows:
private void BindData(string custID)
{
m_dsCust = m_custDAL.Load(custID);
txtCompanyName.DataBinding.Add(
"Text", m_dsCust, "Customer.CompanyName");
t... more >>
Quick Question
Posted by Darin at 8/26/2003 2:30:58 PM
I am trying to create a side toolbar. When I add buttons it VS.Net does not
give me the power to change the X and Y coordinates. Is there a way to
change this?
Thanks in advance
... more >>
Checking CheckBoxes of ListView at runtime
Posted by boble at 8/26/2003 11:00:13 AM
I would like to change the CheckBoxes property of a list
view at runtime, but doing so does not show the checkboxes.
The text in the first column is aligned to the right side
and you have to click several times on an empty space (of
the column) in order to have the checkbox show up.
Anyone... more >>
Tooltips not showing on Toolbar buttons w/o focus
Posted by Greg Burns at 8/26/2003 10:33:28 AM
I added a toolbar to a form and added one button. I made sure ShowToolTips
= true for the Toolbar, and have set a tooltip for the button.
The problem is the tooltip only shows after clicking somewhere on the
toolbar itself. It seems it needs to have the focus before tooltips will
show.
An... more >>
Finding the "Global" Location of a Control
Posted by Brian Takita at 8/26/2003 10:23:57 AM
Hello,
I'm trying to find the Location of a control in Screen coordinates.
I'm trying to create a Popup Box below the control. However, the popup
box has a different parent control.
I tried adding up all of the Parent.Top and Parent.Left coordinates, but
the Popup was off from where I w... more >>
search item in listview
Posted by Ching-Lung at 8/26/2003 8:52:41 AM
How do I search for an item in a list view?
// in the constructor
ListView lv = new ListView();
lv.Items.Add("Apple");
lv.Items.Add("Banana");
lv.Items.Add("Cherry");
// in a button
if(lv.Items.Contain(new ListViewItem("Apple")))
MessageBox.Show("Found");
else
MessageBox.Show("Didn... more >>
install to any platform w/o .net framework?
Posted by neil at 8/25/2003 4:29:08 PM
hi-
i recently built a small and simple windows forms app
using c# and vs.net 2003. a number of friends could not
complete the install without first installing the full
23MB .net framework 1.1.
any suggestions on how to either write the app so it
doesnt need the framework, or, include a ... more >>
Bug: DrawRectangle...*or* Rectangle
Posted by James F. Bellinger at 8/25/2003 2:25:06 PM
DrawRectangle draws from Left to Right, it appears.
However, Rectangle seems to think the rectangle does
not include the pixel referred to in its Right property..
the range includes Left and every pixel up to but not
including Right.
You can see this strange inconsistency (though at which
of... more >>
How To Move Rows In A DataGrid?
Posted by grindaz NO[at]SPAM hotmail.com at 8/25/2003 1:41:06 PM
I have a VB.NET app that contains a datagrid. The user needs to be
able to click on a row header and drag that row up or down in the
list. Does anyone know how to add this functionality?... more >>
How to: Pass a variable value of a form to another form?
Posted by [ F e r n a n d o L o p e s ] at 8/25/2003 1:37:58 PM
Hello ALL,
I have two forms (frmCustomers, frmOpenCustomers)
In the frmOpenCustomers, i have a DataGrid fill with the Customers name.
I show the frmOpenCustomers form from the frmCustomers form like that:
frmOpenCustomers opCust = new frmOpenCustomers();
opCust.ShowDialog();
After I click ... more >>
|