Questions tagged [winforms]

WinForms is the informal name given to Windows Forms, a GUI class library in the Microsoft .NET Framework and Mono. Questions in this tag should also be tagged with the target framework ([.net] or [mono]) and should ordinarily be tagged with a programming language tag.

0
votes
1answer
25 views

How to read a text file during a Windows Forms application installation

This seem a very odd question but I'd like to know if this is possible. I'm dealing with a Japanese boss that requested a custom launching program, which I accomplished using Windows Forms. From that ...
0
votes
0answers
34 views

Form does not contain a constructor that takes 0 arguments

FORM 1 public partial class Login : Form { string cons =ConfigurationManager.ConnectionStrings["SSBarConnection"].ConnectionString; public Login() { InitializeComponent(); }...
0
votes
1answer
22 views

Is it possible to suppress the DoubleClicked event on a ListView when it's triggered via the right mouse button?

The table here demonstrates that the DoubleClick event is raised when a user double-clicks either the left or right mouse button on a TreeView or ListView; I only want this event to be triggered on a ...
0
votes
1answer
20 views

While publishing a project, how can I do input files “not reachable”?

I have a c# winform project that I have a Data Folder where I read required documents from here. While form is loading, I read documents from that location as seen code. After publishing, these ...
1
vote
0answers
32 views

How to get focus in active forms?

I made a simple winforms application and it contains a single form. The problem is when I click the executable I want the activated form to get focused instead of multiple instances of the application....
1
vote
0answers
33 views

Why are there few separate closed loops in my TSP Little-algorythm solver implementation?

I'm trying to implement TSP-solver using branch and bound method and Little's algorythm. The software itself should be used for demonstration purposes in lecturing discrete mathematics. With the ...
-1
votes
2answers
44 views

How to (StartsWith) start with 4th letter?

I have a question. I want to copy specific files in 'New folder' to 'Target' folder by clicking a button. In 'New folder' contains various of file with different name. For example: "abcUCU0001", "...
0
votes
0answers
11 views

I want to covert the datagridview into an ini file after inputting the data

I want to covert the datagridview into an ini file after inputting the data. http://www.hoons.net/Board/qacshap/Content/67073 When I enter the URL above, I try to put data into the grid and press ...
0
votes
0answers
9 views

Software built on visualstudio 2010 cannot run on 10 windowns

I have a software built from visual sutudio 2010, running smoothly on Windows XP, but when I put it into windows 10 it doesn't work.
-3
votes
0answers
32 views

Show updates from Vending Machine on other forms [on hold]

I made vending machine. In this code, I want to click form1 button4 then show sales volume of vending machine in form2.label1: "this sales volume have to accumulate when i buy in vending machine" and ...
-2
votes
0answers
31 views

Getting error that claims my .EXE is locked - Visual Studio 2017 [duplicate]

I have two forms currently. A page that contains buttons that are supposed to lead to other forms. I currently have the main form and a form for the bar graph already set up. My problem arises when I ...
0
votes
1answer
19 views

Run Matlab Script in C#

I have matlab script textcreator.m that create some result file output.txt. And there is some matlab.aplication() reference that "translate" matlab function to c# and some of the code is hard to ...
-1
votes
0answers
22 views

Is there any way to create an Audiogram report using C#?

I'm creating a Winform App, and want to create an Audiogram. Is there any component (ex: Stimulsoft) for doing this report? I searched the web but couldn't find an appropriate solution.
0
votes
1answer
11 views

WinForms ReportViewer HTML Interactivity Not Working

I am trying to render a report via a C# application. The report successfully renders when I use both the "HTML5" and "HTML4.0" extensions, however the interactivity of the report is missing. ...
0
votes
1answer
30 views

How to open a localhost server accessible from all devices in C# Windows Forms

I'm building a C# (Windows Forms) application that should open a local server on the network. I've searched and googled thoroughly but it seems that nobody was exposed to the same problem that I have. ...
0
votes
0answers
14 views

How to identify Windows Credential Manager available in the OS

I'm working on a login process for a WinForms application and was checking various options to store my app login credentials and have faced an issue on which I would like to have some help. My idea ...
-4
votes
0answers
27 views

Data stream pause issue in WinForms

I'm very new to c#, but I've manage to create a WinForms client which is streaming live sensor data into a server successfully. The only issue is when I click off the WinForms exe, the data streaming ...
0
votes
1answer
41 views

DataGridView bound to a Nested Dictionary

I've tried seeing this: DataGridView bound to a Dictionary But it's not exactly what I'm looking for, so here I am. I have a dictionary like this (just an example of how it looks like): { "file"...
-2
votes
0answers
20 views

I need to find the progress of the task being done by ffmpeg.exe and redirect it to the progress bar in my windows forms application?

I am creating a simple video converter using ffmpeg.exe tool. So, in order to display the progress of the conversion, I need to grab the output of ffmpeg cmd output and then transfer it to my textbox ...
0
votes
1answer
28 views

How to create exe file for Two class libraries in Visual studio

I have to create virtual camera of my winform app to access it in skype. I have done it by referring this link. But I can only rebuild the app. Because it contains only Class Libraries. So when ...
-3
votes
1answer
18 views

C# Windows forms - want to update text box value dynamically

I have two forms - with multiple text boxes (both look the same) If I change the value of tb1 on form1, tb1 on form2 should be updated on the fly without having to open the form2 again and so on.
-4
votes
0answers
17 views

I have a bunch of errors with my code in the windows forms

this is my code and I get these errors: 1- Erro C2084 function 'void Main(cli::array ^)' already has a body 2- Error C2065 'form': undeclared identifier 3- Error C2146 syntax error: missing ';' ...
0
votes
0answers
27 views

How to stop executing data aquisition and display method in event handler

This is the first time to ask a question here and not an English native. So if my question is ambiguous, I'm sorry about that. [Development environment: Windows10, Visual Studio 2017, .net framework ...
0
votes
1answer
37 views

How to close a MdiChild Form right after opening it?

We can close a Mdiform by Me.close() written in a control like Button's event. Can we close a form right after opening it? According to what I know after opening a form the pointer goes to Form.Load ...
0
votes
1answer
25 views

How to make the element(resource) in the panel

This code of my button: int offsetY = 5; int x = 0; int y = 0; int index = 1; //Start adds new panel and new label Panel b = new Panel(); ...
-1
votes
1answer
41 views

How to draw a grid on a PictureBox preserving the image it contains?

I want to draw a grid on the image in a PictureBox. But, when the grid is drawn, the image disappears. How can I fix this code? It draws the grid when a CheckBox is checked or I change the grid size ...
-1
votes
0answers
38 views

How to FullSelectRow a row when checkbox is checked for a List view control?

I tried adding this line on the Item checked event but it is not working listview1.FullRowSelect = true; screenshot of ListView
0
votes
0answers
15 views

How to create dial pad/numeric key pad which behave like normal keyboard input in c# windows form application? [on hold]

I am creating a application in c# windows forms and i need to create numeric dial pad for typing into textboxes in touch screen display. How to create dialpad which behave same like normal keyboard ...
0
votes
2answers
48 views

How to store average score and high score in class?

I don't know how to store a player's average score, high score and average time to complete a game in my user.cs class. Whenever the player finishes a round of my game, the average and high scores and ...
2
votes
1answer
58 views

Why is this code drawing a box instead of an L shape?

I cannot seem to figure out what is wrong with this code. I am trying to draw an L shape using a 2D array. For some reason, the code is drawing a big box instead of an L shape. I stepped through ...
-2
votes
0answers
35 views

C# Class Library not rendering windows form on runtime

I have a C# Class Library project with a Windows Form class in it, I can design the form just fine using the designer but when I inject the DLL into a process and the form loads up, the form has an ...
0
votes
0answers
28 views

Application freezes when I open a file dialog

I want it so that when the user clicks on the button and opens an image, the image gets copied to another location and the filepath of the copied image is saved inside 'Properties.Settings.Default....
0
votes
2answers
40 views

How to disable RichTextBox color/size changing property?

For example, when I copy three lines of code (from VS) and paste it directly into my RichTextBox, the font/size/color will be deformed (for example "End sub" color will be turned into blue). Is there ...
0
votes
0answers
34 views

How to delete a file used by another Process

Public Class frmMainCetegory Private Sub frmMainCetegory_Load(sender As Object, e As EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'PosDatabaseDataSet....
1
vote
0answers
38 views

Trying to display all values of row from dataset when selecting an item in a listbox

I'm trying to be able to click an item in a listbox and be able to view all of the data in it's corresponding row. Wondering what's wrong with my code now? I have tried multiple times to query the ...
1
vote
0answers
21 views

DataGridView isn't saving programmatic changes to cells

I have a checkbox in a databound DataGridView, that when checked, opens a pop-up form. I fill in the form and close it, and the data in the form is populated in the row. But the changes aren't being ...
0
votes
0answers
16 views

How to fix “show Thresholed image on winform CLR ”

I use the function DrawCVImage() to put the video on winform CLR. I worked for HSV image, normal image except the thresholded image. the thresholded screen separated into 3 sections @@ picture ...
0
votes
0answers
52 views

When setting DoubleBuffered = true in subform, System.ArgumentException gets thrown in Program.cs (System.Drawing.dll)

I am attempting to resolve some flickering issues in the Paint event by setting DoubleBuffered = true in a form that gets opened when the user clicks a button in the main form. However, just as the ...
0
votes
1answer
24 views

How do I clear all ComboBoxes at once By looping through them?

I have about nine ComboBoxes on my form and each one is filtered according to the one that came before it, so when I change the value of the first ComboBox I need to clear the rest, is there any way ...
0
votes
0answers
26 views

C# WinForms Thread Manager

I want to build a Thread Manager in my C# WinForms application. This is how I add new Thread: Thread thread = new Thread(delegate() { Thread.Sleep(TimeSpan.FromSeconds(delay)); //MY CODE ...
-4
votes
0answers
47 views

Communication between 2 exe projects in c# [duplicate]

I need a help. I have 2 projects. One is winform application and other is a wpf windows application. Winform application is the main project and wpf is a small exe project with only one window. Both ...
0
votes
0answers
28 views

Calculator with a clipboard and a notification with extra functions

I make a notification calculator that calculates a copied sum and shows the correct answer based on that. That seems to work pretty well. Now I want 2 more functions in it that I don't know how to ...
0
votes
1answer
43 views

How to load data into a class and sort it

There is a LoadStudents method that writes objects with some fields to the Student class array. It is necessary to develop a method (I tried, called it Add) with the help of which it will be possible ...
-1
votes
0answers
24 views

How do I add userControl to panel in winforms?

I am working on a legacy system. It has vb.net and vs 2008. panel name is pnlDeterioration and user control name is ucDeterioration. uc is UserControl folder which is in the root of the project. ...
0
votes
2answers
54 views

How can I check/uncheck all CheckBoxes inside a GroupBox?

I have a form with several GroupBoxes. Each GroupBox contains several CheckBoxes inside it. Each GroupBox also has (outside of it) two associated buttons that uncheck/check all CheckBoxes inside the ...
-1
votes
0answers
30 views

Dynamically adding a group of controls to tablelayout C# (Winforms)

I want to add a group of controls to tablelayout by pressing a button. I have the implementation presented below, but I heard about Usercontrol and it seems to me that there is a more optimized ...
0
votes
2answers
71 views

Excel to DataGridView with OleDbConnection using two DataAdapter

1- Create C:\Book1.xlsx file into C disk. 2- Ensure that you have one sheet in the C:\Book1.xlsx file named Sheet1. 3- Fill Sheet1 cells from A1 cell to E20 cell with some data. 4- Close C:\Book1....
0
votes
0answers
42 views

Winforms: Prevent Automatic Drawing of Child Controls

I'm working on creating a Control/UserControl that is capable of Panning, Zooming, and displaying items based upon Cartesian Coordinates. I actually have these features working for internal test ...
0
votes
0answers
14 views

How to increment issue date & store it in another table in c# windows form [on hold]

Im making a library management system. I have to insert issuedate and stdID, BookID in issueBook table. Now i need to auto increment issue date and when 15 days pass it stores stdID n BookID in ...
-2
votes
0answers
16 views

Using a string from another windows form [duplicate]

I got two windows forms, a main and a childform. By pressing a button on the mainform, the mainform will hide and the childform will show up: private void startBtn_Click(object sender, ...