|
Not 100% sure.
1. You MUST know the programming language in which code was written for the DLL.
2. Dumpbin.exe[^] does that. Never used it though.
|
|
|
|
|
|
Have you thought about using built-in functionality available in the .NET framework, without having to P/Invoke first?
In the System.Data.Sql namespace (in the System.Data dll), there is a SqlDataSourceEnumerator class, that, "Provides a mechanism for enumerating all available instances of SQL Server within the local network."
Schmuli.
|
|
|
|
|
To see what functions are available you might be able to use the built in function of Visual studio, but it does depend on how the dll has been built, I would try that first though because its the easiest way.
There's also depends, it allows you to see whats going on in the dll http://www.dependencywalker.com/[^]
|
|
|
|
|
Hi
I am creating a windows application, it has two Forms one is Login Form which has two textBox Control for user name and password.....
i want to display his username in the Second Form label Control.....
Please give Some idea
Thanks in advance
|
|
|
|
|
hoh sorry..
i am working in WPF .net 3.5.
i was replied in that mood. it will work there..
extremly sorry mads115..
here better u may can use that in constructors, or by giving in the properties or in the public string and all
modified on Monday, June 1, 2009 7:04 AM
|
|
|
|
|
Hi iam getting this error near label1
'WindowsApplication1.Form2.label1' is inaccessible due to its protection level'
Form2 newform = new Form2();
newform.label1.Text = this.textBox1.Text;
|
|
|
|
|
|
You will as the controls are private - which is as they should be.
Better to create your own public properties and in the setters, validate the value if neeeded and uptdate the controls from there.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hema Bairavan wrote: form2 newform = new form2();
newform.label1.text = this.textbox1;
newform.label2.text = this.textbox2;
WOW! That's really bad.
|
|
|
|
|
1. Properties
2. Parameterized constructors
Is this much hint enough?
|
|
|
|
|
I am developing program of C#,the windows are inherit from another library,such like the propty of the EnableBackgroundImage of buttons,it works well,but now I want to developing the multilanguage of the window,when I change the language of the window,some auto sources will be add to the designer.cs files,suck like "button.EnableBackgroundImage = null; " Is it the bug of the microsoft?is it because the project can not inherit propty of the EnableBackgroundImage well,and consider the EnableBackgroundImage is set nothing?
|
|
|
|
|
yuwenxiang wrote: Is it the bug of the microsoft?
I believe it is not a "bug", but done on purpose. Pictures can be dependant on the current culture, just as text.
Quoted from this[ ^] site; A magic feature of the Windows Forms designer is started when we set the Localizable property of the form from false to true : this results in the creation of an XML-based resource file for the dialog box that stores all resource strings, properties (including the location and size of Windows Forms elements), embedded pictures, and so on.
I are troll
|
|
|
|
|
I know what you said,but the picture is saved in another project,so that the property was null. 
|
|
|
|
|
I am using AT command CNMI to enable forward incoming message to computer. But how can I receive incoming message? I need an example in C#
|
|
|
|
|
AT commands for read SMS
AT+CMGL="ALL" Get the total SMSs.
AT+CMGL="REC UNREAD" Get Un-read SMS
AT+CMGL="REC READ" Get Read SMS
AT+CMGR=3 Get 3 position SMS.
Actually These commands are used to read the SMS , After Landing on your Phone/Modem. But if you want to get a alert in your application while SMS landing on your Phone/Modem, u have to write a handlers. on port receive data , and check for the specific indication of SMS Landing."
phone/modem will give a indication when SMS lands on your phone/modem.
Ex:
SM: CNMI : 3
+CMTI:”SM”,3
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Thank you Rajesh.
There is a event handler named 'DataReceived' of SerialPort object. But I don't know what will be the parameter and how to handle the parameter to receive the message.
Could you please send a sample 'DataReceived' function?
|
|
|
|
|
|
I have a simple windows form app in C# using VS2005. I have a pointer in a pictureBox which I move round the form in response to the arrow keys on the keyboard (using the KeyDown handler). The problem is I have some read-only textBoxes and when I press the arrow keys I end up with a cursor moving along the text in my textBox. How do I stop this. Also the response to the keypresses is very slow at times - I'm not sure if it is related to the textBox issue. Can anyone suggest a solution please.
|
|
|
|
|
You will need to override the ProcessCMDKey method. This way:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {
if (this.ActiveControl.Name == "textBox2" &&
(keyData == Keys.Up || keyData == Keys.Left ||
keyData == Keys.Right || keyData == Keys.Down)) {
return true;
}
else {
return base.ProcessCmdKey(ref msg, keyData);
}
}
|
|
|
|
|
Thanks for the reply. I pasted it into my form and changed the name of the textBox, but I get a NullReferenceException in the if statement. I'm not sure why!
I have added "e.Handled = true;" to my KeyDown event handler and that stops the cursor moving about and the slow response, but I still have the following problem:-
After I have opened the form, the first arrow key press seems to do nothing, the second selects all the text in one of my textBoxes and the third and subsequent presses move my pointer. How do I make all the arrow key presses just move the pointer?
|
|
|
|
|
Richard W Allen wrote: I have added "e.Handled = true;" to my KeyDown event handler
Oh yes...that alone is enough.
What are you expecting when arrow key is pressed? Focus should get to the next control instead of cursor moving through the text?
जय हिंद
|
|
|
|
|
Thanks. Its good to know I did something right.
d@nish wrote: What are you expecting when arrow key is pressed? Focus should get to the next control instead of cursor moving through the text?
I don't want to change the focus or move the cursor, I just want the arrow keys to move the pictureBox (pointer). First time and every time.
|
|
|
|
|
In Setup phase, I have a radio button page which have option read from text file.
For Ex: A Language choices with radio button in which language option is read from text file.
Please let's me know, How to customize radio button page.
Thanks so much.
|
|
|
|
|
Hi everybody,
I am developping application on Mobile Devices, using Compact FW. And I need to produce a unique string to ensure the licance managemant, preventing our application being copied and run in other mobie devices without licance password.
So I how can I get unique ID in Mobile devices ?
Or how can I get network adapter card MAC Address ? Since all device I am working on have their own embedded network card.
|
|
|
|