Winforms Questions
Ad
Hiding the header on an Infragistics Winform UltraCombo
I've gone through just about every property i can think of, but haven't found a simple way to hide the header on a winform ultracombo control from
How to get the number of items in a combobox?
How can i get the number of items listed in a combobox?
color chooser (color palette) showing all colors
I would like to have an image like this one on my form.
Set same icon for all my Forms
Is there any way to set the same icon to all my forms without having to change one by one? something like when you setup
How to make a Windows Forms .NET application display as tray icon?
What needs to be done to have your .net application show up in window's system tray as icon? and how do you handle mousebutton clicks on
How can I get the filetype icon that Windows Explorer shows?
First question here. i'm developing a program in c# (.net 3.5) that displays files in a listview. i'd like to have the "large icon" view display
Windows Form with Resizing Frame and no Title Bar?
How can i hide the title bar from a windows form but still have a resizing frame?
C# Day from Week picker component
This question is for c# 2.0 winform. for the moment i use checkboxes to select like this : monday[x], thuesday[x]¸... etc. it
How can I build C# ImageList Images from smaller component images?
I'd like to make status icons for a c# winforms treelist control. the statuses are combinations of other statuses (eg. a user node might be
How can I set the number of columns in a listview dynamically?
For example, i have a record of quizzes. i want to display all of the quizzes along with the student who took it. if the total number of quizzes
Ad
How to efficiently filter a large LIstViewItemCollection?
So i have a listview with an upper limit of about 1000 items. i need to be able to filter these items using a textbox's textchanged event. i
How do I reference a local resource in generated HTML in WinForms WebBrowser control?
I'm using a winforms webbrowser control to display some content in a windows forms app. i'm using the documenttext property to write the
GDI handles with icons . l
I have a winforms application. i have a user control with a lot of icons. the user can load this control on a form many times (in a tabbed
Getting the back/fwd history of the WebBrowser Control
In c# winforms, what's the proper way to get the backward/forward history stacks for the system.windows.forms.webbrowser?
How can I get a list of all of the available print/fax drivers
How can i get a list of all of the printer drivers and fax drivers from the os?
Future proofing a large UI Application - MFC with 2008 Feature pack, or C# and Winforms?
My company has developed a long standing product using mfc in visual c++ as the defacto standard for ui development. our codebase contains alot of
Dropdown items on a ToolstripmenuItem and seeing if their items are checked
I'm building a small winform in which i can view types of food in my kitchen. my entire stock can be displayed by a datagrid view.
Cannot tab out of databound Winforms dropdown list
This is a bit of a strange one, but i've been struggling for a few hours now and i can't understand what is happening. i was wondering if
Databinding DropDown Control in .Net
I am binding the dropdown with db entity. ddlcustomer.datasource = customer.getall(); ddlcustomer.datatextfield = "customername";
Cannot add or insert the item MyFile in more than one place
I am build application who play wireshark files and send the packets to the network card using pcapdot.net. in my application i get
How do I find if the file MyFile.03 is in the folder MyTmpFolder?
How do i find if the file myfile.03 is in the folder mytmpfolder using c# and winforms?
Ad
Making a WinForms TextBox behave like your browser's address bar
When a c# winforms textbox receives focus, i want it to behave like your browser's address bar. to see what i mean, click in your web
How do you stop the Designer generating code for public properties on a User Control?
How do you stop the designer from auto generating code that sets the value for public properties on a user control?
Gantt Chart Controls on Windows Forms
We are evaluating options for a gantt chart control (on windows forms) as opposed developing one on our own. what are the various gantt chart
How do I enable a second monitor in C#?
Is it possible to enable a second monitor programatically and extend the windows desktop onto it in c#? it needs to do the equivalent of turning
Pass value WinForm =>(page.html?query123)=> HTML =>(page.aspx?query123)=> asp.net //esle?
The problem here is the middle of the line (html). the chain: i have winform program that uses awesomium (alternative to native
How to Delete the last line of a file.txt
I'm reading a file.txt using streamreader and writing using streamwriter. i'd like to know if it's
How to read content in a line of a file.txt
I have a line like this: 114765 * 3 * 659300 * 01 * 17/01/2013 * * 1 * chuck norris * chuck norris jr* owner * 1 * 28/04/1983 *
Save ListBox_SelectedItem to file.txt
Hi all, i wish save in a file.txt the chronology of the song played by my music player . i tried this code snippet but doesn't work :
BackgroundImage shifts when mouse cursor is hovering over the button
Sorry for my english. this is the first time i write a question in this language. i will be glad if you correct my grammatical errors. i
FilePath is wrong/not supported
I´m trying to save a camera picture to a folder. when i save it, i become the following message: "system.notsupportedexception:
Where can I get free Vista style developer graphics?
What is the best source of free vista style graphics for application development? i want 32x32 and 16x16 that i
Ad
Interop Controls not picking up XP Styles
I created an interop user control in vs2005. when the user control is shown inside vb6, it does not pickup/use the xp styles (the buttons and the
Rules for multi-user WinForms apps on Vista
We have an msi installer for a .net winforms app for windows xp that installs and runs only as an admin. users have to log in to the app when it
Fill datagridview datasource with existing columns
Is there a way to fill datagrid datasource with the existing columns?. im trying to set a datasource on my datagridview everytime i set my
Making a C#/Winform application cross-platform - should I use AIR, Mono, or something else?
I have an app that i've written in c#/winforms (my little app).
How do you "preview" user actions like resize or editing in GoDiagrams?
the godiagram object model has a godocument. goviews have a reference to a godocument. if the user does any modification
How to retrieve SubItem.Text property from listview item
I am trying to retreieve listview subitem .text property. my listview has two columns: id and name. i want to access name for
Unhandled exception logging for Windows Forms
Is there anything like elmah for windows forms? i'm looking for a
How can I write a unit test for a controller class that uses winforms for views?
Has anyone been able to successfully unit test methods that are, by necessity, coupled to the system.windows.forms.form class? i've
I'm trying to create an event but I get a NullReferenceException
I want to create an event in c# but i'm getting this error: an unhandled exception of type 'system.nullreferenceexception'
How to move to last empty row in DataGridView in C# programmatically
I am removing a row from datagridview in winfrom. i want to move to the last empty row using code. for removing i am using this line
Using class instance from main form at button click method
I'm new to c# so sorry for this question... i have following code: using system.collections.generic; using system.componentmodel;
Ad
C# Windows Forms - read XML into checkedlistbox
I'm creating a windows forms application in visualstudio an c#. i have a xml file like this: <?xml
Argument 5: cannot convert from 'System.Drawing.Image' to 'string' - calling class1 from Main Class
I am working from my previous thread
Insert is a variable but is used like a method - calling class1 from Main Class
I don't know what i am doing wrong here. i am trying to call class1.cs in main class, sql command parameter, but i getting the error. i am working
Set value into a property in Class1 from Form1 then get value of that property in Class1 to Form2 using C# Windows Form
I have this problem, i've set a value to a property from shall we say form1, then get that value in form2 but it return null. sample
Removing conjunctions from a .txt file using words in an array
I was trying to remove conjunctions and punctuations from a txt file. punctuations are removed successfully but some conjunctions remained. here
Iam currently working on a book managment project and im using sql server from Visual studio, I have Book Category table in the data base
Iam currently working on a book management project and i'm using sql server from visual studio. i have a book category table in the database and
How to Upload File to Firebase Storage in .Net C# Windows Form?
I tried the following function to upload an image to firebase storage private async void uploadfiles() { var stream
How to bind to HTML from C#?
I want to execute a function in html through c# but i get an error. since there is a map inside the webbrowser, i can't leave out the
Button's background color turns grey when mouse hovering on it C# Winforms
I made a simple design for my winforms app in photoshop and i want to make some borderless buttons. in flatappearance properties, i changed border
Detect when a child form is closed
I have he following form: an initialize function that is called when the form1 is created. a button that opens another form
Winforms - Click/drag anywhere in the form to move it as if clicked in the form caption
I am creating a small modal form that is used in winforms application. it is basically a progress bar of sorts. but i would like the user to be
Ad
Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
I'd love to know if there is such a thing as a gecko.net ;) i mean, just like we can embed a webview and that is an "instance" of ie7 inside any
How to Disable Alt + F4 closing form?
What is the best way to disable alt + f4 in a c# win form to prevent the user from closing the form? i am using a
"Could not find type" error loading a form in the Windows Forms Designer
I have a .net 2.0 windows forms app, which makes heavy use of the listview control. i've subclassed the listview
Should I provide accessor methods / Getter Setters for public/protected components on a form?
If i have .net form with a component/object such as a textbox that i need to access from a parent or other form i obviously need to "upgrade" the
How to center a form to be in the center of form1?
Private void picturebox1_doubleclick(object sender, eventargs e) { form editorform = new form();
C# How to make this code easier and shorter
I am beginner and i wanna ask how to make this code more simple and shorter thanks for all replies public static bool
How can I display a set of data from 2 database tables? Winforms
I created a winforms app and a database with 2 tables in visual studio: member - holds details like first name
How to make a form click a button when loaded?
I have 2 forms - mainmenu form , that clicks to a registration from. on the registration form, i have a button. i want the form to
Extends ToolStripItem class in Windows Forms
I would like to add my own class to toolstripmenuitem object in windows forms. according to this question:
PowerShell Add_Click in foreach loop
What i am trying to accomplish is to create buttons that launch exe files in a certain directory when clicked, but when i try using a foreach loop
Save Changes in DataGridView C#
After calling the table from the database into the datagridview and entering data into the empty cells of this datagridview, i want to save this
Ad
I'm a Windows Forms\WPF developer. Should I read Petzold's Programming Windows (the C language one) book?
I'm a c# developer working with either windows forms or wpf. sometimes i have to deal with unmanaged code, which i don't like. i think that the
How to scale panel in C#
I'm making a graph with over 400 nodes and trying to draw them. the nodes are representation of cities so i took their longitude and latitude and
How do I hide the input caret in a System.Windows.Forms.TextBox?
I need to display a variable-length message and allow the text to be selectable. i have made the textbox readonly which does not allow the text to
Set selected item on a DataGridViewComboboxColumn
I have a datagridview with a datagridviewcomboboxcolumn column with 3 values: "small", "medium", "large" i get back the users
Background color of a ListBox item (Windows Forms)
How can i set the background color of a specific item in a system.windows.forms.listbox? i would like to be able to set multiple
How do I make a ListBox refresh its item text?
I'm making an example for someone who hasn't yet realized that controls like listbox don't have to contain strings; he had been
How do I move an item from one menu to another?
In the visual studio designer, how do you move a menu item from one menu to another? i would assume drag and drop would work, but it seems
best way to write code of bool that check 6 functions?
I have this code: bool validinput = !string.isnullorwhitespace(reg_name_tbx.text) &&
How do I disable visual styles for just one control, and not its children?
I have a tabcontrol within a tabcontrol. i want the outer tabcontrol to show its tabs on the left. however, with visual styles enabled,
MDIParent Tiling children
Is there any way to tile all of the form children of an mdi parent easily? i'm looking for most of the functionality that windows offers, tile
How can I use Salesforce OAuth 2.0 implicit flow authentication in a WinForms application?
I wrote a web application which connects to the salesforce api using the oauth 2.0 web server flow, and that all works fine. but now there
Ad
async task - System.InvalidOperationException - Invalid cross-thread operation
Everyone, i have a problem with handling an async task. i have a timer and separately in a async task, i wanted to run a state
Serializing custom control's naming without DesignerSerializationVisibilityAttribute
Problem i was trying to create a custom control which contains nothing but a label. however, i wanted the label's text to be changed to
How do you return the focus to the last used control after clicking a button in a winform app?
I'm working on a windows forms application (c#) where a user is entering data in a form. at any point while editing the data in the form the user
HowTo Disable WebBrowser 'Click Sound' in your app only
The 'click sound' in question is actually a system wide preference, so i only want it to be disabled when my application has focus and then
Got .PNG file. Want embeddded icon resource displayed as icon on form title bar
This was an interview question. given visual studio 2008 and an icon saved as a .png file, they required the image as an embedded resource and to
C# read rss feed and display each item at a set time
Hi i am trying to make a c# forms application to read and show a rss feed that update (e.g. every 5 mins) my current code to read the rss feed as
How can I loop through all the open instances of a particular form?
I need to update a listbox of a form2 created dynamically. let's say that in the event where i have to update this listbox (in form1 of course) i
How to use the event MouseEnter inside a foreach statement?
I am making a sudoku game on c# .net desktop. the sudokupanel consists of 81 labels. i define their number on the board with a
Winforms for Mono on Mac, Linux and PC (Redux)
(i asked this question
Run a c# program with local database on another computer
To keep things simple - i am developing a course project for my college assignment. i created an application in winforms and c#.
Enable/Disable checkBox based on combobox value with ternary operator
I'm trying to enable checkbox based on comboxbox selection. i am aware that with simple if condtion can solve my problem but when i change it to
Ad
Embedding flv (flash) player in windows forms
I'm trying to the the flv flash player from here in a
Use if() from c# .dll as if() in Winforms
I've been trying to figure out how use my c# dll with c# windows forms app and what i want to achieve is that inside my dll i'll create a if()
Extract latitude and longitude from Google Maps URL using C# winform Application
How to extract latitude and longitude from google maps url using c# winform application programmatically?
How do I save an image from CapturePreviewAsync stream?
I don't understand much about async, but i get no errors when running this, and still i don't get an image in c:\temp\test.jpg - what
How to get value from one TextBox to another TextBox using Tab Index
I know its a silly question but, still i wanted to know it. i have two textboxes, textbox1 and textbox2. i entered some text in textbox1. now i
Why do I get the error "Unable to update the password" when calling AzMan?
I'm doing a authorization check from a winforms application with the help of the azman authorization provider from enterprise library and am
In WinForms, why can't you update UI controls from other threads?
I'm sure there is a good (or at least decent) reason for this. what is it?
Can't get rid of ErrorProvider message in Visual Studio 2022
I'm starting with c# as my second language and i'm doing a windows form app (.net framework) with ms sql server db. i tried to erase an
Size of Image while storing it in database
I'm facing an odd problem regarding image size. i've made a simple application which stores and retrieves images in a database. when i'm
How can I get combobox ID to return to database
Void fill_cbcategoria() { try { con.open(); string query = "select * from categoria";
Getting all ContextMenuStrips on a UserControl
I have a usercontrol which has several contextmenustrips add via vs designer. they are not assigned at design time to any controls, because they
Ad
ContextMenuStrip icon transparency
I changed the backcolor property of my contextmenustrip to something other than white, but the area on the left where the icons go is still white.
Published application is showing the wrong name in Task Manager
I am trying to learn how to deploy an application and i am now testing it with this app. everything works fine (yay!) except in task manager it
Ad
Blog Categories
Ad