C# :: Going Between Winforms?

Jun 30, 2014

today deals with using a two window option to view entered data. I have the GUI set up for my user entry, but am not sure how to get that information to save into a datagrid on another page. I have inputboxes for First Name, Last Name, and Phone Number; a combobox for an occupation; and lastly a radiobutton for Gender. I am trying to teach myself how to get this information to save to the other page so that when you click submit you automatically go to the next page to view your entered data.

View 14 Replies


ADVERTISEMENT

C# :: Simple Map Editor In Winforms

Mar 20, 2014

I want to create a simple map editor in winforms. I would like for it to use a tile sheet from the user which they then can click on tiles from it and place it on the specified grid. Then export this as a binary file. Or perhaps it would be easier for the user to chose the grid size then have each grid space's number be able to be changed like 01,02,03 to represent an image. Then export this as a binary.

View 1 Replies View Related

C# :: How To Convert Console App To Winforms Or Other GUI

May 8, 2014

I have written a long console app (over 1000 lines of code) and I want it to have a GUI. I was wondering if there was a way to quickly convert it to Winforms or other GUI?

I already know how to include Winforms to a console app. But when I compile it, the Winforms does not include the Console app component of the program. My Form.cs includes the Winforms and Program.cs is the console app part with >1000 lines of code that I wrote before. Compiling it, only the part in the Form.cs runs. The Program.cs part doesn't run. For example, I have many "Console.Writeline" and "Console.Readline" parts in the Program.cs, but they run after I add the "Form.cs" to the program

Although the Form.cs runs, the Form.cs [design] doesn't show up

View 6 Replies View Related

C# :: WinForms - Concatenation Of Label And Variable

Jan 15, 2013

I have a question, is it possible to Concatenate a variable to a label?

For example, i'm doing:

Random Rnd = new Random();
int num1 = Rnd.Next(1, 11);

And now i want to concatenate the random number to give test me if the label of that number has a char inside.

if ( lbl_s_num1.Text != "X")

View 12 Replies View Related

C# :: How To Update Text In WinForms Textbox

Oct 28, 2014

I am trying to create an application interface serial data reception using c #. I send the data from the serial adc microcontroller adc atmega 16 ... the data is 0 to 1023. In the textbox that I use as a data reception, data updates to the bottom if I use ReadLine coding.

examples:
1023
1023
1023
256
669

If I use ReadExisting, the data displayed by the textbox moves to the side. examples 102310231023256669

When the data changes from 0-1023 of serial communication, and clear the data will store in otomatiis in the textbox.

When there is reception of data with a value of 1023 and immediately there is a change to the value of 555 textbox value will not store the value of 1023, I want the value in 1023 immediately deleted automatically and change the value to 555 when a change in the value of the data ...

The following is the complete source code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace serial {
public partial class Form1 : Form {

[Code] .....

View 6 Replies View Related

C Sharp :: No Definition For Fill (WinForms)

Feb 13, 2013

I'm working on a personal project, where I have a database (SQLite) and a dataGridView. Now This is what I have:

 public Form1() {
            DataSet ds = new DataSet();
            SqlConnection connection = new SqlConnection(@"Data Source=testingsql2.s3db");
            SqlDataAdapter SQLda = new SqlDataAdapter("Select * from User", connection);
            SqlCommandBuilder SQLcb = new SqlCommandBuilder(SQLda);
            dataGridView1.Fill(ds, "User"); //Error here
            dataGridView1.DataSource = ds;
            dataGridView1.DataMember = "User";
        }

I've marked where I get the error.

And the Error description:
Error    1    'System.Windows.Forms.DataGridView' does not contain a definition for 'Fill' and no extension method 
'Fill' accepting a first argument of type 'System.Windows.Forms.DataGridView' could be found 
(are you missing a using directive or an assembly reference?)

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved