95 Topics

Member Avatar for
Member Avatar for 민성

Picture box picture control is not working using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Color a0; Color a1; Color a2; Color a3; private ColorDialog …

Member Avatar for pritaeas
0
59
Member Avatar for pritaeas

I'm looking for a .NET tool/component I can use in WinForms that works like [mermaid](https://mermaid-js.github.io/mermaid/#/) but does not require a browser component. Something that generates an image is preferred.

Member Avatar for pritaeas
0
234
Member Avatar for karthikprs

Hi, I'm developing a windows forms based software that process various '.log' files and provides the output to the user. I've implemented a stop button to stop the processing of the files and when the button is clicked, a message box would display with Yes/No options. The process thread keeps …

Member Avatar for ddanbe
0
213
Member Avatar for TheGuy831
Member Avatar for TheGuy831
0
2K
Member Avatar for mpdph09

I have windows form with usercontrol to display image. I am trying to reset the autoscroll position to the top of the image if the user had scrolled down to see bottom part of the image. So at index change it should display top part of the next image that …

0
135
Member Avatar for virendra_sharma

Hi, I am working with Winform Grid .As per my requirement , i need to use two control in single grid cell. please suggest how i can achive it. Thanks in advance.

Member Avatar for tinstaafl
0
258
Member Avatar for bhaskerlee

