Yes indeed Thank you very much
dimo1982
Posts
-
how to call function timer on button click -
how to call function timer on button clickHi I`m trying to run timer on tick method after clicking the button and i dont really understand how it can be done. can anyone help please :doh: ?? for example :
private void button1_Click(object sender, EventArgs e) { myTimer.Enabled = true; //Run myTimer_tick } private void myTimer_Tick(object sender, EventArgs e) { //Do something here }
-
windows forms refresh, update???It`s not working for me, what i`ve noticed is that all the panel as the user switches between do same thing whether there are only labels or pictureBoxes so i`m assuming that there`s the problem with bitmap on the background of the form. panels they are all set up as transparent. any ideas??
-
windows forms refresh, update???right i`ll try that but i forgot to tell you that on the form is background 800x600 bitmap so maybe that is the reason that is so slow.
-
windows forms refresh, update???Hi To all I`m very new to the programming and got stuck. So i`ve been trying to write a program using Windows Form which include several different panels on. User can choose between which one is visible. on each form there are few pictureboxes and my problem is ..... when you swich between them in the runtime it`s not smooth enough :( user can see loadning frames of these picture boxes for few miliseconds this is really annoying. Is there any easy way of loading it in the background and show it after its ready or something ??? I started reading about threads etc but at the moment its quite difficult, i will be gratefull if someone could explain it with an example Thanks in advance Dims
-
How to use public int?!!?!!? windows form.Hello still nothing cannot solve this problem, so what i tried is i tried declare variable as a (public int nameOfInteger) just before the method, in the begining oif the class and everywhere else. Still confused thats my code
namespace ExerciseInt
{
public partial class Form1 : Form
{
int newNumber;public Form1() { InitializeComponent(); } public void button1\_Click(object sender, EventArgs e) { Random myRandom = new Random myNumber = myRandom.Next(1,10); } private void button2\_Click(object sender, EventArgs e) { MessageBox.Show(myNumber.ToString()); } }
}
so when i click button1 variable should be set up and when click button2 i would like to see this variable in the message box. looking forward to hear from you.
-
How to use public int?!!?!!? windows form.Hello All I`m very new to the programming so this might be easy question to all of you, i`m hoping someone can help me out. So i`m trying to write very easy program in windows form but i have encountered the problem. lets say that i have an event on the button1 (CLICK) which should pick up a random number and hold it in the memory unless i click it again to change it. My problem is that i cannot figure out how to use this variable which has been set up in the first place with another event button2(Click) which will use this variable and do other task with using int previously declared. Short example:
public void Random_Click(object sender, EventArgs e)
{
Random myRandom = new Random();
int myNumber = myRandom.Next(1,10);
}
public void Button2_Click(object sender, EventArgs e)
{
MessageBox(myNumber.ToString());
}This will not work and i cannot find the way to get it right plese help !!!
-
how can i get data from SQL northwind.sdf into the textBox ????????? need helpOk as soon as I get back home I will post my code
-
how can i get data from SQL northwind.sdf into the textBox ????????? need helpAny chacne that you could post one for my code please?? Seriously I have been trying to find solution for last 5 days !
-
how can i get data from SQL northwind.sdf into the textBox ????????? need helpHello Everybody I have a problem with retreiving data from Example Northwind.sdf database I need your help please !!!! I`m very new to C# sharp so please be understanding. So far I got a connection but cannot manage to get data into the text box(i`m using Microsoft Visual C# 2008 Express Edition) I looked into hundreds of examples and still nothing... this is my CODE -----------------
private void getDataButtton_Click(object sender, EventArgs e) { string conString = Properties.Settings.Default.NorthwindConnectionString; using (SqlCeConnection connect = new SqlCeConnection(conString)) { try { connect.Open(); MessageBox.Show("Connection Established"); ..................... ..................... ..................... } catch { MessageBox.Show("Connection Error!!!"); } } }
Dim