hi, i have a ms access data base.i want to know how to find the path to the table so that i can use it in my connection string as path...... please help me thanking you
C#
hi, i have a ms access data base.i want to know how to find the path to the table so that i can use it in my connection string as path...... please help me thanking you
C#
thankyou sir....:) i am looking for a book that is simple to understand since this is my fiorst step to pgrmg
C#
even i thought so..... but i wanted to check.... thanks again :)
C#
hi, i have two set of codes here for the same output.... one is by using the functions that i wrote and the other one is by using delegates(got form net) can anybody tell me the advantage of using the delegates in this code?? please check the comments in the code using delegates... i found the normal way much easier.... WITHOUT USING DELEGATES::: using System; using System.Collections.Generic; using System.Text; namespace trialfunctions { class Program { string name; public void enter() { Console.WriteLine("enter a string"); } public void display() { name = (Console.ReadLine()).ToString(); Console.WriteLine("The string entered is {0}", name); Console.ReadLine(); } static void Main(string[] args) { Program obj = new Program(); obj.enter(); obj.display(); } } } ---------------------------------------------------------- /////////////////////////////////////////////////////////// ---------------------------------------------------------- USING DELEGATES::::: using System; public delegate void TestDelegate(string message); //Declare the delegate class Test { public static void Display(string message) { Console.WriteLine("The string entered is {0} " , message); } static void Main() { TestDelegate t = new TestDelegate(Display); //Instantiate the delegate Console.WriteLine("Please enter a string"); string message = Console.ReadLine(); //what is the need for this t(message); //Invoke the delegate Console.ReadLine(); } } thanking you -- modified at 1:45 Thursday 25th October, 2007
C#
frm.ParentDelegate = new WindowsApplication1.Form2.InformParent(this.InformParent); can you explain this code to me Navneeth.......especially this part.....new WindowsApplication1.Form2.InformParent(this.InformParent); thanks :)
C#
its something like this Christian.... i wrote it with delegates but i was not very clear withy certain things in the code or how they work.....because i got the code form google... so i wanted to try it again with and without trying delegates.... since u r insisting so much that its a bad practise i think i should stick with delegates and not waste my time the other way round... thanks Chris..
C#
yes Christian i understand that but i want to try it this way also..... just for once so that i know how exactly it works..... just curious may be...... thanks in advance for your repeated help...:)
C#
yes Koushik ..... form1 is the parent form and form2 is the child form.... when we click on a button in form1 the form2 will pop up..... :) thanks in advance...
C#
hi, i have two textboxes form1 and form2 in form1 and form2 i have two textboxes.... what ever i enter in textbox in form2 should be updated into textbox in form2... i dont want to use delegates.... i have an idea ie....whatever is in textbox in form2 has to be called in form1...for that i need to create an object...but where and how and how to make it display.... can anybody give me the structure of the code in both the forms so taht i can try with that....... thanking you
C#
Thanks again will try with delegate first
C#
hi, i have one more doubt if i want to use multiple windows that form1 will have datagrid and form2 will have textboxes and if i want to display the details entered in form2 in the datagrid in form1 .....do i need to use delegates or is there any other easy way of doing it..... :) thanks
C#
Awesome now i got it working........now its working fine.....thankyou guys
C#
but navneeth isnt the bools default value always false.....? can you just alter my complete code for me so that i can understand it better if you dont mind.... or is there anyother way of doing by not using the bool ie something like if(rdobuttonmale.selected) { txtBranch.Text = rdoMale.Text; } if(rdobuttonfemale.selected) { txtBranch.Text = rdoFemale.Text; } my basic purpose is the same ie the textbox should display the selected radio button....:) thanking you
C#
HI, I have two radio buttons male and female in windows form.... this is my code..... whatever i do it will only display female which ever radio button i clicked.... i suspect there is some pblm with my bool... can anybody help me plzzz bool flag=true; public Form1() { InitializeComponent(); } private void txtBranch_TextChanged(object sender, EventArgs e) { } private void btnRadio_Click(object sender, EventArgs e) { if (flag==true) { txtBranch.Text = rdoMale.Text; } if(flag==false) { txtBranch.Text = rdoFemale.Text; } } } } thanks in advance
C#
Hi, ThankYou it worked.......Thanks a lot...... i tried google to find links that will help me to learn windows forms myself... but i cannot find anything...... if its not much trouble can you get me a link ..... thanks again j
HI, i am trying to work with windows form.... Pardon me for asking such a basic question.... 1)i have a text box and a combo box and a button in windows form...... when i click on the button i want the item selected in my combobox to displayed in the text box......what is the code for this?? i tried the following code "txtBranch.Text = cmbBranch.SelectedIndex();" 2)similarly if i add a datagrid to this i want the data grid to display this item selected in the combobox......what is the code for this?? 3)if anybody can provide any link that will help me to get familiarise in windows controls that will be good.... thanking you j
Sure Will do so ......thanks again :) :)
C#
ThankYou Abhijit :) :) :)
C#
Hi Sonia, you can try this link http://www.codeproject.com/csharp/csharpintro01.asp i am confident this will help you..... i thought this is good Thanking You :) :) :)
C#
i dont want to store anything abhi i am trying to enter some detailes in one form and it shpould be shown in datagrid in another form.....if i donot stop the running and keep on updating i the datagrid will also get upgraded.... i almost did it using delegates can u plz check the codes and tell me because i got the code from somewhere else code form1:: public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void UpdateGridView(string name, string roll, string Class) { string[] data = new string[] { name,roll,Class }; dataGridView1.Rows.Add(data); } private void button1_Click(object sender, EventArgs e) { Form2 obj = new Form2(); obj.StudentDetails = new namedelegate(this.UpdateGridView); obj.ShowDialog(); obj.Close(); } } } code for form2:: public delegate void namedelegate(string name,string roll,string Class) ; public partial class Form2 : Form { public namedelegate StudentDetails; //creating an object of the delegate public Form2() { InitializeComponent(); } private void btnUpdate_Click(object sender, EventArgs e) { StudentDetails( txtName.Text, txtRoll.Text, txtClass.Text); } private void txtName_TextChanged(object sender, EventArgs e) { } } } Can you tell me how does the program flow work thanking you
C#