Hi All,
Env.: VS 2008, .NET 2.0, WinForms
I have a listview in Tile mode. Some items have an associated image. Some don't.
The contents (listview items) is often renewed when user clicks some controls. When this happens, it sometimes appears that none of the new items have images. In that case, I would like to get rid of the empty spa...
I have a ComboBox inside of a cell of a DataGridView Row on a Windows form. I need the following to happen:
click on the ComboBox
pick a value
recalculate a total & display inside of a lable that is sitting
outside of the DataGridView.
Currently, the following is happening:
Click on the ComboBox
Click it again to open the ...
I am writing my own control that will contain a panel with text, images and other media. What is the best way to render the text and images. The control may contain long texts and many images.
Should I add the text as labels and images as PictureBox or should I use the DrawString and DrawImage methods to render the text and images?
What'...
I have a rich client application that uses Castle Windsor. At the moment all the assemblies including the application exe are in the one folder but it all looks rather untidy. I would like to put my dlls inside a subfolder such as "bin" but this prevents Castle from locating types etc when called upon. In fact the app crashes at start up...
The two key event argument classes KeyEventArgs and PreviewKeyDownEventArgs each have two properties, KeyCode and KeyData, which are both of the enumeration type Keys.
What is the difference between these two properties? Do the values in them ever differ from each other? If so, when and why?
...
Hi,
In an app I'm coding I would like to make an alert message to appear that displays a large semi-transparent warning message without affecting the users work. Basically I will fade in the message but never set it's opacity to 1 and I want the user to be able to click 'through' the message as if it isn't there.
I have started by usi...
I want to create a scrollable list of pictures fetched from the internet and give the user the ability to click on it. How do i go about doing it in WinForms/C#? Is it possible to add picturebox control/ controls to the listBox?
I tried adding a list of picturebox into UserControl with AutoScroll set to true, which will give me a feel l...
Hi,
I'm trying to create some skinned forms (just the border and caption) with a different approach than you usually see but I'm having some issues with form flickering while I resize the form.
I don't know how else to explain the problem, so here's a video I created to demonstrate the problem:
http://www.screencast.com/t/AIqK9Szmz
Als...
I'm having some problems with a datagridview element I'm using in VS2008.
This DataGridView is actually a tab in a TabControl element.
I gave it 5 colums which need to be filled up with elements from a costum Object i made.
It's basically a small library application which contains a main class and several classed derived from it. They ...
I have a calendar control derived from DataGridView. A custom item hover event is already in place. When handling the event, I have the item that was hovered and the mouse location. What is the best method to show a pop-up window with detailed information about the item? Should I use a stripped down form (no titlebar,controlbox, etc) and...
In my application I need to temporarily gray out the minimize button of the main form. Any ideas how this can be achieved? I don't mind doing p/invokes to Win32 dlls.
Edit: Graying out the minimize button would be the preferred solution, but is there any other way of preventing the form from becoming minimized?
...
I've made a custom control with values for start, current, and end times. The current time has to be between the start and end times, or else an exception is thrown.
In the designer, I want to set new start, current and end times; and the new current time is valid for the new start and end, but not the default start and end. However, ...
Hi Everyone,
I am trying to center a form in VB.net. Instead of centering the form, it ends up about halfway between center and 0,0(upper left).
I am using the code
Me.StartPosition = FormStartPosition.CenterScreen
Which is called from the IntializeDisplay Method, which in turn is called from the Form Load method.
I assume I'm se...
Say I'm extending a TextBox called CustomTextBox in .net. In certain situations I would like to force a tab to the next TabIndex on the form. Is there a way to do this beyond getting all the controls contained in CustomTextBox's parent, sorting them by their TabIndex, and then focusing the next ordinal one?
...
What is the best way to implement a 2D grid of radio buttons so that only one option in each column and one option in each row can be selected?
...
What do you think is the best way to present a hierarchical list of functionality to users within your traditional WinForms application? (A menu system - Assume functionality can be split into a small number of modules and sub-modules but with no fixed depth in terms of those sub-modules).
Do you like the traditional drop down menu syst...
Hi, I'm working on a windows forms client server app. It uses client application services with a login form that implements IClientFormsAuthenticationCredentialsProvider and this is called using membership.validateuser(nothing, nothing) to authenticate user. What I want to confirm either way is if this method encrypts the credentials pas...
i have a winforms application. i have a user control with a lot of icons. the user can load this control on a form many times (in a tabbed layout). right now i am loading the icons each time the control is created (could be up to 50 times in teh app). is there any way to cache these icons in the application. if i did this, would tha...
I'm refactoring some code I inherited from a long-gone developer, and I find this:
ImportExportForm l_Form = new ImportExportForm();
l_Form.InitializeLifetimeService();
l_Form.ShowDialog();
I've never seen or used the LifetimeService before, but from the little I've read, I don't understand why I would want to use it here, but before ...
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage(render, 400, 400);
}
This is the OnPaint of the Form1 class. The form has a listbox. The problem is with the render only showing partially when doing a resize on the form. Is the listbox somehow clipping it out? The listbox and the bitmap don't overlap.
I've ...