Hello.
I am creating an application that has a RichTextBox that has text of varying colors based on what the information represents (red for errors, black for standard messages, etc). I am attempting to support Windows themes, and the possible variance of system colors. To do this, I created a method of changing the default text colors ...
Hi
I have a Image path(some thing like this "http://ABC/XYZ/PQR.gif").And I want to assign this image to checkbox in winforms using C#.winfroms checkbox does not have SRC,How can I assign this image to checkbox.?
...
I have a windows form with a button on it and I only want that button to be visible, if the form that calls it, has subscribed to one of the forms custom events.
I know I can check whether myEvent == null, but what if the event is subscribed to after the form has been loaded?
Is this possible?
(Perhaps just a timer on the form, contin...
What is the use of DataPropertyName in Win Form of VS?
...
Hi
how can I change Item state in windows forms list using send message function (C#)
I saw a couple of examples on the internet but none was really successful in doing it.
...
hello i am a .net webdeveloper and usually don't make any win32 apps. but now i have to. i have a list with about 2000 entries.
each entry should be displayed as, a label with textbox another label and picture. i have made this with a flowlayoutpanel and i did a foreach on the entries to make a panel for each entry with the label, textbo...
Hello.
I have a special label in my form, that should show in a tooltip some text.
The label is declared as private class in the form (nested control), and should "see" the ToolTip control of the parent form.
Here is the code. Surely, I obtains errors here, because the constructor is called before the private control addition in the ...
Hi,
I'm using System.Net.Mail.MailMessage to send emails from my C# Windows app.
I originally had this:
MailMessage mail = new MailMessage("[email protected]", "[email protected]");
etc which worked fine - but then I needed to add mulitple To addresses, so I changed it to this:
MailMessage mail = new MailMessage();
mail.From = new Mai...
I have a WinForm that contains a bunch of labels. When the form loads I have it populate the labels with some data that I retrieve in my middle tier eg. current # of files in a certain directory.
I want to put a button on the form which when pressed will refresh all the data/labels. What should the logic of my button's click event be?...
I am using the following expression in a local report for a WinForms application, but I receive "#Error" when the field value is null:
=IIf(Fields!MyField.Value = "", "NULL", Left(Fields!MyField.Value, Len(Fields!MyField.Value) - 2))
I am doing this to strip off a trailing comma and space of the value. The IIf() works, the Left() wor...
I am writing a test case for my User Control which will prompt using MessageBox.Show for User Action asking to process or Cancel the operation.
How can I design my unit test to mimic the User interaction to proceed?.
I do not want to refactor to move the logic to middle tier. This is a simple case of getting User Consent and proceeding ...
I notice when I'm debugging in Visual Studio 2005+ - if I hover a DataSet, DataTable or XML object there is an option for a visualizer. In this case I have a DataSet, so I get the DataSet visualizer which gives me a window with ComboBox to choose which DataTable to view and automatically displays all the contents.
Is there a way for me ...
I have a console app and a win forms app that both need to call out to a remote server for some data, they make a call to the command line part of Putty, plink.exe, to run a remote command over SSH.
I created a tiny class library for both to share, running the following:
public static string RunCommand(string command, string arguments)...
I have a winform containing controls that are updated when a new instance of my business logic class is instantiated. And with the use of a timer, fields in my class (and their associative labels) are updated every few seconds.
This is all working fine, except for one control - a rich text box acting as a log of all the activity.
T...
I have made a application that can copy files to places in two TreeViews and that has to map your C:. But my father, an experienced programming, said that if the program goes wrong, it could mess up the whole C: of my consumers (I will be publishing this, it is not already out). And as a user, you have to run as admin. How do I make the ...
I have a C# Win Forms application where I dynamically draw buttons in a panel based on 2 properties in the class. Rows and Columns.
I also have a dialog box that opens, which sets those properties using 2 textboxes.
I have a button on that dialog box called "save" which upon pressing, updates the properties (rows, columns) in the main...
How would one go about detecting if two images on the screen (form) were touching each other in C#?
I have a little game where I have to find out if two objects (images of objects) are touching each other.
Is there a simple way to implement this?
...
Hello I want to send a control to the front, but the only method I find in the Control class related to that is SendToBack().
Does anyone knows why there isn't a method SendToFront, is there a reason or someone just forgot to add it?
Then so, how can I send my control to the front of the z-order?
Thank you,
Rodrigo.
...
I have a C# winform application. it has many forms with different functionalities. These forms wrap to a WCF service. for example
form1 calls serviceMethod1 continuously and updates the results
form2 calls serviceMethod2 continuously and updates the results
The calls are made in a different thread per each form, but this is ending up...
Is there any balloon class in c#.net using winforms ??
...