|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Formsmicrosoft.public.dotnet.framework.windowsforms
Filling a treeview
MauriZZZZ -
11 Feb 2006 10:56 PM - 4 messages
Hi folks, Hope you can help me out. I want to fill a treeview in VB.Net with values from a table out a database. The table has the following contents: Node - Nodename 000 - Europe 000001 - Belgium 000002 - Spain ...
controlpaint.drawfocusrectangle(g,r) colors
m -
10 Feb 2006 7:46 PM - 2 messages
when using the 2-parameter form of this shared function, where the hell is it getting the colors from? neither of the colors appear in my system palette; one of them is black, which is not one of my system colors. the other is close to 2 of my "shadow" colors, but doesn't match. I really wish microsoft would document stuff like this, but they don't. ...
System.Timers.Timer - Potential CPU Hog
MasterBlaster -
10 Feb 2006 7:17 PM - 6 messages
I have a timer running on our form and what we have seen is users who leave there application open for more than a day straight will have a response problem with the UI. We tracked the CPU utilization and the spikes started ...
Problem with Custom Control in Building it when the same is used in a new windows project solution
Kiran -
10 Feb 2006 7:13 PM - 2 messages
Hi, I have created a custom control. I am using this control in a new windows solution-Project after adding the dll from custom control project's bin directory to the toolbox. this works ok for the first time. when I try to do changes in custom ...
Embedding font
Sudhee -
10 Feb 2006 6:19 PM - 2 messages
I am using a font which is not part of the windows font library for my vb.net windows form controls. When I distribute this application do I also need to distribute the font or is there any way I can embed the font to it like we ...
System.Reflection.ReflectionTypeLoadException in Windows Service
Zach -
10 Feb 2006 5:38 PM - 2 messages
Hello! I'm experiencing this exception while attempting to examine the public types on my assembly DLL. Here is the code: Dim objType As Type Dim objDLL As Assembly objDLL = System.Reflection.Assembly.LoadFrom(pathToDLL) For each objType in objDLL.GetTypes <---- Exception is raised from GetTypes ...
How to check if a string is in a valid DateTime format?
Andrew -
10 Feb 2006 5:29 PM - 4 messages
Hello, guys, what is the easiest way to check if a string is in a valid DateTime format or not in C#.net? Thanks. ...
Setting properties by name
Alexander Walker -
10 Feb 2006 1:58 PM - 9 messages
Hello I would like to write a method that allows me to pass a reference to an instance of a class, the name of a property of that class and a value to set that property to, the method would then set the property of the instance to the value ...
Passing mouse events up to a control's container
JezB -
10 Feb 2006 11:56 AM - 4 messages
I want to handle events in a container (eg. MouseMove in a Panel). Problem is: when the panel contains Controls and the mouse moves over that control, MouseMove is no longer fired in the container. How can I force this? ...
Drag'n'Drop with Animation
JezB -
10 Feb 2006 10:47 AM - 2 messages
I've mastered basic drag'n'drop, but I want to display more than just a simple cursor when dragging an object, I also want to display a semi-transparent representation of what I'm actually dragging as I move the ...
About textbox Validating, Validated & TextChanged
Steven Spits -
10 Feb 2006 8:25 AM - 2 messages
Hi, I have a textbox that should be numeric, so I've written some code in the Validating event. When the text was changed (and if it's valid!), I need to compute some other values. I've done this in the Validated event. ...
Start application with input parameter
Magnus Blomberg -
10 Feb 2006 6:55 AM - 2 messages
Hi there! I am developing a module to an existing software (that is not changeble), where I will put hyperlinks to the module. This is a software where I have customers with a specific ID. The hyperlink could look something like "c:\program ...
Make Thread-Safe Calls to Windows Forms Controls
Alexander Walker -
9 Feb 2006 10:59 PM - 5 messages
Hello I want to get the value of a property of a control from a thread other than the thread the control was created on, as far as I can see this is not the same as invoking an operation on a control on a different thread I have used the ...
Extending TreeView and TreeNode
ferreira -
9 Feb 2006 10:46 PM - 3 messages
Hello, I've posted the same question on msdn forums, but I'll try it here too since I'm lost here. I'm creating a custom TreeView with custom TreeNode classes nested. This is a sample what I want to do: ...
Node Expanded Event
Alexander Walker -
9 Feb 2006 8:49 PM - 2 messages
Hello Is there a way to hook into the expansion of a TreeNode? Alex ...
Hide system menu
Lance Johnson -
9 Feb 2006 4:51 PM - 5 messages
I want to hide the system menu (the dropdown for the icon on the left) without hiding the entire titlebar for my form. I haven't been able to accomplish this. Is this possible, and if so how? ...
DataGridViewDataErrorEventArgs ?
Asaf -
9 Feb 2006 4:15 PM - 4 messages
Hi, For the "DataError" event of the DataGridView I would like to catch the "ConstraintException" when there is an error but I havent figure it out how to do it with e.Exception of DataGridViewDataErrorEventArgs. Thanks in advanced for any help, ...
Programatically scrolling a container
JezB -
9 Feb 2006 2:11 PM - 4 messages
I want a container in which I can control the scrolling programatically. So it will act like a "window" on top of a larger canvas, with my code controlling where the window is on the canvas. I don't think Panel will do ...
Shortcut and CausesValidation
Alex -
9 Feb 2006 1:24 PM - 2 messages
Hi, I have a button with a shortcut (&Cancel) and property CausesValidation = false. When I click on the button the validating event is not fired but when I use the shorcut it's fired. Is there any solution to have the same behaviour with click and shorcut ...
How can i know if it is safe to call Invoke on a control?
Mehdi -
9 Feb 2006 1:17 PM - 11 messages
Hi, If you want to do some operations on a UI control from a thread other than the UI thread, you've got to first marshall the call to the UI thread using Control.Invoke or Control.BeginInvoke. So i've created in my application a ...
Clicking on UserControl background fires Validating event twice
Desiderius -
9 Feb 2006 10:07 AM - 2 messages
I have a Form containing a Label (Label1), a TextBox (TextBox1), and a UserControl itself containing a Label (Label2) and a TextBox (TextBox2). There is an event handler for the Validating event of TextBox1, which checks whether the TextBox contains a valid value and, if not, displays a message ...
Import XML into MS Access
Lev -
9 Feb 2006 7:55 AM - 2 messages
Hello all, I develop a WinForms application with capability to import data from a large XML file into the MS Access database. Which way is a best way to perform it? Thanks in advance, Lev ...
Application Block Usage
Jeff S -
9 Feb 2006 5:42 AM - 4 messages
Regarding the Application Blocks provided by Microsoft; are any of you using them in production systems? If no, why? If yes, what has been your experience?... would you recommend for or against their use? Here's the Application Blocks I'm referring to: ...
label control not allowing me to change it's size.
hazz -
9 Feb 2006 3:45 AM - 4 messages
in the designer. I am trying to increase the length of the label but it won't allow me to do so. What am I missing? Thanks ! -hazz ...
OT: Dev Box Configuration
Smithers -
9 Feb 2006 3:09 AM - 4 messages
I have a development PC that has been working great for several years for SQL Server 2000 and .NET 1.1 development. It has a PIV 2.4G processor, 512 RAM, 7200/8MB cache RPM IDE hard drive. I have seen people in the various NGs claim that one *must* have a ...
Webforms vs. Winforms decision
3Cooks -
8 Feb 2006 7:57 PM - 5 messages
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from someone who is ...
ListView component
Teemu -
8 Feb 2006 3:09 PM - 2 messages
I have problems with ListView-control because of its GridLines bug in Windows XP. I created a function that creates a bitmap which presents those grid lines. Then I set this image to ListView's BackgroundImage. The grid line bug is ...
Best way to embed a list of name/values for use in dictionary look
Shannon Broskie -
8 Feb 2006 1:57 PM - 3 messages
I have a static list of name/value pairs that I need to store with the application. I would like these to be editable in a file stored with the executable. Using the newer default settings was my first thought. My question is ...
separate visual objects: bevel/rectangle
Peter Baranyi -
8 Feb 2006 11:49 AM - 5 messages
Hi, I come from Delphi development, and I really miss the ability to separate text boxes, and other visual elements on the form with ... something like bevel was in Delphi. What I mean: in design time I would like to draw a ...
UserControl class hosted in IE
Ash -
8 Feb 2006 10:41 AM - 3 messages
Hello all, I have a windows control which is hosted in IE ([link]). Using javascript I am able to call most of methods of my control, but when it comes to handling events ...
VisualStyleRenderer and Office 2003 colors
Grafix -
8 Feb 2006 9:01 AM - 2 messages
All - (*) Is it possible to get the gradient colors that Office 2003 uses for its toolbar, programmatically? For instance Outlook 2003's toolbar under Blue, has a Horizontal Gradient fill from Argb(220,235, 254) to Argb(129,169,226). Can we get this value ...
Button in .NET 2 - possible bug with back color
msw555 -
8 Feb 2006 4:19 AM - 3 messages
I'm encountering strange behavior when modifying the back color of a button. Actually when I try to restore the button's original back color I have the problem. The button does not get back its original back color. Try the following: ...
Listening to an event
Steve Teeples -
7 Feb 2006 10:08 PM - 2 messages
I am perplexed! I have a global data structure that maintains current data status within my application. I also have a form that allows a user to update information which I want to then transfer to my global data structure. ...
Caching a Graphics object
nickdu -
7 Feb 2006 9:09 PM - 4 messages
Someone suggested that calling Control.CreateGraphics() is expensive and thus it might be a good idea to cache the returned Graphics object. Is this true? Back in the unmanaged world I remember something like there were only 5 DC's ...
Advanced Docking Control
formula -
7 Feb 2006 9:03 PM - 4 messages
I posted this on the un-managed MSDN forums on accident. I'm hoping to get a response here... I've searched everywhere to find out how to do this... It's easy to change the order of docked windows via z-order. Somehow though, ...
TreeNode Drag and Drop
Alexander Walker -
7 Feb 2006 6:35 PM - 2 messages
Hello I would like to provide drag and drop functionality in a windows forms application that has two TreeView controls, I am trying to enable the dragging of nodes in one TreeView over to the other TreeView, I have searched on the ...
Like Windows Explorer
Rodrigo Ferreira -
7 Feb 2006 5:50 PM - 6 messages
Hello, I'm a beginner in windows forms and now i want create a application, where his layout is like Windows Explorer (On top a menu, and bottom 2 zones (splitted) ) ------------ Anyone knows how can i do that? ...
?!?ParkingWindow - ObjectDisposedException in system.windows.forms
Sigrun -
7 Feb 2006 4:28 PM - 5 messages
Hello. Im programming a Windows Forms application that has many user controls (e.g. charts). These user controls have System.Threading.TimerCallback functions. These functions Invoke other member methods that update the user controls e.g.: private void OnTimerUpdate(object pState) ...
System.Windows.Forms.DateTimePicker background color?
Asaf -
7 Feb 2006 2:49 PM - 5 messages
Hi, Is there a way to change the System.Windows.Forms.DateTimePicker background color instead of the default color white? I mean the "TextBox" color not the calendar. Regards, Asaf ...
Hide custom control in VS.NET toolbox
David McClelland -
7 Feb 2006 2:31 PM - 4 messages
I have created a set of custom controls, which all inherit from one base control. I am using these controls within the same project, so they I would like to hide the base control so that it does not show up in "My User ...
ClickOnce via Response.Redirect
asanford -
7 Feb 2006 2:29 PM - 2 messages
repost again so microsoft may recognize it! -------------------------------------------------- I can use a ClickOnce app I made fine, but I cannot seem to reliably access it via an asp.net app that redirects to it: I created a simple ClickOnce windows forms application in VS 2005 that ...
Check if a form or control is visible in Desktop (to the user)
samnospam@nospam.nospam -
7 Feb 2006 2:21 PM - 4 messages
Hello, I want to know if a form is visible in the Desktop and the user can see it. The property Visible is true although other program is over the form, so this property don't solve the problem. Thanks. ...
What aspx Stands for?
Micheal -
7 Feb 2006 11:56 AM - 4 messages
Hi, asp means Active Server Pages what does aspx stands for ? Regards Micheal ...
Smart Navigation is not working
Micheal -
7 Feb 2006 11:53 AM - 2 messages
Hi, I have one page of aspx in which I want to iimplement Smart navigation="True" at @Page Directive but it is not working.. and the button with the "OK" label is not working after implement "SmartNavigation" in this page. ...
binding to an empty IBindingListView instance fails
dirk.bonne -
7 Feb 2006 10:40 AM - 3 messages
Hi, I have created my own CustomBindingListView by deriving from IBindingListView. Binding a DataGridView to this CustomBindingListView works fine, and when updates arrive on the underlying data, the DataGridView gets updated correctly (both changes and additions/removals to the underlying records set can be seen in the grid). ...
Where to Put DAL and Business Objects in WinForms App?
Smithers -
7 Feb 2006 5:38 AM - 3 messages
In Windows Forms MDI applications... I'm wondering if it is standard practice to create DAL and business objects as static classes. The only alternative (please enlighten me if I'm wrong about this) is to instantiate the DAL and business objects in a Form class - ...
Winform rants...
Lloyd Dupont -
7 Feb 2006 1:46 AM - 6 messages
I have a dialog where I stack multiple panels. Depending on some flags I bring one them to front. Problem is, as long as the dialog has not been displayed, I cannot reorder my panels ! So when I show it (with ShowDialog()) it's alway the first panel in front of ...
Creating a modal process
Joe -
6 Feb 2006 9:29 PM - 3 messages
I have a managed application called MainApp.exe and another non-managed application called OtherApp.exe. I want to launch OtherApp.exe from MainApp.exe using System.Diagnostics.Process.Start("OtherApp.exe"). This works fine. Here is the trick: I want OtherApp.exe to behave like a modal ...
Browse for folders dialog
google -
6 Feb 2006 5:29 PM - 7 messages
Hi Does anyone know a way of showing an open folder dialog, as if being opened on a remote computer? e.g. When you go to create a new database in SQL Server Enterprise Manager and browse for where you wish to put the data files a browse ...
compact framework combo box
portos -
6 Feb 2006 8:35 AM - 2 messages
im trying to make editable combo box on form for PocketPc, but i dont know how, im using vb.net 2003 can someone help me please ...
Closing form causes validation
Ant -
6 Feb 2006 12:27 AM - 4 messages
Hi, I have a text box which uses the validating event to check if it's empty. If the focus is set to this text box & I close the form, the event fires. I don't want this to happen when I close the form. I tried setting the ...
Autoscroll jump when removing a control at run-time
Predrag Rakic -
5 Feb 2006 12:12 PM - 2 messages
I have a form with autoscroll on, and in run-time a number of user controls added to the form, so that the vertical scroll bar appears. When I try to remove a control (in a on mouse down event handler) that is e.g. near the bottom of the form, the control is removed but the vertical scroll bar (and the visibly portion of the screen) unexpectedly jumps to the top of the form. Can I in some way tell the autoscroll to stay where it was prior control removal?
Sincerelly,
Predrag Rakic
...
scrolling text
Lynn -
5 Feb 2006 5:49 AM - 4 messages
hi, how can i add scrolling text to the bottom of my form? thanks ...
|
|||||||||||||||||||||||