winforms

combo box dropdown position

dear friends I have a maximum size form which has the combobox (docked in top-right) and the combobox width is set to 500 px. now , the dropdown appear out of the screen , I want to set he dropdown position to start from right side to left side; // I use the visual studio 2008 and C# language // // thank you ashish yadav thank you . ...

Richtext editor control or component for winforms that looks/behaves like tiny MCE

I am looking for a free Richtext editor that functions like the TinyMCE editor but for a winforms app The most important part is that it must implement a editor toolbar so that the user does not need to learn a markup language ...

Open New Form. error c3767 candidate function(s) not accessible

Hi, I want to open one form from another. I'm having no troubles doing this with blank project. Start new, make 2 forms, put button on first, use this code Form2 ^ form = gcnew Form2; form->ShowDialog(); Also adding the include file at the top... I'm getting this error error c3767 candidate function(s) not accessible I've gone th...

How to stop Buttons from moving in inherited form?

Hi, I am experiencing a strange issue and i'm out of ideas on how to fix. I have a couple of base forms (in seperate UserControl DLL) which are inherited by the forms in my application. One of them is for example "FormEditBase" which contains standard buttons like add, update, delete, close In my inherited forms however, these buttons...

TabPage as userControl ??

Hi, I want to create tabpage as userControl. Is there any way to deal with this?? ...

TypeLoadException thrown erroniously

In a simple app I'm working on, I've got three related assemblies: "MyCompany.Geography.Windows.Forms" which is a class library with the winforms controls in it "MyCompany.Geography" which has some definitions for some base types and the like. "MyCompany.Geography.Windows" which is a quick knock up app with a simple form, and one of th...

Smart (WinForms) TextBox to display path.

Does a smart textbox control (WinForms) exists that can display a path depending on the textbox width. For example, if the path is short it will display the entire path (C:\myfile.txt), but if the path is long it will display the start and end (C:\SomeFolder...\foo\MyFile.txt). The length of the characters displayed should be calculated...

Running form application created in Visual Studio on the other computer

Hi i create my form application in VS 2008. I write in C#. I'm trying to run my app on the other computer (without VS). I moved all project files, i go to project folder\bin\Debug\my_app.exe and it doesn't work. System automatically close application. Why? What can i do to fix that problem? / sorry for my english ...

After drawing circles on C# form how can i know on what circle i clicked?

I have to represent graphically an oriented graph like in the image below. i have a C# form, when i click with the mouse on it i have to draw a node. If i click somewhere on the form where is not already a node drawn it means i cliked with the intetion of drawing a node, if it is a node there i must select it and memorize it. On the n...

.net question - where are the DefaultCredentials stored/accessed from for a WinForms v3.5 app?

Hi, Where are the DefaultCredentials stored/accessed from for a WinForms v3.5 app? That is if I am using the settings for defaultProxy for my Winforms v3.5 application, and set a proxy server address here, exactly where does/can the username/password come from? Or in other words where does the framework source the "default credentials...

How do you use openAuth from a windows client application?

I am looking at integrating a public api in to an existing windows form application. The api requires openAuth authentication. All examples of this that I have seen are on web based applications. How can openAUth be used on a client application? thanks ...

how to create datagridview dynamically in c#?

how to create datagridview dynamically in c#? ...

Export gridview into excel in Windowsformsapplication

hi... i need the code for export gridview to excel in windows forms application... Plz anyone can tell me that code.... ...

VB.NET Custom Object Master-Detail Data Binding

Since beginning to use VB.NET some years ago I have become slowly familiar with using the data binding features of .NET, however I often find my self bewildered by it's behavior and instead of discover the correct way it should work I find some dirty work around to suit my needs and continue on. Needless to say my problems continue to a...

SetScrollPos: scroll bar moving, but control content not updating

[DllImport("user32.dll")] public static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw); [DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)] public static extern int GetScrollPos(int hWnd, int nBar); So those are the externs im using to move the scroll position, what im doing, is i ge...

Invalid Operation Exception - "Cross-thread operation not valid: Control 'TextBox1' accessed from a thread other than the thread it was created on."

"If necessity is the mother of invention, I'd like to kill the guy who invented this." -Jimmy Buffet I don't care if 100 people with a million reputation jump down my throat for saying this, but who ever thought of throwing this exception deserves a fate worse than death. I have QUITE LITERALLY copied and pasted code from ...

How to retrieve the Screen Resolution from a C# winform app?

How can I retrieve the screen resolution that my C# Winform App is running on? ...

Preloading a user control

I have a user control that takes a several seconds to load. Is there a way to preload the control while the form is being loaded? ...

C# slider control but - music studio style

I'm about to implement a slider control component in .NET that's along the lines of a music recording control. With the timebased equalizer graph, and with the abilities of a regular slider. How to go about this? ...

How do I paint the treeview node +/- buttons outside a treeview?

Similar to the ButtonRenderer class, I want to be able to paint the +/- buttons used in TreeViewNodes completely separately to any instance of a TreeView. There doesn't seem to be a ControlPaint method that does it, and drawing a Button doesn't look right. Where can I get the drawing code for a treeview node from? ...