I want to show my custom control(eg: `monthcalendar`) as a drop-down (popup) window. One option is to use `ToolStripDropDown` and `ToolStripControlHost` as the second example in [msdn sample](https://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripdropdown(v=vs.110).aspx). Is it recommended to use ToolStripDropDown for controls other than the ToolStrip items ?

Member Avatar for bhaskerlee
0
185
Member Avatar for rfresh

I have a listview component with the following simple items: Name Size Fixed Lens ------------------------------- camera1 35mm Yes camera2 16mm No I'm using C# and want to edit various items but the following code give me value '2' is not valid for index: listView1.SelectedItems[0].SubItems[2].Text = "Test"; What am I doing …

Member Avatar for tinstaafl
0
215
Member Avatar for senzeye
Member Avatar for JerrimePatient
0
188
Member Avatar for TekknoDraykko

I'm trying to change the form icon on an app I'm creating but I've forgotten how. Does anyone remember how to create a winform icon from an image file (i.e.- jpeg, bmp, etc)?

Member Avatar for ddanbe
0
241
Member Avatar for Spark_2

Just to give a little more info; I'm making a simple inventory program. From the main inventory page, a user can click the "Add Item" button, where they will be taken to another form, where they can fill out the item's info. Three fields are required (Category, Item, Quantity). Based …

Member Avatar for Spark_2
-1
475
Member Avatar for CSharpUser

I have a Windows Forms application (not WPF) in which from the main form (UI thread) I am creating a separate thread to perform a long period of test execution. The idea is that the user starts the testing by clicking a button on the main form; when the user …

Member Avatar for lolafuertes
0
284
Member Avatar for javed.iqbal.3979

Here is the URL to a thread i started recently for help and looking for guidance from here as well. http://stackoverflow.com/questions/26504979/how-to-get-the-auto-extension-of-entered-link-to-downloader Regards IQBAL

0
141
Member Avatar for javed.iqbal.3979

This worked for a txt/zip file download but if i want to save/download video/audio file.How to move ? //Two textboxes used here, //1.to take URL //2.to get saving location on drive private void downloadbtn_Click(object sender, EventArgs e) { WebClient myWebClient = new WebClient(); string path; path = this.savePath.Text; Uri tmp …

Member Avatar for cgeier
0
283
Member Avatar for javed.iqbal.3979

The following programme is not giving me desired output: string remoteUri = "http://www.contoso.com/library/homepage/images/"; string fileName = "ms-banner.gif", myStringWebResource = null; string path = System.Windows.Forms.Application.StartupPath; // Create a new WebClient instance. WebClient myWebClient = new WebClient(); // Concatenate the domain with the Web resource filename. myStringWebResource = remoteUri + fileName; Console.WriteLine("Downloading …

Member Avatar for AleMonteiro
0
220
Member Avatar for javed.iqbal.3979

I have the following code for simple downloading a file using WebClient: using System; using System.Net; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace DownloadManager { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void downloadbtn_Click(object …

Member Avatar for Harry_7
-1
259
Member Avatar for hanvyj

I need to bind a property to a ToolStripMenuItem. I've searched around and found it imposible, the best workaround seems to be creating a BindableToolStripMenuItem class and implement it yourself. So I've taken some reasonabyl well established code from the internet: public partial class BindableToolStripMenuItem : ToolStripMenuItem,IBindableComponent { private BindingContext …

Member Avatar for hanvyj
0
368
Member Avatar for kiail

Hello, I'm currently working with a program that using the reportviewer in VS 2012. I have been looking online since yesterday, trying to find any kind of tutorial on how to switch between reports. I have this so far, but it doesn't work. I have another snippet I've been trying …

Member Avatar for kiail
0
265
Member Avatar for rahulzephyr

Hi,,,In my C# windows form, blinking and flickering occurs when i'm running the application.The form blinking occurs more times in Win 7 than Win XP.The form blinks when im opening the application and also when another form opens by button click. Can anyone tell me how to avoid that blinking …

Member Avatar for rahulzephyr
0
292
Member Avatar for yogesh_10

How to save, delete and insert current cell value of datagridview from xml file in C#.net winforms. i am entering the data in current cell of datagridview, that data is comming from xml file. now how should i save this current cell data.

Member Avatar for tinstaafl
0
127
Member Avatar for MARKAND911

I am developing a winform application. I have menu like Edit -> Copy and Edit -> Paste. Instead of using Clipboard class to do copying and pasting can I use Operating System's ability to Copy and Paste text, image, link, etc...

Member Avatar for Ancient Dragon
0
127
Member Avatar for priyamtheone

How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?

Member Avatar for priyamtheone
0
365
Member Avatar for pritaeas

I've got some winforms partial classes marked `[Obsolete]`. Unlike when applying this to methods, I get no warning after building. Is this because it's set on a partial class? I can't set it in the designer too, because that code can/will be regenerated. Anything I can do about it with …

Member Avatar for pritaeas
0
260
Member Avatar for chenpaii

How can I insert splitted texts to my ms access database? I can't seem to find the logic in it. :( Please help me. Here are my codes: This is where i split the texts that are inputted in textBox1, textBox2, and textBox3 string items = textBox2.Text; string[] splittedText1 = …

Member Avatar for castajiz_2
0
357
Member Avatar for chenpaii

I've got this error: **Additional information: Data type mismatch in criteria expression.** I don't know why.. I want to use split text in a textbox and insert the splitted texts to ms access. Here is my code: string[] splittedText1 = textBox2.Text.Split(' '); string[] splittedText2 = textBox1.Text.Split(' '); string[] splittedText3 = …

Member Avatar for cgeier
0
318
Member Avatar for bhagyap

hi.. I am working with an desktop application and i want to encrypt dlls after deployment.. Can anyone plz help me???

Member Avatar for Rajeev Nambiar
0
991
Member Avatar for Gaurav_14

Hello there,,,,,,, In my project there is one window form and on that form I have one linkLabel control..... Now my question is that I want to add one web page into my project ......so that when I click on the LinkLabel it must open that web page .....so how …

Member Avatar for YA RAMSAMKER
0
320
Member Avatar for vishal anand.s

Hi i have a problem in binding DateTimePicker value from one form named SearchDoctor to existing form named Doctor. Here is the code of my Doctor form and it works: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.Sql; …

Member Avatar for Maligui
0
668
Member Avatar for radium61

I am trying to bind data to my DataGridView. (However, this is the easy explanation.) Background on what I am trying to accomplish: I have a rather large program here. This part of the code uses a DataGridView to display the data I have read and parsed (from another program …

Member Avatar for radium61
0
2K
Member Avatar for MARKAND911

I am building a winform Application. I have to create buttons dynamically based on data fetched from database. I followed following steps Created UserControl On UserControl_Load event I fetched data from database. I populated the UserControl with buttons based on number of rows i get from the database. The above …

Member Avatar for deceptikon
0
421

The End.