all groups > dotnet windows forms > august 2005 > threads for august 8 - 14, 2005
Filter by week: 1 2 3 4 5
How to get the selected co value?
Posted by John Britto at 8/14/2005 10:35:10 PM
Hi Guys,
I'm creating one or more dynamic datagrids in a form.
I have attached a contextment to the datagrid.
On selection of one menu item I want to get the first colum's value of the
selected row.
How to I do that?
thx for ur help
John
... more >>
MenuItem - Am I missing something obvious?
Posted by Terry at 8/14/2005 11:51:18 AM
I've got a pretty standard menu at the top of my main form, and the
MenuItem's have event handlers for the "Select" event to update the
statusbar text, but what I can't seem to find is a way to know when the user
has cancelled the menu without clicking anything so I can clear the
statusbar t... more >>
treeviw problem
Posted by Ohad Young at 8/14/2005 12:00:00 AM
Hi,
I'm using Windows.Forms.TreeView control (.NET Framework 1.1). When a user
select a a node from the tree, the text of the selected TreeNode object is
displayed in a Bold font. The problem is that when the text is displayed in
Bold font some of it dissapears. It seems as if the space al... more >>
Sub / Function Name & Error Handeling
Posted by Brian P. Hammer at 8/13/2005 9:10:52 PM
All - How can I tell / extract the name of the sub or function that is =
creating an error? I'd like to extract this so I can write an event and =
include the sub name in the error text without having to go to every =
error handling statement and adding the sub as a string.
Thanks,
Brian... more >>
how to set Openfiledialog to take directory
Posted by ve at 8/13/2005 8:51:14 AM
Hi,
I want to select the directories instead of files using the Open or Save
file dialog boxes. Is it possible to simulate this?
thanks
vinod... more >>
ColorDepth
Posted by Rene at 8/13/2005 12:23:49 AM
Would there be a problem if I set the ColorDepth of an image list to 24 or
32 bits?
It seems to be working OK in my computer but I am wondering if other people
will have a problem. I am going to assume that you would have to have a very
old computer to not support these color depths, is... more >>
Datagrid - Windows Forms - Can't see what is in the grid
Posted by Richard at 8/12/2005 5:47:16 PM
The grid has rows but you can't see them. You see the grid but all rows are
completly blue but when you click on a column in the row you see the text
that is in the row. I sprinkled datagrid.refresh and application.doevents
around but it did not help. It seems like it's memory or video card relat... more >>
Slow WinForm 1st launch
Posted by chewie at 8/12/2005 3:00:08 PM
I've got a simple winform app written in C# that takes almost 5 seconds to
start after a reboot. The from was previously written in VB 6 and took less
then 1 second to start. I've tried NGEN but it didn't seem to make a
difference. Has anyone been able to solve the slow first launch problem... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Embed PDF in Winforms
Posted by Jules Winfield at 8/12/2005 10:07:56 AM
Good Day, Gentlemen:
I've been tasked with creating a screen that allows users to
double-click items from list of filenames. Each filename in the list
corresponds to a PDF file. On double-click, the corresponding PDF file
should be displayed. The catch is that the PDF viewer needs to be... more >>
Access 2002 like Combobox in .NET 2003
Posted by SKarnis at 8/12/2005 7:03:06 AM
We are trying to rebuild a current Access 2002 (XP) mdb program to VB.NET
with a SQL database - we are having problems with a suitable combobox.
There are many threads discussing multiple column comboboxes in .NET. We
are having success with the multiple columns similar to the combobox from
... more >>
Closing an application before it's opened.
Posted by ssg31415926 at 8/12/2005 5:40:17 AM
I've written a C# Windows Forms application. Now I've decided that it
needs to check that the user is a member of certain groups as it's
opening and close if they're not. A bit of research suggests that I
won't be able to close the application before it's finished loading.
this.Close() doesn't... more >>
Mapping from DataGridView to the actual DataRow
Posted by Thomas Due at 8/12/2005 4:27:29 AM
Hi,
I have a DataGridRow which i fill with data from a DataAdapter. Now
when the user selects a row in the grid, how do I find out which row
datarow in the dataset is "selected"?
I got this to work in asp.net 1.1 fairly easy, but how do i do it in
winforms 2.0?
I know I can just use Sele... more >>
Menu suggestion
Posted by Bud J via DotNetMonster.com at 8/12/2005 12:00:00 AM
normally with a menu i use a simple switch statement. i'm thinking this is
not a very good way of doing it. does anyone have any suggestions on a
better way
--
Message posted via http://www.dotnetmonster.com... more >>
How to position message box?
Posted by Altramagnus at 8/11/2005 11:22:00 PM
How to position message box programatically using C# .NET?
Thanks.
... more >>
How to delselect items in databound ListBox or ComboBox
Posted by andersonwebdev NO[at]SPAM hotmail.com at 8/11/2005 8:48:16 PM
When I use the DataSource property of a ListBox or ComboBox, there is
always a selected item. When I bind the control, I don't want anything
selected. I have tried using the .SetSelected() method, setting,
selectedIndex to -1 (twice in a row, blah blah), setting SelectedItem
to null, etc.
l... more >>
Is this a bug?
Posted by Rene at 8/11/2005 3:48:53 PM
Create a new Windows project and a button on it, on the click event of the
button add the following code:
Cursor.Current = System.Windows.Forms.Cursors.Cross;
Run the project and click on the button, It was my understanding that the
cursor should change but it does not, it only changes as ... more >>
Flicker Problems when Drawing a Custom Radio Button
Posted by joshuaphillips NO[at]SPAM comcast.net at 8/11/2005 2:57:45 PM
Hi All,
I have created a radio button that uses images instead of the silly
"circle" for a touch-screen kiosk application where users will have to
use their large fingers to select radio buttons. For some reason,
however, I can not get the damn thing to stop flickering! Would
anybody (with ... more >>
Problem Solution Explorer and forms
Posted by larzeb at 8/11/2005 12:21:42 PM
I just noticed a very bizarre situation. In Solution Explorer, some of my forms did not display
their forms icon, but rather a class icon. (This particular solution is under VSS control.)
Therefore, I cannot see the form in the forms designer. Most of the forms are inherited from
FormBase, whic... more >>
HDC System.ArguementException in IE emdedded control
Posted by Bryan ZM at 8/11/2005 12:07:38 PM
Hello,
I am having a problem on a a PC where it throws an unhandled exception in in
a embedded control in IE.
The exception is a System.ArgumentException and I cannot even catch it to
find out where it is coming from...
I have a try..catch in loading the control, so that should catch all ... more >>
DataGrid - InsertAt() - Error Modifying rows after new row inserte
Posted by Dave at 8/11/2005 8:15:05 AM
After inserting a new data row to a DataTable that is bound to a datagrid, I am
unable to change data in a row that is after the newly added row without
getting
bizarre results.
I have added the full code for the test below. Create a project drop in the
code and run.
Any help would be a... more >>
PropertyGrid and input events
Posted by Constantine G via DotNetMonster.com at 8/11/2005 12:00:00 AM
Hello.
Why in PropertyGrid dont fired my event handlers on mouse and keyboard events?
Is it bug or legal behavior?... more >>
How to find what control is under the mouse pointer
Posted by Oleg at 8/11/2005 12:00:00 AM
Hi,
Does anyone know any way to find what control is under the mouse pointer?
In my application (MDI forms application) I need to track mouse move events
and find what control is currently
under the mouse, it can be MDI child form, button, label, etc.
Maybe some Win API function which finds ... more >>
Outlook bar
Posted by Rasika WIJAYARATNE at 8/10/2005 10:34:39 PM
Hello,
I am developing a C++/CLI winforms application. In Outlook 2000 and
2002 there is vertical bar on the left hand side which allows the user
to switch between modules (Mail, Calendar, etc).
1. Is there a similar control for .NET that comes close to that?
Or
2. Whats is the best wa... more >>
DRAWIMAGE() -> TONS OF PAGE FAULTS!
Posted by svd at 8/10/2005 8:10:16 PM
Originally, I thought this was due to DoubleBuffer, but ran some further
experiments and discovered that page faults occur when calling DrawImage().
For example, create 2 images about 800x800, then call DrawImage to copy from
to the other (on say a mouse click). Notice about 600+ page faults occu... more >>
Is it possible to have Min/Max buttons AND Help button on a form's title bar? And more...
Posted by Keith at 8/10/2005 1:48:42 PM
Hello,
I guess the subject line says it all. Does anyone know why this
restriction exists? It does seem rather arbitrary. Also, can the
helpbutton's behavior be mapped to another button, like one in a toolbar?
Can the question mark cursor be invoked other than by clicking on the help
... more >>
RichTextBox how to catch CUT and PASTE?
Posted by Chris Badal at 8/10/2005 9:35:04 AM
I have a problem with the RichTextBox Control.
I need to catch CUT and PASTE (on ctrl+X and Ctrl+V).
So I subclassed RichTextBox, and overrode WndProc looking for WM_PASTE and
WM_CUT (0x0302 and 0x0300).
But I don't get these messages on Ctrl+X or Ctrl+V.
If I subclass a TextBox, I catch t... more >>
IExtenderProvider and Type Property
Posted by johnvms11 at 8/10/2005 9:12:01 AM
I've spent several hours on Google and founds 100's of entries that get close
to the answer, but can't quite get there.
I'm creating an component that acts as an ExtenderProvider for other
components. One of the properties that it exposes is a class I've created
that itself has a number of... more >>
thumbnail of file (like explorer does)
Posted by Brian Henry at 8/10/2005 8:48:46 AM
Is there anyway to get a thumbnail of a file similar to the way explorer
does that can be used in an application? I want to for example if i drag a
file over a picture box, if it has the ability to have a thumbnail, show it
in the picture box.
thanks!
... more >>
TypeConverter for a UserControl
Posted by tlkerns at 8/10/2005 8:28:28 AM
I am working on a custom DataGridColumnStyle that can host a UserControl. I
have created a public property on this ColumnStyle of type MyUserControlBase.
I would like to be able to set this property in the PropertyGrid by choosing
from a list of UserControls that inherit from MyUserControlBa... more >>
LVM_GETITEMTEXT does not work
Posted by janhavib NO[at]SPAM yahoo.com at 8/10/2005 3:48:41 AM
Hi,
I'm trying to access listview control in a VB application from C#
application.
Follwoing is my code
StructLayoutAttribute(LayoutKi=ADnd.Sequential)]
public struct LV_ITEM
{
public UInt32 mask;
public Int32 iItem;
public Int32 iSubItem;
public UInt32 state;
public UInt32 stateMask;
... more >>
DoubleBuffer PageFaults?
Posted by abc at 8/10/2005 1:10:02 AM
Hi,
I notice that my app (with a double buffer form) throws TONS of page faults
whenever it refreshes. I googled, and found the same complaint on GotDotNet.
Does anyone have any info on this, or could at least get this in the BUG
QUEUE!
Thanks,
Steve
Serious GDI+ bug on VS 2005 ... more >>
Textbox Enter-key Beep
Posted by moondaddy at 8/9/2005 9:59:41 PM
I'm writing a winforms app in vb.net 1.1 and have an issue when users click
the enter key on a textbox. It make a beep sound as if an error had
occurred. how can I turn off the beep sound? I'm actually trapping the key
up event and when the user uses the enter key I do something. Any good ... more >>
Background shows while switching between forms
Posted by Naveed Ahmed at 8/9/2005 1:26:43 PM
I have an multi-form application, which uses owner drawn buttons that use
bitmaps. I switch between forms using:
public void ActivateForm(FormBase form)
{
if (form == this.activeForm)
return;
form.Show();
form.Enabled =... more >>
How to design UI
Posted by Reza Alirezaei at 8/9/2005 12:37:11 PM
I'm going to start a windows-form application ,but I am not very familiar
with techniques in windows-forms.I'm an ASP.NET developer and pretty
familliar with a lot of things like user controls,Framework and libraries
around.I was thinking about strating with a sample to design the UI of my
a... more >>
UIP and existing Forms
Posted by Andrew Marshall at 8/9/2005 7:40:09 AM
Is it possible to use the UIP block with an existing form not derived from
WindowsFormView?
For example, can I place controls derived from WindowsFormControlView onto a
custom dialog and have them managed by the UIProcess classes without having
the dialog itself derived from WindowsFormView... more >>
Unhandled Exception when cancelling print from PrintPreviewDialog
Posted by sigee at 8/9/2005 4:16:02 AM
My app uses PrintPreviewDialog to allow the user to preview and print. If
the user selects print from the toolbar, and the current printer settings are
set to print to a file, a "Print to File" dialog asks them to enter a
filename. If at this point they press Cancel, they get an unhandled
... more >>
Changing scrollbar width, thumbsize etc
Posted by Steve Wilkinson at 8/9/2005 2:37:01 AM
Is there any way programatically change the scrollbar width and thumb size
for any of the standard windows forms controls (ListBox, ListView DataGrid
etc) without having to set the system wide settings in Control Panel ?
I'd prefer not to have to do an owner drawn scrollbar, because you then ... more >>
EnableVisualStyles, ComboBox, ShowDialog?
Posted by pachyphloia at 8/9/2005 2:03:02 AM
hi all,
I encounter problems when calling Form.ShowDialog() in a
ComboBox.SelectedIndexChanged-EventHandler. After the EventHandler is
executed a SEHException is thrown. This only happens if EnableVisualStyles
was called (see sample code).
Is this a known problem? is there a workaround oth... more >>
StateImageIndex of ListViewItem < 15. Why??
Posted by darkblue progger at 8/9/2005 12:10:03 AM
Hi!
Does anybody know why ListViewItems aren't allowed to get StateImageIndexes
that are greater than 14??... more >>
Need to write a Kiosk style program in VB.net
Posted by mike at 8/9/2005 12:00:00 AM
Hello.
I need to create a Kiosk style program using VB.Net.
I have maximized the window, set the window style, etc.
I need to know how to trap all keyboard events so that the user cannot
access anything outside of my app.
Does anyone know of a good resource that demonstrates how to do ... more >>
MDI Forms. Opacity
Posted by Henrik Holle at 8/9/2005 12:00:00 AM
Hi,
is it possible to make the MDI Parent form transparent and set the child
form opacity to 100%?
thanks
Henrik
... more >>
MSComm and deploy
Posted by Joseph Byrns at 8/9/2005 12:00:00 AM
I have written an app that uses the MSComm ocx, the .NET IDE creates a
Interop.MSCOmmLib.dll wrapper. I copy the executable and the wrapper to the
client machine, but the application fails to run, presumably this is because
the MSComm ocx is not registered on the target machine, my question i... more >>
Render Windows Form to graphics object/bitmap
Posted by Tom at 8/9/2005 12:00:00 AM
I need to be able to force a form or control to render itself to a graphics
bitmap instead of
(or as well as) the screen device. This is not the same as basic
capture/print screen functionality.
It would almost have to emulate a screen or something... I feel some nifty
APIs would
probably d... more >>
consuming windows service in web application
Posted by Yoshitha at 8/9/2005 12:00:00 AM
HI
I am working on a ASP.Net web application. I have to build a windows service
which will have functions that returns Current Systems CPUID etc...
I need to consume this Windows service with my ASP.Net web application.
How can I do this? Is it possible to do so?
thanks in advance...
... more >>
Fast maximizing/minimizing of form
Posted by schoenfeld1 NO[at]SPAM gmail.com at 8/8/2005 7:48:32 PM
I'm using .NET 1.1 and need my forms to maximize and minimize as fast
as possible, without the standard window dragging that usually occurs.
Does anyone know a way to do this?
Also, how can I make a form the foreground window on the desktop?
... more >>
CLIPBOARD: How to add several images and strings at once?
Posted by Steven Van Dyke at 8/8/2005 5:19:51 PM
Hi,
I have an array of items, each having an image and description. I would like
to programatically copy them all to the clipboard (for pasting into say a
Word document). I've tried the following code, thinking SetData keeps
appending info to the clipboard, but when I paste into Word, I only g... more >>
Reference controls on the form 'dynamiclly'
Posted by Lenn at 8/8/2005 10:18:02 AM
Hello,
Is it possible to do, to get to the control by its name dynamiclly. ASP.NET
has .FindControl("") method to do that, is there a similary method in
winforms.
Thanks.... more >>
IE Hosted WinForms Control will not Download on XP Home
Posted by Shane Holder at 8/8/2005 10:02:02 AM
I have a .Net Winforms control which is hosted inside of IE. Most of
my users are WinXP or Win2K but I have one user using WinXP Home
Edition SP2. When he accesses the control, the control won't even
download, he just gets the "missing image" icon. I checked the Gac
with gacutil /ldl and th... more >>
Retrieving the real initial directory before a file dialog is opened?
Posted by Keith at 8/8/2005 9:19:11 AM
Hello,
I'm trying to get the "about to be used" directory from an Open/Save file
dialog. I'm not talking about InitialDirectory (which only seems to be
useful if you are setting it) but the directory whose contents will be
displayed when the dialog is shown if InitialDirectory is untouche... more >>
Checking for Null Value Unsuccessful
Posted by kache at 8/8/2005 8:32:00 AM
I retrieve data from sql dbo and place within a dataset datatable using a
simple select statement. One of the fields is nullable and the data returned
may be null. When I use IsDBNull(dr.("fieldname")), the check fails because
the actual contents are the characters "<NULL>". I can check the st... more >>
Fonts in a windows application
Posted by JezB at 8/8/2005 12:00:00 AM
I recently tried my windows application on another PC and it crashed with an
exception because one of the fonts (specified within GDI+) was not installed
on that PC.
My question is : rather than change the font to one of the standard windows
ones, could I actually embed the font into the co... more >>
|