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

player switch for a O and X game

I've created a basic game of noughts and crosses using buttons as an aid to learn programming.I want to add a feature so players can select O or X for each player and use it to indicate if player one...

View Article


How do I set the color of the checkbox portion \(not the label part)

The Checkbox control has two parts,  The actual Checkbox ( the square portion with the tick in it), and the label alongside it.Checkbox.BackColor changes the color under the entire thing, but not in...

View Article


How to make checkboxes in DataGridView mutually exclusive?

Hi,I have a DataGridView which has a DataGridViewCheckBoxColumn. It data binds fine. However, I need to make all the checkboxes in the grid mutually exclusive, so that if one is checked, all the others...

View Article

How to Access Resources Folder (C#.net)

 Hi i need some few help's for resources folder E.g i have place few image files [bmp or jpg or some file's] in resources folder iam having form, and place a image control in form, instead of mapping...

View Article

Windows Forms WebBrowser Enroll Button difficulty

I’m having difficulty using a WebBrowser control in a WindowsForms application. I use Windows 7, and VS 2012 VB and am using the .Net Framework 4 Client Profile.I am able to load the form, login to the...

View Article


C# Webbrowser, forward and back history

I created two contextmenustrips, one called backhistorystrip and forwardhistorystrip, the former stores a list of urls the user has navigated to and the latter stores urls that the user has navigated...

View Article

Windows Application closes on exception errors

I have a windows form application. But when an error occurs the applicaiton shuts down. Even when I put a Try ... Catch and a message in the Catch and that is all. THe applicaiton will show the message...

View Article

TextBlock with Text parameter

HelloI'm encountering the following problem: I got a TextBlock that I programmatically create and I want to use the "template" but with different text content as in the following example:TextBlock...

View Article


In .Net 3.5 Winform application getting Win32Exception: Not enough storage is...

Getting below error in .Net 3.5 Winform application on statement Form.Show()Win32Exception: Not enough storage is available to process this commandCause we found is : Opacity of this form is set to 1%....

View Article


Reportviewer Deployment WinForms Application

Hello,I am struggling to deploy a Winforms application that implements the Reportviewer. After some reading online the best I could find was to include the following dll files with my application.This...

View Article

Block users that enter wrong login details 3 times for a certain amount of...

Hi I am trying to do a login form which when user enter wrong login details for 3 times is blocked for certain amount of time in windows form application. below is my sql code:create procedure...

View Article

Connect textboxes with database error

Here is my case: I have created 2 form which is login form, which username textbox already connected to the database and it is successfully.When user login, it direct to the second form, and in the...

View Article

Problems with PathGradientBrush

Ok, straight ahead. I'm having two problems with PathGradientBrush now with this simple code: Dim p As GraphicsPath Dim b As PathGradientBrush Private Sub Form1_Load(ByVal sender As System.Object,...

View Article


Using CheckedListBox as a Radio Button Behaviour

Hi EveryoneI am using a checkedlistbox as per requirement but that checkedlistbox should act as a Radio button in the sense that if there are 10 items in the checkedlistbox i can select only one. if i...

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


Image may be NSFW.
Clik here to view.

Drag and drop rows within the same datagridview

HiI have a datagrid with multiselect enabled and I want allow the user to order rows by drag and drop.I found code from anotehr question in the form:...

View Article

Use WinFormsElementHost in popup

hello to every one First, I apologize for dears because my BasicknowledgeofEnglishI'vebeenworkingwith popups and no have problem with thatNow I want to use my win form user control in popups but...

View Article


UserControl in vb net

HelloMy source is :Public ucTest As New UserControlif (condition) thenPanelName.controls.remove(ucTest)elsePanelName.Controls.Add(ucTest)endifIn RunTime implementation <Add> and <Remove>...

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

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
Browsing all 12583 articles
Browse latest View live


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