I have a mdi where i have several line of code like the given below. Only chage is Form object which is being opened. So I want to all this work using only single function defination.
When I tries to capture sender it gives me ToolStipMenuItem here. But I want its sender to be form name so that I can open its corresponding form.
priva...
Hello. Does anyone know how to show the progress of archives extracting, when using chilkat? I already have a progress bar called "progressBar1" on my form. At the moment the whole program freezes when extraction is started. Maybe have another thread?
I'm using this code:
Chilkat.Rar rar = new Chilkat.Rar();
bool success;
success = r...
I'm tinkering with writing a simple text-based role-playing game. I would like to use WinForms, and utilize WinForm controls for the UI and simple text for the output. The catch is, I would like to have complete control over the formatting of the individual text - some words being different colors, etc. A simple console control would suf...
Extremely basic question.
Are there common actions I can perform using keyboard shortcuts in the Windows Forms designer in Visual Studio (2008)?
Alternately, could I add my own keyboard shortcuts (either through settings or macros)?
It'd really be nice if I could, for example, set a control to dock/undock in its parent container by ty...
hi
i got this error:
CLR Error: 80004005
when i try to run my C# program on Windows XP.
when i try to install FrameWork 2.0 - i got this error:
there is a problem with this windows installer packege.
what can be the problem ?
thank's in advance
...
When using TextRenderer.DrawText(), what does setting the TextFormatFlags.Internal flag actually do?
Equivalently, what does setting the DT_INTERNAL flag to Win32's DrawTextEx() function do?
More to the point, when should I set that flag and when should I not set it?
The documentation says: "Uses the system font to calculate text metr...
Hello,
I'm sorry, but a while ago I wrote a piece of code that was so nice. And now I'm trying to remember it for a new project.
All I can remember about it is that it looked something like this:
public static Create<T>() *something missing here* : *Something missing here*
{
// add methods etc here. I also think I remember someth...
I want to make some custom controls, with images as buttons. I don't want images ON buttons - I want to totally replace the button with an image read from a file.
Is it possible?
...
I need to know how to make a tab item in a tab control unavailable for a certain kind of user.
The thing goes that after making 'log in', if the user is not the administrator, he will have one or two tabs unavailable. The admin will have access to the whole system.
I just want to make the tabs un-clickable. What are my options?
Thanks...
I'm trying to bing collection to DataGridView. As it turns out it's impossible for user to edit anything in this DataGridView although EditMode is set to EditOnKeystrokeOrF2.
Here is the simplified code:
public Supplies()
{
InitializeComponent();
List<string> l = new <string>();
l.Add("hello");
this.SuppliesDataGridView.Data...
I am trying to create a custom command button that defaults width and height to specific settings. I have the following code:
public partial class myCommandButton : Button
{
public magCommandButton()
{
InitializeComponent();
}
[DefaultValue(840)]
public override int Width
{
get
{
...
I'm starting with .NET CF WinForm application and I have some experience with .NET WinForm.
What is better for UI, form for each dialog or one form and changing user controls on that form? I'm asking for that, because screen on mobile devices are very small and I designed more then ten different screens for my application.
...
We have the ability to define shortcut keys for Windows Forms application menu items. That way I can tell a menu item File->Save to have the shortcut key Ctrl + S and the menu item's handler is "magically" executed after pressing Ctrl + S.
The trouble is with the numeric keypad keys, the ShortcutKey property does not accept them (I don...
i use a treeview to display files and folders like Windows Explorer. it has a NodeMouseClick event but sometimes when i click +, this event doesn't fire.
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
MessageBox.Show("node mouse click");
}
can anyone explai...
I want to create an XML file through c# and need to read and write on it.
The data I need to store are just strings and integers.
...
Just like there is page life cycle in web applications, what is the event life cycle for Winforms, especially between form and usercontrols?
...
Here's what I have in VERY simple easy to grasp terms.
My form background is Blue.
I created a gradient image from white to the Blue from the form background. This is to give the form a nice gradient look. I added a picturebox to my Form and set this image as the Image.
I added a picturebox with a Logo on top of the gradient Picturebox...
I got the Telerik RadRibbonBar for free with the Express edition of vb a while back, but it did not come with any sort of form. It also, unfortunately, has the control buttons there automatically. How would I create a form which is resizable, and works like a standard winform, but doesn't have the top bar?
I tried:
FormBorderStyle = S...
Hoping for a quick answer (which SO seems to be pretty good for)...
I just ran a performance analysis with VS2010 on my app, and it turns out that I'm spending about 20% of my time in the Control.set_Text(string) function, as I'm updating labels in quite a few places in my app.
The window has a timer object (Forms timer, not Threadin...
I need a System.Windows.Forms.FlowLayoutPanel that only auto scrolls vertically. WrapContents is false, and I want it to work like a vertical stack panel. I can't find a way to disable the horizontal scroll. I've googled it, can't find a usable solution so far.
The alternative is to abandon the FlowLayoutPanel, and try another control. ...