I have a project that has a user interface that consists of two panels (left & right).
In the left hand panel is a treeview. Depending on the node selected a different "form" is required in the right hand panel.
So far I have defined, a bunch of different "User controls" for the right hand panel and I create them and show them as requi...
Is there any way to temporarily disable ALL events on an windows form?
I have situation where processing on a secondary thread is being corrupted by events on the main thread. (The main thread events are modifying the contents of controls that are data-bound to variables used by the secondary thread.) Looking for a way to "lock" the...
I have a USerControll in which i have a textbox. I use the usercontrol in my form, I want to do something when somebody presses enter on the textbox. how can I do it?
if you tell me how to call an event manually, I can call usercontrol.keydown in textbox.keydown.
...
I'm improving a software written in .net (3.5) and have decided to change its reports engine from crystal reports to something else. (not very user friendly and buggy IMO. also deep learning curve)
The project is a winforms project.
The most important thing that I want from the new engine:
Support right to left layout. (when using mu...
Background
I'm using SendKeys() to send keyboard commands to the active window, but I'm not having any luck finding the child window when the application is running through RemoteApp. It all works as expected when I run the application locally.
Microsoft RemoteApp allows users to connect to applications through the RDP protocol, but i...
First i'm not mad, because i use MVVM in WinForms-) I know about MVP (Model View Presenter) pattern and it's variants. But when i started this project i was going to learn WPF and use it, but i'm forced to rush program development, and have no time to learn WPF, so i have to write it in WinForms which i know well.
So in short i have a l...
I Trying to switch Panel.TabStop property totrue but it does not affect anything.
How to enable TabStop in a Panel?
...
hi
call event from form2 in form1?
for example :
The following code into form2 :
private void Form2_Load(object sender, EventArgs e)
{
MessageBox.Show("http://stackoverflow.com");
}
What to write in a form1?
...
I want to implement some kind of MVC pattern in C# for loading some data stored in files. I want my loader class to signal other classes when the loading has started, when a piece of the work has been done (read a line from the file for example, to update the progressbar in a form or other ways to show elaboration progress), when the dat...
Hi, I am a beginner for Visual Studio C# 2008. Currently, I am creating the program which requires me to have user input in one User Control item and this data is needed to be passed on to another User Control for arithmetic manipulation.
My first User Control is called Structure_Data. I will be getting input values from the textboxes n...
There's no Sort() function for IList. Can someoene help me with this?
I want to sort my own IList.
Suppose this is my IList:
public class MyObject()
{
public int number { get; set; }
public string marker { get; set; }
}
How do I sort myobj using the marker string?
public void SortObject()
{
IList<MyObject> myobj = new List<MyObj...
Hi,
I have a drawing application developed in winforms C# which uses many System.Drawing.Bitmap object throughout the code.
Now I am writing it into WPF with c#. I have done almost 90% of the conversion.
Coming to the problem... I have the following code which is used to traverse the image pixel by pixel
Bitmap result = new Bitmap(im...
Possible Duplicate:
Incorporating license key approach for a WinForms app
I would like to make random license key such that if any one installed my application i would like to give him a license along with the application which may end in a month or so. And the key should only work on particular system he installed and not in ...
I am creating a test app that will work with query string values. I want to use the HttpUtility.UrlDecode.
When I try to add a refernce to the System.Web, System.Web is not availble in the list.
When I create a web project in the same solution, System.Web is automatically added.
I also tried referencing the web project from the winfor...
How can I set a picture to a picturebox in code?
This code gives me the error:
Cannot implicitly convert Bitmap to
String.
private void ptbLocalidadAdd_MouseEnter(object sender, EventArgs e)
{
ptbLocalidadAdd.ImageLocation = Properties.Resources.addg;
}
...
Hi all,
I would like to select one of the child node of my treeview get selected programatically. My treeview is as follow at run time
Root
|->A.txt(I would like to select this node after doing some iteration in my application)
|->Child(Even if i select this node and do some operations i would like to se...
I'd like to create a simple confirm dialog saying "Please check the information and if you're sure it's correct, click OK."
Is there something built in like this?
...
I have a nice icon and I want to use it on all of the forms in my application. How can I do this?
...
I have created a SQL DB-based winforms application, and I want to deploy it on a client machine. The program is a single user desktop application.
Opinions in this post suggest it's better to use SQLite or SQL Server Compact Edition in such scenarios. However, I prefer to use stored procedures, which are not supported in those product...
Hi.I have two tabpage and two combobox (C#).
combobox1 in tabpage1 and combobox2 in tabpage2.
when I use this code "combobox1.enable=false;" both of my combobox.enable get false.but I need to disable just one of them.
another question:when I change combobox1.text both of them change.why?
...