|
Make the second form a member variable. As it's obvioulsy modeless, you should do that anyhow. Check if it's not null and visible before doing anything else in your click handler.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi, can you elaborate on your answer? A sample code perhaps?
|
|
|
|
|
I need to create a XML document from a schema dynamically without using any tool (XSD.exe). Kindly help.
|
|
|
|
|
Yogesh Choudhary wrote: without using any tool (XSD.exe).
In other words, you want to do it by hand ?
The thing to remember is, a schema defines more than one layout, how do you choose which of hte options a schema gives, you will follow ? Do you include all optional nodes? Nodes that can appear many times, how many of those do you put in ?
And, a schema gives you no idea of what is valid data to put inside the nodes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Well you can say that. My schema will remain the same but nodes can change so i need to that dynamically. What I have thought of is to convert schema to dataset and from that to XML document. Is this ok? Do you have any code snippet for this.
|
|
|
|
|
I don't have any snippets. Why do you need to do this ? A schema is for validating XML, not vice versa. It is of value only when the XML comes from somewhere else and you want to make sure it's valid.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I need to enter the values in that schema with the nodes and get an xml from that.
|
|
|
|
|
I understand what you want to do. I was just saying, why do you need to create dummy XML ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
YOu tell me what should i do in this type of scenario
|
|
|
|
|
I don't know what the scenario is. I asked you why you need dummy XML files to match an XSD, you didn't answer.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes I need a dummy XML from the XSD file
|
|
|
|
|
This conversation will never stop until you think about the questions and answer it.
P.S.:Reading this Thread amuses me! So goon if you whant!
|
|
|
|
|
The reason I keep asking why is, so I can perhaps make an alternative suggestion. Not sure of the reason why you won't tell me.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am also in need to create xml document from schema. In my application the xsd files vary dynamically according to the user input. So i wish to create sample xml document using the current selected xsd file. Is there any way to do it?
Sumathi
|
|
|
|
|
Hello gurus,
I can currently detect if MS Exchange is running or not, and I wish to know how is it possible to detect if Exchange has circular logs or not in C#.
Can anybody tell me how can I check that please???
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Dear all,
i made a windows application which has a datagridview control,
i filled these datagridview control 4 a table in SQL 2005 server,
i have a column on that table which have some unicode data, how can i convert these data to be able to fill it in its data.
Thanks alot
Hamody
|
|
|
|
|
Hi
I have a web-service which is created in VC++ 8, I only have the .wsdl file of that web-service along with some .dll files. For my local pc, i did access the web-service successfully by creating the virtual directory. But when i try to access that web-service from a different pc on the network, i can not access it. I get the connection time-out error, or the page can not be displayed error.
I also shared the folder in which web-service is residing but still this solution couldn't solve my problem.
Can anybody suggest any solution to access that web-service???
Regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Hello
I want to verify a digital signature which is signed compatible with PPKCS#1 version 2(pss). As far as I have found in Microsoft .NET 2003 (.NET framework 1.1) there are only classes for version 1.5 and I haven't found anything about version 2 in that version. Am I right or not? Does .NET 2005 (.NET framework 2) support this one? If not, could you please help me with what I should do?
Thanks in advance.
|
|
|
|
|
How to pass a file name as command line argument in main function?
|
|
|
|
|
If you run your program from the console and type in the filename as in
myprog.exe myfile.xt
it will be passed in
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i am NOT running it from console. i have to run it in windows mode. A sample code would help me better.Could u please?
|
|
|
|
|
There is no code to pass the filename, it has to be passed as a parameter. I think it's the same for windows apps. The string collection passed into your static void main contains the arguments. To pass it in, it needs to be an argument when the program is run.
Or do you mean something else ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i am trying and hope i will get it soon. And will get back to u if i need...
|
|
|
|
|
Will this get value dashboardid from table into variable 'str'?
int str = "select dashboardid from dashboardlogin where userid=101";
cmd.CommandText = str;
cmd.CommandType = CommandType.Text;
cmd.Connection = conn;
cmd.ExecuteNonQuery();
dashboardid is 'int' type in database.
but i have error in first line if i use the above code:
Cannot implicitly convert type 'string' to 'int'.
Do i need to add any other code also for getting its data into variable 'str'?
M new to c#,just learnt connecting database,a student doing project in c#.
plz reply
thank you.
nekshan.
|
|
|
|
|
I recommend giving up on windows forms and databases, and reading a beginners book on C#. Where did you find this code ? If you can't debug it, you're just going to have more and more trouble if you don't take my advice.
Nekshan wrote: int str
str is of type int.
Nekshan wrote: "select dashboardid from dashboardlogin where userid=101";
this is a string
Nekshan wrote: Cannot implicitly convert type 'string' to 'int'.
That is what the error is telling you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|