-
- Ordering of categories in propertygrid
by Jogesh Grover
- 4 Replies
- Last post
by Zhi-Xin Ye - MSFT
-
- Settings dialog
by nizmo
- 4 Replies
- Last post
by nizmo
- You know how in visual studio, and alot of other applications, they have a treeview on the left hand side and based on what you chose in the category treeview a whole bunch of controls becomes visible on the right hand side.
Is there any special trick they use to do this Because it seems pretty tedious to have to have 100's of controls on a form, settings them each to invisible/visible base
-
- How do I know when an item has been added or removed to the listview control?
by Paolo Ponzano
- 13 Replies
- Last post
by Damiaan
- Hello, I was trying to update the number of item present into a listview (in detail mode), but I was not able to find in the Listview an event that does what I need. I've item that are being added and removed and I wanted to show how many are still present. I've tried to use the event ControlAdded and ControlRemoved, also CacheVirtualItems. Do I need to extend the ListView control and add an event
-
- Form Skinning
by eternally quizzical
- 6 Replies
- Last post
by eternally quizzical
- I use SkinCrafter/Builder to accomplish my work. However, because this is my first time applying them, I'm having trouble. I believe that I need an identifier to complete a method, but am unsure. Could someone please help me Your help WILL NOT go unnoticed. Thank you. The code is specified below.
Code Snippet
using System; using System.Collections.Generic; using System.Windows.Forms; n
-
- ListBox problem....or bug in VS 2005
by cygnusx
- 5 Replies
- Last post
by cygnusx
- I have a problem with ListBox.When i add it in a panel and set it's Dock property to Fill,obviosly it must fill the space in the panel,but there is a blank space in the bottom side of the panel.Even if i change it's BorderStyle to None,there is no change....But if i reduce the panel height everything is ok,of course i do not want to reduce the height of the panel in my application.The other thing
-
- date and time question
by Jassim Rahma
- 1 Replies
- Last post
by Dennis Dietrich - MSFT
- I have the following controls:
MonthCalendar (dateCalendar) DateTimePicker (timeFrom) DateTimePicker (timeTo)
I want the user to select a date in dateCalendar and then select timeFrom and timeTo..
So if the user selected 14 Feb 2007 and From 14:00 and To 23:00
Then I want to save two values:
dateCalendar with timeFrom = 14 Feb 2006 14:00 dateCalendar with timeTo = 14 Feb 2006 23:00
-
- Adding Row header a text in datagridview
by santhosh_cz
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- hi all,
Can anyone tell how to add the rowheader a text in datagridview using visual c#
Thanks.
-
- MouseMove Event Fires Continuously If Control Has ToolTip (VS 2005)
by RenegadeMind
- 5 Replies
- Last post
by nobugz
- I've got some controls where there are some tooltips, but the fact that there is a tooltip causes the MouseMove event to fire continuously at insane rates - thousands of times when it should be once. The behaviour is more like I'd expect from MouseHover as it just doesn't stop even when the mouse is stationary.
I saw somewhere in here where someone solved it like this (or similar):
Point _
-
- Form with KeyPreview=true
by Gilim6
- 2 Replies
- Last post
by Gilim6
- I have a form, as I stated in a previous message, that closes with ESC. Also the KeyPreview=true.
At some point I call a MessageBox. If I hit Esc, the MessageBox closes but also the form.
Any ideas how to bypass that I thought of clearing the Keyboard buffer after the MessageBox call, but I don't know if this is possible.
-
- Capturing Windows Form Images to TIFF
by Vishwanathan Raman
- 1 Replies
- Last post
by MadeInCode
- I am working on a VB.NET Project wherein there is a requirement to convert filled in Windows Forms to TIFF Images. The Windows Forms can run into 3 or more pages. The content on the form is generated dynamically. How do I achieve this. Please help or show some pointers.
-
- Make selected rows in a datagridview read only
by JOD
- 7 Replies
- Last post
by Gavin Jin - MSFT
- Has anyone come across a way to make certain rows in a datagridview read only based on a cell value in that row
Its starting to drive me nuts now as I would have thought this was possible but just can't see a soultion.
Many thanks
-
- single instance form
by hrubesh
- 9 Replies
- Last post
by MS Student
- Is there a setting that allow me to have some forms have only single instane in one application.
if not how do i go about/
-
- Datagridview Updating multiple tables
by Warez_Willy
- 3 Replies
- Last post
by Warez_Willy
- On this occasion I don't wish to use "master/details " method of viewing data in two related tables
so I have created a query in my workdataset comprisng the 2 related tables
I have created a datagridview based on this query (by dragging it from the datasources to the design surface)
all good.
problem is that any changes I make aren't getting saved to the database ta
-
- Several size icons
by xyte
- 1 Replies
- Last post
by Dennis Dietrich - MSFT
- Hi, I dont know exactly if this is the best place to put this thread, but I didn' find anything better. I want to know if it's possible to add several sized icons in our application icon. This is because if we're in the detailed view in windows explorer 16x16 is the best size, but if we're in the thumbnails view, this icon will look very ugly. If anyone knows how to do this, or where to find info
-
- how to get rid of initial focus
by james ooi
- 2 Replies
- Last post
by nobugz
- hi, prior to showing a form or user control, how do i ensure that none of the controls contained inside gets the initial focus
the controls should get the focus only if subsequently the user presses the Tab key (following tabstop order) or click on a control directly.
thanks!
-
- Adding new property form to property grid
by akram badr
- 1 Replies
- Last post
by micvos
- how can i make new properties to form and display it in property grid
-
- RichTextBox.LoadFile exception, file is being used by another process
by sriesch
- 16 Replies
- Last post
by sriesch
- I was attempting to use RichTextBox.LoadFile() to load a file, however when mousing the file in and out of the folder which forces my application to re-read the file, I occasionally get the error " The process cannot access the file 'C:\temp\eraseme.txt becuase it is being used by another process." Is there a better method of reading the file I should be using instead that will work even
-
- DsoFramer - Fails to load because current thread is not a single-threaded apartment
by NigelA
- 1 Replies
- Last post
by nobugz
- I am using NUnit to test out our application, part of which is a form that uses the DsoFrame ActiveX component. When NUnit runs, and our application tries to create the DsoFramer - new AxDSOFramer. AxFramerControl () - we get this message:
System.Threading.ThreadStateException : ActiveX control '00460182-9e5e-11d5-b7c8-b8269041dd57' cannot be instantiated because the current thread is not in a
-
- Console application
by BilalShouman
- 6 Replies
- Last post
by decyclone
- hello
is there a way that i can create an console application that accepts parameters
like the following: myapp.exe 1 2
where 1 is parameter1 and 2 is parameter2
Please help its urgent
-
- Nullable type in property grid
by Barguast
- 3 Replies
- Last post
by Malacki
- I'm developing an abstract, generic control class that will be able to display a particular data type and allow it to be edited.
The abstract class has a 'Value' property, which returns the current represented value, or throws an exception if the value is null. It also has a 'HasValue' property so the user can preempt the no-value condition.
I want to be able to edit the Value proper
-
- Windows Textbox property ¡°SelectionLength¡± is not working in .Net 2.0
by Dinesh S
- 3 Replies
- Last post
by Dinesh S
- I am migrating following VB6.0 code to .Net 2.0 (Windows application).
VB6.0 Code :-
Private Sub Text1_GotFocus()
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub
In .Net 2.0 the migrated code is as followed :-
Private Sub TextBox1_Enter( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.Enter
-
- An unhandled win32 exception occurred in devenv.exe
by kasxxand
- 4 Replies
- Last post
by kasxxand
- VS 2005 Prof, WIN XP.
I lost ability to open forms.
Now each attempt to do this cause message such as "An unhandled win32 exception occurred in devenv.exe [1892]" and VS 2005 restart. Reinstallation vs2005 and SP1 installation have no results to this problem. The building and execution - all OK. Opening form in code view - OK.
What can I do
-
- Loop capture image and generic error occured in GDI+
by shuhada
- 14 Replies
- Last post
by GavH
- I've application to capture video of image and grab the still image. It runs well untill I put loop to regrab the still images many times automatically.. and the error (generic error occured GDI+) happend. For your information, I also run different code of application that have similar function which to capture the image repeatedly that I found from internet. However, it give the same error messag
-
- Running Two Applications at the Same Time
by Turbojohn
- 2 Replies
- Last post
by Peter Ritchie
- Hi,
How do I run two application windows at the same time from Main Something like this:
static void Main()
{
// Both to run at the same time instead of Application1 then Application2 as it is here
Application .Run( new Application1());
Application .Run( new Application2());
}
Any ideas
Cheers,
Turbojohn
-
- System.ComponentModel.Win32Exception: Error creating window handle
by Buddhist
- 2 Replies
- Last post
by Yu Guo ¨C MSFT
- I ran into this problem when I created a ListBox. But before that everything was ok.
I tried many ways to get it done, but, failed.
Finally, just deleting .suo and .ncb files got it worked. No exception ever.
How weird!
Who knows the reason
Thanks.