|
Errrmmm my components function won't have any xml codes. I wanted Form2 to handle all the xmls, and display whatever URL strings necessary, which are clickable, and on clicking it closes Form2 and Form1 runs the components function as per normal, of course with an extra code dealing with this string. The strings are meant to be URLs, and one of the things components() adds is a web browser window which I'd intend to use to navigate to the URL the Form2 string would suggest. I don't know, the logic just seems very clear cut to me I really don't intend to confuse you. And at this point, haha, I won't bother abt how nice my code looks, as long as it works and I understand everything when presentation time comes hahaha.
|
|
|
|
|
DJdC wrote:
I wanted Form2 to handle all the xmls, and display whatever URL strings necessary, which are clickable, and on clicking it closes Form2 and Form1 runs the components function as per normal, of course with an extra code dealing with this string.
So where is the issue ? Form2 returns the string selected, and Form1 uses it ? What does Form1 need to give Form2 again ?
DJdC wrote:
and one of the things components() adds is a web browser window which I'd intend to use to navigate to the URL the Form2 string would suggest.
This method adds a web browser to Form1 ? If you want a web browser in Form2, you need to add it there. Why do you need to add it using code ?
DJdC wrote:
And at this point, haha, I won't bother abt how nice my code looks, as long as it works and I understand everything when presentation time comes hahaha.
It's not about appearance, it's about good design. But sure, I can appreciate that you want to get over the initial learning curve before you worry about that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Form1 doesn't give Form2 anything, Form1 simply opens Form2 when necessary, letting them be open simultaneously. Form2 is meant to display clickable strings(I mean URLs) frm xml files, thats all. Once anything is clicked, I want to close Form2 and let components() do its job on Form1.
Yes components() adds a web browser on Form1, and no I don't need the browser on Form2, because Form1 has plenty other functions than just calling Form2.
So basically I need to know how to link forms I guess? Or at least thats what I think I need to know.
|
|
|
|
|
If Form1 has no information that Form2 needs, then you've been wasting your time all along
in Form1
Form2 dlg = new Form2();
if (dlg.ShowDialog() == DialogResult.OK)
{
// any post processing in here
}
I assume you've done this all along. If you don't need the browser in Form2, then I'm at a loss as to why you'd want to call the function in form2 ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You could pass form2 a reference to form1, and then form2 could simply call components() like it would for any other classes' method. Another approach(and possibly cleaner) would be for form2 to fire an event that form1 is registered to listen to, and then in form1's event handler it could call components().
|
|
|
|
|
i am new in the field of game programming , and i decided to use .NET as my platform and C# as my programming language and managed directx9 as my graphics library.
now i need help to find out many resources about this field and under previous considrations , if u can help me please answer me how to find a good resources.
secondly i am wondering is there any tool on earth that can generate the managed directx 9 code , so the devloper can concentrate in the bussnes logic.
thx all
|
|
|
|
|
|
|
Keep in mind that there are no commercial games written in C# for a reason. But by all means, it's as good a place to start as any.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No comercial games?
try what about?: http://arenawars.krawall.de/eng/
And the only reasons not many comecial games are written in C# is:
1) the VAST majority of games dev tallent is in C++ ...any move over to C# is going to be a slow process as a games dev's time is strongly dictated by deadlines so time out to learn C# is not easy to come by.
2) The prodution cycle for most games is longer than Managaed DX has been a viable alternative for so no wounder they're arn't many commerical games in C# about :?
There is no reason commercial games can not be made in C# with managed DX9 unless you really need to hit up as much power as is possible (that 2% you loose from using managed code) and you are able to use unmanaged code to squeeze it out of a system.... but not every game (or even, every 10th game) needs that raw power and if im not mistaken there is a 3D engine written in C# that belts along faster than its C++ coded version (cant remember the name check out gamedev.net for info).
So to the OP dont abandon C# for games devving, you will get results much faster than a simular project in C++ and it will help keep motivation up ... and no one will be able to tell any difference between your games and games written C++... accept your games will be finished long before the same thing could be coded in C++.
As a non-pro, C#'s managed nature will help you avoid many a pitfall you could stumble in C++ that could cause slowdown or performance issues... so from an amatures point of view you will probably find your games run better if written in c# than they would if you wrote them in c++ as C# will be handling a lot of the stuff that may cause problems for you.
read around, get oppinions from games dev sites, C# is as viable as C++ right now and there is no reason to be struggling with C++ when C# is sutch a cake walk to code.... Ok you wont get a professional games dev' job right now with C# right now but i saw UbiSoft advertising for .Net coders to write games development tools earlier this year, so its only a matter of time before more games dev' houses take up C#.
|
|
|
|
|
hi all
i am looking for a tool that can help mt to convert solutions that written
in VB.NET to C#.NET , and from Visual C++ to C#.NET
is there any thing on earth that can do this ?
thx
|
|
|
|
|
It's called hard work.
VB.NET > C# might be possible to automate. If you are talking about unmanaged C++ > C#, then you've just got to pick through the code line by line doing a rewrite. Im currently porting a bunch of 2d physics stuff from C++ to C# and it isnt really all that hard.
|
|
|
|
|
If you are realy into Copy&Past you can use Lutz Röders Reflector.
This tool is able to read binary Assemblies and decompile them into IL.
This IL can then be converted to C#, VB or Delphi code.
But you can only convert method by method and all comments will be lost.
For small classes this should work. For bigger projects it might be not the right choice.
/cadi
24 hours is not enough
|
|
|
|
|
Instant C# converts VB.NET projects, snippets, and asp.net pages from VB.NET to C# (free demo at www.instantcsharp.com).
David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# Converter and the Instant VB C# to VB.NET Converter
|
|
|
|
|
Hi,
I'm trying to get some text that I copy to the clipboard to stay there after my application has closed. At the moment I can paste from clipboard while my application is open, but after it closes the clipboard is empty.
Code:
**START APPLICATION**
Clipboard.SetDataObject("Sample Text");
**CLOSE APPLICATION**
|
|
|
|
|
Clipboard.SetDataObject("Sample Data", true);
// True maintains copy after appln exits.
|
|
|
|
|
Hello!
In C++ one could indent listview items very easily: lvi.iIndent = 1. Now, how can we do the same in C#?
I've read something about ListViewItem.IndentCount and ListViewItem.NumIndents properties, but my compiler (latest SharpDevelop IDE) doesn't know these members... All other things work quite nicely (lvi.ImageIndex, lvi.SubItems.etc.).
Maybe any workaround idea?
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Hi!
The .NET ListView or ListViewItem doesn't have anything like this built-in.
But, because it's merely a wrapper around the Win32 ListView control, you can achieve these effects by using P/invoke to send the corresponding LVM_* messages to the ListView.
Regards,
mav
|
|
|
|
|
Hello I'm developing Guest book For web I'm using C#.net for this project but I have problem
I'm Storing data in a xml file My web path variable is : string webpath="../omur/Ziyaretciler.xml" but returned me this error message:
Could not find a part of the
path "C:\windows\Omur\Ziyaretciler.xml".
how do I develope for this problem?
Heeellppp..
Ahmed Erarslan
MCAD,MCDBA,MCP
MCSD.NET
|
|
|
|
|
Hi every body , from day i have a problem that i can't solve , how i can pass a STRING variable by using a matlab program dll .
The document 1,2,3 ways offer just a double variable
Plz i need it ,
thx
|
|
|
|
|
Type type = Type.GetType("System.Int32");
object result = null;
//****************
result = type.GetMethod("Parse").Invoke(null,BindingFlags.Static | BindingFlags.Public,null,new object[]{"7"},null); //where is wrong???
//****************
Console.WriteLine(result.ToString());
thank you!
|
|
|
|
|
System.Int32.Parse hase more than one overload.
So you have to define which of the overloads you need.
You do so by specifying the parameters in the GetMethod of the Type .
result = type.GetMethod("Parse", new Type[]{typeof(string)}).Invoke(null,BindingFlags.Static | BindingFlags.Public,null,new object[]{"7"},null); //this is correct
/cadi
24 hours is not enough
|
|
|
|
|
thank you very much!OK
|
|
|
|
|
Hi, I've a Windows form on which i've multiple rows & column having radio buttons....At the run time i want all the radio buttons in a column to be checked by default......If anyone got idea plz help me....
E.g
Brand RadioButton RadioButton RadioButton RadioButton
Type RadioButton RadioButton RadioButton RadioButton
Category RadioButton RadioButton RadioButton RadioButton
So here i want at the run timethat all the radiobuttons in one of the column is selected by default
|
|
|
|
|
Hello all,
I have typical problem as following.
I have user control (grid contorl)developed in vc++ and compiled version is in .lib file.
Same control i want to use in c#.
As we cant call .lib file or have reference of .lib in .net project, we have to write some intermediate code /wrapper class.
Do i need to convert first .lib file into dll in vc++?
If yes the control is a class not just a group of function.Is it possible?
so how to write it.I am not a vc guy.
Is there any approch hwo to go about it?Can you step by step information.
it will be great if i get reply soon..i m really stuck here...
thanks and regards,
Urvish
|
|
|
|