|
Hello,
I am beginer in C# programming..
When I add button on the form, and run the project- form doesn't change at all (the button doesn't exist on form). I put Visible= true in property for that button, but it seems it doesn't work..
What is the problem, and how can I solve it?
|
|
|
|
|
jaffa wrote: What is the problem, and how can I solve it?
I don't know. You've not explained HOW you are adding the button.
|
|
|
|
|
I just dragged and dropped on the form, and set Visible= true..
When I debug and entered into the InitialComponent method, there are code for that button
(....this.btnSend = new System.Windows.Forms.Button()...)
|
|
|
|
|
Is it in a container that is not visible, such as a panel or groupbox?
|
|
|
|
|
No, it isn't in any container..
|
|
|
|
|
You are using form.Controls.Add(...); right? Because if not, then thats the problem.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I use this.Controls.Add(this.btnSend) in InitialComponent method..
|
|
|
|
|
If you're manually editing the InitialiseComponent method, then any changes will be lost when you use the Form Designer
|
|
|
|
|
please explain in detail what happen when we add assembly reference from visual studio IDE. what happen internally please explain in detail.
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: please explain in detail what happen when we add assembly reference from visual studio IDE. what happen internally please explain in detail.
Some snippet of XML is added to the project file that tells it about the assembly.
An item is added to the tree view that represents the solution to show that the reference has been added to some project. You'll see this if you expand the appropriate references section.
I'm sure other things happen at the point of addition in the IDE, but I really don't see how any of this is relevent to anything.
|
|
|
|
|
I have 3 columns in a ListView,when we doubleclick on the Listview selected row, I always wants to get the Value of first column,If clicked in anyother place outside the ListView, it should not return anyvalue.
How is this possible?
|
|
|
|
|
Hi guys i was wondering if there is a way i could open a command prompt in a windows form and send it parameters?
Phoenix
|
|
|
|
|
namespace: System.Diagnostics
Process.Start
and
ProcessInfo
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
cmd /k
I have no idea why you would want to send parameters. Do you mean environmental variables maybe?
|
|
|
|
|
|
Hey thanx for the speedy replies guys. i'll check out all suggestions and let you know how it goes.
Basically what i want to do is run some oracle procedures, functions etc. from the command line. But what to make it more attractive.
Phoenix
|
|
|
|
|
I have managed to add a Web Reference to my project (VS 2008), however the java web service is expecting a header like this:-
<soap:Header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password Type="wsse:PasswordText">password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
The code I am using to call a method on the java web service looks something like this:-
MyProject.userService service = new MySolution.MyProject.userService();
ICredentials credentials = new NetworkCredential("myusername", "mypassword");
service.Credentials = credentials;
long id = 298;
service.doStuff(id);
Not surprisingly the last line currently gives a SoapHeaderException with the message 'The Request must include an authentication token'
How do I go about setting the Soap Header?
thks
Simon
|
|
|
|
|
Simon Lime wrote: How do I go about setting the Soap Header?
Did you bother reading MSDN about the SoapHeader class? There is a good example there.
|
|
|
|
|
|
ooo
You will have to tinker then! Create a dummy webservice that exposes the same structure, and use that to model your client on.
Good luck
|
|
|
|
|
Thanks, that sounds like a plan!
Am v new to c# (in case you hadn't guessed), think I've got my work cut out!
|
|
|
|
|
-derive a class from the SoapHeader class
-create members that map to the xml elements in the header
-instantiate the new class inside your Web Service proxy class
-use the attribute [SoapHeader] on desired web method (of the proxy class)
You'll have to make a lot of tinkering until you will get that header. Use a network sniffer to capture the raw SOAP message and analyze it.
Look for examples on the net.
Read this article:
http://www.codeproject.com/KB/cpp/authforwebservices.aspx[^]
|
|
|
|
|
Thanks for the tip.
All I have done to create my Web Service proxy class is to add a Web Reference. I guess I need to extend my proxy class somehow so that I can specify a SoapHeader attribute.
|
|
|
|
|
|
hi Everybody,
I am new to SIP and C#. Now i attempting to create video conferencing Using SIP and C#.
But i dont know how to create SIP server and how to stream video .
Could you please tell me how to do that?
or
Give me some links about video conferencing
sorry for my poor english
Thank you ,
Senthil.P
|
|
|
|