all groups > dotnet windows forms > october 2004 > threads for thursday october 21
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
How do get the scrollbar handle from a TreeView Control?
Posted by sunil NO[at]SPAM volcanomail.com at 10/21/2004 9:56:40 PM
Dear All,
I would like to get the scrollbar handle from a TreeView
Control...do I have to make API calls for that...how do I do it?
Please help...
TALIA
Many Regards
Jack... more >>
How to get/set an enum type?
Posted by Amil at 10/21/2004 9:45:02 PM
Hi all,
How do I make a property accept only a value from an enum type? Let's say
for example:
using System;
namespace Test {
enum ItemTypes {Raw,Full,Kit}
class Item {
Type itemType = typeof(ItemTypes);
public Item() {}
public int ItemType // I want the allowed value to be of ItemT... more >>
Property to accept only an enum type
Posted by Amil at 10/21/2004 9:43:02 PM
Hi all,
How do I make a property accept only a value from an enum type? Let's say
for example:
using System;
namespace Test {
enum ItemTypes {Raw,Full,Kit}
class Item {
Type itemType = typeof(ItemTypes);
public Item() {}
public int ItemType // I want the allowed value to be of ItemT... more >>
Associating my program with a file type.
Posted by L. Spiro at 10/21/2004 9:01:09 PM
I can’t find this either.
When the user clicks a .crv file, it needs to open my program and load the
file.
How do I go about setting this up?
L. Spiro... more >>
Dropping a file onto my form.
Posted by L. Spiro at 10/21/2004 8:59:01 PM
This doesn not seem to be a regular drag-and-drop operation.
I poked around but could only find information on dropping from the
clipboard and dragging special items (such as list-view items).
So, how exactly do I go about making my form open files that have been
dragged onto it?
L. S... more >>
Conditional Context Menu
Posted by Jeronimo Bertran at 10/21/2004 6:21:00 PM
I am trying to conditionally show a context menu for a TreeView control....
I assigned the contextMenu to the TreeView, when the use clics on a node I
want to show the appropiate menu for the type of node the user clicked
on... however if the user right-clics on the treeview space but not on a... more >>
TransparencyKey is not working when using background images
Posted by Edmundo at 10/21/2004 4:51:02 PM
I created a windows form with a certain image with a white area in order to
get it transparent setting the TransparencyKey to white.
The problem is that when it runs, the white color is not transparent.
The image format is PNG and also I tried with a 24 bit BMP image trying to
avoid noise ... more >>
Exit WinForm app with an exit code
Posted by ahughes NO[at]SPAM NOSPAMrm.com at 10/21/2004 2:57:24 PM
Hi All,
I've got a Windows Forms app that I want to return an error code to the caller
- it's a utility in a larger build process and I need to aboort the build if
the utility fails.
I've tried Environment.Exit(<code>) but I only ever get 0x00 returned for any
number tried. Can't see any... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Weird error: Could not copy temporary files to the output directory.
Posted by Etienne Charland at 10/21/2004 2:39:46 PM
Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5
class libraries. I didn't have any problems until recently. I added a new
project containing reports. I am using ActiveReports.Net. Now, whenever I
make a change to a report in the class library and recompile, I get this ... more >>
Tray App icon doesn't show up properly in Alt+Tab menu
Posted by Mike V at 10/21/2004 1:37:52 PM
Hi,
I have a system tray application, and I want to do one of two things, but
both options seem impossible:
Option 1) I want to have the tray app's icon show up in the Alt+Tab menu
*properly*. Currently it shows up as a generic .NET window icon. If I set
the ShowInTaskBar property to T... more >>
Frid with virtual mode, recommendations please (C#)
Posted by Mike at 10/21/2004 1:11:02 PM
Hi! I am in need of a decent cheap datagrid that supports virtual mode when
bound to a dataset. The grid will be called from a MS Word 2003 application
written in C#.
The grid must support data aware sorting(correct sorting of days, times
etc). I should be able to save the grid's content to a... more >>
Application, IDataObject, Dataformats, Clipboard not declared/defined in a Class Library?
Posted by DraguVaso at 10/21/2004 1:04:10 PM
Hi,
I made some application (VB.NET 2005) based on classes in Windows Forms. I
made a new Class Library Project and copied all of my classes and modules in
it, to make a DLL that I could import afterwarths in Windows Forms
applciations.
The problem is that I get several errors indication th... more >>
Cannot minimize my win form application when I have a modal form opened ??!!
Posted by Bragadiru at 10/21/2004 12:31:12 PM
Hi,
My mainform is modeless, has mdiChilds, but I need to open modal forms from
mdiChild => I cannot minimize mainform when a modal form is opened.
I understand that's a "feature" = You cannot minimize applications that show
a modal dialog.
ANYWAY, there is any workaround to this problem ... more >>
Drawing Toolbox?
Posted by Steve Mahon at 10/21/2004 12:29:47 PM
I suspect it is right in front of me, but I can't seem to find it. Is there
a toolbox with things like lines, rectangles, etc that I can drop onto a
form in design view?
Thanks, Steve
... more >>
Datagrid how to add footer
Posted by jason at 10/21/2004 11:28:33 AM
hi,
I wonder if it's possible to add row footer to datagrid.
thanks
... more >>
Calling methods from previous form
Posted by Ryu at 10/21/2004 11:01:28 AM
I have a form that calls another form....Is there any way to call method in
the old form from the new form?
... more >>
cleaning up IWin32Window
Posted by ebloch NO[at]SPAM phreaker.net at 10/21/2004 10:51:11 AM
First, apologies for cross-posting.
I'm writing a Visio add-in using the .NET Framework. The add-in displays a
number of windows forms as modal dialog boxes. In order to display
properly, I set the parent to the Visio Window. I've done this by creating
a class that implements IWin32Window. ... more >>
Collections question
Posted by Amil at 10/21/2004 10:32:09 AM
Hi all,
I want to create a collection type: LineRuns containing type: LineRun. I
would like to implement the IEnumerable interface to be able to use foreach
against the LineRuns collection. The LineRuns class has a method called:
AddLineRun() which will create an instance of the LineRun cla... more >>
unable to add web reference to my Windows forms app
Posted by Rajiv at 10/21/2004 10:22:00 AM
Hello,
I installed the Service Pack 1 for .net framework 1.1 and now I'm not able
to add a web reference to my VB.NET WinForms app.
This is the error I get when I try to add a reference to my existing web
service by adding a web reference
"There was an error downloading
'http://wwwi/dotne... more >>
how to delete the black border of button control?
Posted by haiwen at 10/21/2004 10:11:01 AM
Hello, everyone:
when I use a image as background of a windows button control, the control
alway has a border around the image no matter I set the flatstyle as flat,
standard, or popup.
I want to set the button's flatstysle as flat since the button's image is
part of background of form, ... more >>
How to Include extra files in the bin directory
Posted by Craig HB at 10/21/2004 9:53:01 AM
I am building a .net windows service. When I build the solution, all the
files needed to install the service are in the bin directory. But there are
other files that are in other folders that I want to include in the bin
directory when I build the solution. eg C:\settings.xml,
C:\BatchFiles\... more >>
Monitoring a boolean?
Posted by Torben Jensen at 10/21/2004 9:45:38 AM
Hi,
In my application (c#) I have a boolean that is set to true everytime a
documents content is altered. Everytime the user saves the document my
boolean is set to false.
I want to be able to monitor this boolean. It would be great if I could
create an event that is fired everytime my bool... more >>
Sending E-mail
Posted by Mariame at 10/21/2004 9:37:52 AM
Hi Everyone
I use the following code to send an email in ASP.NET, when i try to run it
in Console or Window Application, it give me errors, Any Idea whats wrong in
it??????????
Dim smtpmail As Mail.SmtpMail
Dim msgRequest As New Mail.MailMessage
msgRequest.BodyFormat = Mail.MailFormat.Html... more >>
How to make a class with a group of controls?
Posted by Ron L at 10/21/2004 7:46:12 AM
I have a group of controls that make up a "form". This "form" may be used
for displaying data in a database, entering new data, editing existing data,
or entering search criteria. I want to create a class that has the controls
for the "form" and the layout stored, but that can be used either... more >>
|