|
Guys, please try to remember what we learnt back at school.
A function should return only one parameter. Like Christian wisely said, returning a structure is the only "nice" way of doing it.
Everything that would disguise a function so that it can return more than one value, by using ref variable for instance, is making in fact a procedure. if so then please, make a procedure
|
|
|
|
|
I have done a c# windows application, It should be automatically adaptable for all the screen resolution like 1024x768 or 800x600 and (ect) .how to do this?
we are in illusionary life
|
|
|
|
|
Take a look at the Control.Dock and Control.Anchor properties. To start your form in maximized mode set the Form.WindowState property.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
|
Hello All
How can I UpLoad Text File from Client to Server using C# and Asp.net2?
Ala Qunaibi
Ala Qunaibi
|
|
|
|
|
|
how do i exit a function. in basic there is an axit statement , but i can'd find it in c#.
rzvme
|
|
|
|
|
try the "return;"
once you are done with your statements then it will automatically exit the function. It depends on your needs.
Dabsukol
|
|
|
|
|
|
Hai
I am basically a Microcntroller programmer but a beginner in C#.
As C# is the future( So I was told!) I somehow managed to develop a C# application which basically sends and receives data through serial port. The thing is working ok at least for my purpose.
But my problem is that almost all the systems where I have to deplay this application is using Win 2000 or Xp. No dot-net frame work.
When I try to install some dot net distribution it asks for service packs and all sorts of internet explorers and all!
Please guide me with a best solution for my application distribution.
Now i have used the publish option is in C# express edition.
If i have to include other files I think I can use some third party set up making utility.But which are the files i should include. Please advice.
My target systems running on 2000 and XP. May or may not have service packs.(they are not bothered about even windows (hi!))
set up can be larger, no problem but all in one package!
how to tackle this situation?
Thanks for reading.
Roy
|
|
|
|
|
picstudent wrote: When I try to install some dot net distribution it asks for service packs and all sorts of internet explorers and all!
Your machines should be service packed and so on, anyhow. You should regard this as a blessing.
I doubt you can make it a single MSI, however, you'll need to ship several installers.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
|
The answer is: it depends! Both XmlDocument and XmlTextReader/Writer are perfectly valid ways to read and write XML files. The reasons for choosing one or the other depend on how the application intends to use the XML files. XmlDocument allows one to add or query XML nodes at random. To do so, it has to load the entire document before it can be used and keep the document in memory. On the other hand, XmlTextReader/Writer are forward-only reader/writers. That is, they visit each node sequentially in a stream-like manner. This makes the classes very fast and light on memory, but at the cost of more limited capabilities and being somewhat more difficult to use.
I often find myself using a combination of the two in my applications: XmlDocument to read and extract data from XML documents (because it's easy and flexible) and XmlTextWriter to write XML documents (because it's easy and fast).
-Phil
|
|
|
|
|
Oh, OK, thanks!
Windows Calculator told me I will die at 28.
|
|
|
|
|
I have an .exe file that was create with C# I want to look at the source code to see how things were done and educate myself since i'm a newbie with C# and i'm still learning. Is there any program that will allow me to see the code of that .exe file?
|
|
|
|
|
using a Decompiler tools to decompiler the exe files.
xenocode fox2006 a good decompiler tools i prefer
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
|
I implemented collection of Queue type that I use to save last 10 opened/saved files... so I want to use this list to dynamically update my menu sub items under RecentlyOpenedFiles, any idea how?
|
|
|
|
|
assign event with any change in your Queue and update ur menu sub items then
|
|
|
|
|
OK but first I only know how to add things to menu in designer though I guess it's not that hard...) each should be just call to Open method with parameter file path from queue subitem represent, but how to do second part?
|
|
|
|
|
I would be OK with any solution that solve this problem... doesn't need to be queue... anything that generate this menu is fine...
|
|
|
|
|
The Menu is a class, it has a collection of items, which are also a class ( which can contain a new list of menu items ). So, you just need to insert your items into the menu, by creating them one at a time.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Have a look at the menu-related code generated by Visual Designer,
it shows you how uou can do exactly the same in your code...
Luc Pattyn
|
|
|
|
|
Hello,
how do I restrict the ComboBox control in VisualStudio so that the user can't select any value outside of the values listed in the combo box drop-down list?
Is that at all possible?
Thank you,
Michal
|
|
|
|