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 ArticleUI 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 ArticleOpen 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 ArticleOpen 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 ArticleHow 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 Articlestimulate 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 Articlehow 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 ArticleList 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 Articlerandom 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 ArticleSerialPort 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 ArticleHow 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 Articleicon 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 ArticleUnder 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 ArticleC#: 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 ArticleProblem 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 ArticleADO.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 ArticleMyanmar 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 ArticlePull 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 ArticleC#: 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 ArticleHow 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