|
So now a days CP forums are replacing text books?
Koushik Biswas
|
|
|
|
|
Hi every body ,,well i'm not an advanced developer in c# so that i realy need quick help in " how to display the mac address of a local pc to a textBox in a c# windows application form" ?????
actualy i have found a lot of articals using console application to obtain mac address but i just couldn't make any use out of it so by the way can i use data obtained in a console application to a forms application ?and how would that be?
thanks all of u for helping
Hesham Hafez
|
|
|
|
|
You get an article on the internet which shows you how to display something on the console. And you cannot get it dispplyed on a text box ?
Assign a string variable with the value and set the Text property of the textbox to that value.
Judging from your question, you should not be dealing with Mac Addresses. Try displaying Hello World first.
Koushik Biswas
|
|
|
|
|
tanks any way Koushik Biswas but that didn't help as i told u i'm not familer with c#
Hesham Hafez
|
|
|
|
|
Hi all,
I have many SQL Stored procedures that i need to run before my program start ,so i need to run them while project installation ,how can do this?
your support is highly appreciated
thank you
|
|
|
|
|
add script files to the Setup and go to lanch conditions window.
Write a VBScript Self Executable file. This vbs file will be copied along with u r project. write vbscript code to execute sql scripts.
regards
GV Ramana
|
|
|
|
|
thank you Ramana,
can u tell me how to get the SQL server name dynamically of client machine in this script
|
|
|
|
|
Hello All,
I'm in a bit of corner here, i need to inherit a c++.net class with a c#.net class
but.. i can't find any way to do this.
what i can do is inherit a c# class using a c++ class but unfortunately i need to inherit the other way round from c++ -> c#
if any one know hot to do this please help me
10X
Hadar Raz
Hadar Raz
hadar33@gmail.com
|
|
|
|
|
hadar33 wrote: I'm in a bit of corner here, i need to inherit a c++.net class with a c#.net class
but.. i can't find any way to do this.
There shouldnt be any problem. Make sure of the following:
1. Make sure the c++.net class is infact a managed class
2. Make sure its publicly visible.
Please list any specific errors you get, then we can pinpoint the propblem easier
|
|
|
|
|
Not really programming question:
When debugging in Visual Studio 6 you can skip lines of code to be executed by placing the cursor where you want to start and pressing Ctrl+Shift+F10 (can also be used to repeat the same code over and over). I`m debugging a C# program now in Visual Studio 2005 and Ctrl+Shift+F10 does not work. I can only see options to step in a function, step out or run untill the cursor, but no option to skip lines or place the cursor a few lines prior to the current... Is this option not available in C#?? If it is, can anybode tell me the shortcut-key?
Thanks,
Davy
|
|
|
|
|
Place curosr in line of code which u want and press F9 then u have breakpoint in that line (this is in VS.NET 2005)
|
|
|
|
|
I don't think that there is a shortcut key for that. Just grab the arrow indicating the next instruction and drag it up or down.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks that`s what I was looking for.
|
|
|
|
|
In C# on .NET 2.0, how do I use external files for a custom Section that do NOT have a relative path (meaning "c:\Config\Files\" for ex.).
Second, I am trying to save a hashtable (with string keys and string values) to that external file and then load it but I could not find a simpel way to do that using classes in the System.Configuration namespace. Did I miss something or is the KeyValueConfigurationCollection class the only way?
Thanks,
|
|
|
|
|
hi all, i have some confusion about the functions and stored procedures in sql server i hope u will clear my cofusion...my question is..what is the diff between sp and function in sqlserver and where to use this function and where to use this sp? plz..give some example....
Regards,
ayyp
|
|
|
|
|
have a look this article
http://www.dotnetspider.com/qa/Question22237.aspx
|
|
|
|
|
thank,u cleared my doubt
Regards,
ayyp
|
|
|
|
|
It's my pleasure
|
|
|
|
|
How can i destroy the child form object from MDI form in C#
|
|
|
|
|
Hi there,
A little quistion.
I have a Form that contain's a textfield and a Button.
If the button is pressed a new form opens (the old form stays open too)
The new form contains a datagrid where the user can select a customer.
On the dubble click of the row the form closes and should put this value into the textfield.
the select row is not the problem.
the dubbelclick isn't a problem as wel.
the problem is how can i fill the textbox when dubbelclicked on the row.
I can pass the data between the forms. and usaly i use the initialize component or formload to fill up the forms.
But in this case he doesn't reopen the first form.
|
|
|
|
|
on double click event :
Form1 frm1 = new Form1();<br />
frm1.TextBox1.Text = selectedrow text
|
|
|
|
|
that opens a new form and that is not exactly what i want cause he loads my populate textbox event which is defined by initialzi components.
|
|
|
|
|
Form1 frm1 = new Form1();<br />
frm1.TextBox1.Text = //value
this code doesn't open form as u see it's declared new instance of Form and then via that instance it's refered to text of textbox.
|
|
|
|
|
oke open was maybe a bad word to use..
but if i use this he will go to the initialize components section of the form and i wan't to skip that part i really don't want him to do this..
cause there he loads an event wich contains data from a previous form. any way he doesn;t load this 2 times.
|
|
|
|
|
If i want to bypass this with a if else sting.empty he says that he cannot covert string to bool.
|
|
|
|