Quantcast
Channel: Windows Forms General forum
Browsing all 12583 articles
Browse latest View live

C#: DataGridView onClick Disable Adding of Rows

Hi,Anyone know how can I not allow adding of rows only after I click a cell in a datagridview in windows application form using c#?

View Article


UI Automation with Winforms - Button.Invoke() throws Invalid Operation Exception

I am presently trying to run up winform UI elements in NUnit tests, and interact with them directly using the System.Windows.Automation libraries.As per UI Automation recommendations, I have run up the...

View Article


Open ContextMenuStrip on left mouse click on NotifyIcon - Visual C++

Hi all, I am working on Windows Forms to create a System Tray app. I want it to respond with left clicks too. (By default, system tray icons respond to right clicks). I got a relevant code too:using...

View Article

Open ContextMenuStrip on left mouse click on NotifyIcon

Hi,I was working with an application and faced this problem, I have this code :public partial class Form2 : Form    {        public Form2()        {            InitializeComponent();        }...

View Article

How to implement a search box in c#

Hello: I tried to implement a search box that can search either a text box. I came across the "Search Box" thread on this forum, But I don't quite understand the code in that thread. Here is the link:...

View Article


stimulate mouse click

Given cursor coordinates, how do I stimulate a right click and a left click in a windows forms application, preferably one after the other or vice versa?Ivan

View Article

how to add HTML document to richtextbox?

Hi,I want to add a HTML table to richtextbox. I succeeded on adding but with problems. My code adds table but it doesn't take any properties of table for example colspan="2". It simply adds the...

View Article

List of Object String. Please Help

Dear All, I have a list of of object, of which have a properties named Category and Used.... like so....object1.category = "customer" object1.used = "true" object2.category = "customer" object2.used=...

View Article


random number to toggle the visability of a button

HelloI've written the code to select a random number to decide if the button is visible atm lateron im gunna add different parts to the number gen but atm im just looking at the basicsthis is what I...

View Article


SerialPort Events

hello,I need to use serialport event for  understand ports plug and play or  determine device is connect or no for open the serial port. i use prolific usb-to-serial comm port(COM3). that com3 is show...

View Article

How to enable Ctrl+C, Ctrl+V, Ctrl+X in a text box?

 Hi,I've already set the ShortcutsEnabled property to true but still cannot use keyboard shortcuts to do "copy", "cut", "paste" ,"select all", "undo" , "redo", etc.Did I miss anything? Thanks in...

View Article

icon on printPreviewDialog

Hi guys,in my main form I have selected an icon through the form properties box. I have also a printPreviewDialog which should have the same icon as the one on the main form (it just has this ugly...

View Article

Image may be NSFW.
Clik here to view.

Under IE10, how to acheive a settled shape of the radio button with different...

Hi, In IE10, the shape of a radio button will change depending on the value of 'Height' and 'Width':But in IE8, the shape of a radio button is settled no matter 'Height' or 'Width' changes:The source...

View Article


C#: translate

Hi,Hoping someone can help. I have an existing web app using web service and I need to create a window app of it.The only function Im having a hard time right now is how can I make the same function of...

View Article

Problem with printing form in visual studio 2012

With respect I have created form with size 1620;920 and now I like to print it.I use this code:Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click...

View Article


ADO.NET (XML) is Missing from Database Expert When Create New Connection in...

Hi All,I'm a new comer, i have a question: ADO.NET (XML)  is Missing from Database Expert When Create New Connection in Crystal Report. I'm using VS2008 and Crystal Report Basic For VS2008. I have...

View Article

Myanmar font support in .Net applications

Hello, we are trying to read Myanmar\Burmese text from a CSV file and show it on the .Net windows application with framework 3.5. Please let us know why this does not work. It appears correctly on...

View Article


Image may be NSFW.
Clik here to view.

Pull ID from one table via combobox to update a different table

I have a form that brings up a record from the employees table and displays general starter information (ie, employee ID, first name, last name) and then once I have filled the rest of the textboxes,...

View Article

C#: Textbox1(Time) + Textbox2(Time) = Textbox3(Time)

Hi,Hoping someone here can help me.Im using c# windows application form and I have 3 textbox named startTimeTextBox, durationTextBox and endTimeTextBox.startTimeTextBox and endTimeTextBox allowed input...

View Article

How to save my imput data

I have created a Windows Form using Visual studio 2012 and c#. I would like to save the numbers I have writen in the program. Just like a notepad for example but a lot more TextBoxes. I would then...

View Article
Browsing all 12583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>