My WndProc isn't seeing mouse-up notifications when I click with a modifier key (shift or control) pressed. I see them without the modifier key, and I see mouse-down notifications with the modifier keys.
I'm trying to track user actions in a component I didn't write, so I'm using the Windows Forms NativeWindow wrapper (wrapping the com...
Hi SO,
I'm just getting started with winforms in C# and things are going well, except I want to learn how to do something like:
if user presses "proceed" button, it will run some code, and change the form, so that there are more options available to the user on the form. In other words, I want to make my forms more than one "page". ...
We are using Topaz Signature pads. They provide their APIs in the from of an ActiveX control which is to be put on a Winform control. Well, the way our project will work we do not want to have a form(at least not visible). We just want for the signature ActiveX control to get an image in the background.
static AxSigPlus sig = new AxSIG...
Hi experts!
I need to get a list of installed program on local machine with application icons. Below is the code snippet that am using to get the list of installed program and installed directory path.
/// <summary>
/// Gets a list of installed software and, if known, the software's install path.
/// </summary>
/// <returns...
I have a user condrol that may have several instances created and I am looking for the best option to handle the displaying and scrolling on my winform.
in the past I have simply displayed them in a panel and scrolled the panel, but I thought this time around I would like to try something different.
any sugestions would be welcome.
Th...
How can I create a program that runs in the background, and can be accessed via the Windows' "Notification Area" (Where the date and time are in the lower right hand corner)?
In other words, I want to be able to create a program that runs and can toggle between having a display window and not having a display window.
...
In Winforms, why is there no databound event on combobox as there is in ASP.NET dropdown?
Is there any way to mimic the event?
...
Hi all,
My problem is, I'm using a TreeView in a UserControl. While debugging, I can see the results are adding in the TreeView but it's not happening when I'm using that UserControl onto my MainForm. The UserControl containing the TreeView remains blank during runtime of the main application. I've also referenced the UserControl projec...
C#:How can I fix a form size in win application and not to let user changes its size?
...
Hello,
I have a Parent form with some child forms.
Imagine some of these child forms are opened and their name or their text are shown in a something like tabpage. now when i click on a tab page ,the related form must be active.
What can i do?
Thanks.
...
C#: How can I move my controls on a win form in windows application freely?
I do NOT want IDE control the position of my controls for me.
Thank you
...
While moving some code around for investigation purposes, I came across a little feature of .NET that I was unaware of, which is that the form class must be the first class in a form module for the form designer to work. The following stops the designer from working:
public class myClass
{
}
public partial class Form1 : Form
{
pub...
Hi,
I have method:
var listOfFiles=service .GetFiles(pathsOfFiles.ToArray();
service is my wcf service with streaming ,and I want to have method on this service like :
public List<Stream, file> GetFiles(string[] paths)
{
List<Stream, file> files =new List<Stream, file>
foreach(string path in pathsOfFiles)
{
files.add(path, new File...
hi
Suppose that you have a win form with 5 combo boxes on it.
Some one told me that you must have 5 data table in order to fill them one by one. It does not seem very logical and I think this will create ugly code.
How do you fill them with data stored in Database?
...
I want to run my application on 96dpi, no matter what the dpi size from Windows is set to. It is possible ?
' Edit '
I found that using the Scale() method and resizing the font will almost do the trick.
public class MyForm : Form
{
private static bool ScaleDetected = false;
const float DPI = 80F;
protected override void On...
Can anyone post a tutorial here on how to show a Wikipedia article in a .NET WinForms application (C# or VB)? If the article can be placed in a string it suffices, there`s no need to put it on any control.
I found some information on Wikipedia's API. After reading it, I added the reference to web service but can`t find a way to make thi...
I use the following code to validate users through windows authentication for my winform application. This works fine with windows XP but when the user is using windows 2000, it says that the userid or password is in valid.
How do I do this in Windows 2000. Further, How do I detect whether the user is using Windows Xp or windows 2000...
There's another question similar to mine, but I wanted to gather some specifics:
I want to create a DLL that is called from unmanaged code. When the unmanaged functions are called in the DLL, I want to collect information and show it in a kind of form.
What I'd like to do is, when DllMain() is called, and the reason is DLL_PROCESS_A...
How can I get the rearranged columns out of a datagridview in C#? I need to get all the columns currently being displayed in order. I can get the default columns order by setting datagridview.AutoGenerateColumns=false but I get the same old order even after I've rearranged the columns in my table.
Edit: Basically what I need is to be ab...
Looking for a variety of Windows Form (winforms) tutorials for visual studio.NET C++
I found a few basic ones:
How to: Create a Windows Forms Application
Walkthrough: Retrieving Dialog Box Information Collectively Using Objects
Any others?
Thank You.
...