|
OK, here is the full story:
execute
string[] args=Environment.GetCommandLineArgs();
and you will get a string array with at least 1 element.
Ignore args[0], it is the path of the exe itself (with the vshost remark).
If you started without anything special, there wont be any more args.
If you somehow specify a command line with real arguments, then the array args will hold
more elements, they each represent a real argument, such as
file paths entered thanks to the "%1", but it could be other things, e.g.
when you start from inside a DOS console, or you use the Visual textbox that lets
you specify command line arguments. So you may need your own command line conventions,
maybe you want to support switches starting with a slash and/or starting with a minus, etc.
This should get you going...
Luc Pattyn
|
|
|
|
|
Thanks for all the help Christian Graus and Luc Pattyn. I really apreaciate it!
|
|
|
|
|
I have got a software package from company with some .dll files in bin folder of the software.
How can I view those .dll files in Visual Studio editor? If someone can help me that would be great.
Haseeb
|
|
|
|
|
helpfulguy wrote: How can I view those .dll files in Visual Studio editor?
Drag and drop the DLL onto the Visual Studio window. However, you won't get to see much. Just some version information.
A much better tool is Lutz Roeder's Reflector[^]. It will take a .NET dll and reverse engineer it so you can see something that looks similar to the original code.
|
|
|
|
|
Thanks man!!!!
also can I ask one more thing:
what book do you recommend to learn C# 100% and how much time do I need to master it?
Haseeb;)
|
|
|
|
|
helpfulguy wrote: what book do you recommend to learn C# 100% and how much time do I need to master it?
If by C# you include the .NET Framework then no book covers it 100%.
It also depends on what you mean by "master" it. I've been writing C# for 5+ years now and I've not got 100% knowledge. However, I've got the next best thing: I know how to looks stuff up on MSDN and how to use an internet search engine.
|
|
|
|
|
You are right even I could not master any software 100%.
what I meant by that, was I am stuck with my thesis work simulation. I have provided with object codes and .dll files from company to which I am working. And they are providing me constant support.
I feel I should not ask small doubts to them and I want to learn by myself. I have MSDN and do you think that will be enough? in that case I will keep looking into that material.
Thank you;)
Haseeb
|
|
|
|
|
helpfulguy wrote: I feel I should not ask small doubts to them and I want to learn by myself.
Okay, just be careful here and learn when your questions relate to the .NET framework (in which case you can ask here) or other bits of software they are providing (in which case you should read their documentation* and ask them questions).
It is okay to want to learn by yourself, but if you are part of a team then you have a most valuable information resource right beside you. Don't be afraid to ask questions.
* If they provide you with any documentation at all
|
|
|
|
|
Hi
I am having trouble with a project I am working on. I started developing it in Studio.Net 2003 but I am now having to migrate it to 2005. I have a webpage that inherits from another class that inherits from System.Web.UI.Page.
In 2003 everything was fine - I started a new project in 2005 and added in the pages and classes i needed. I then try to build it and my webpage shows the error are you missing a using or assembly reference. The namespaces are from the classes my page inherits from and they are part of the project.
I have built the project without the page (just the classes) and it built fine but the page just cannot see the namespace.
I have also tried to add a reference but there is no reference to add in the project directory.
Any ideas where i am going wrong - I am sure it is something simple but any help would be much appreciated.
Thanks
Dan
|
|
|
|
|
You have a using statement for the namespace ? Or you scope it directly ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have using Flyers.ParentPages at the top of my page
Then in a folder in the project named ParentPages and in it i have my parent pages which are like this
namespace Flyers.ParentPages
{
class here
}
Thanks
Dan
|
|
|
|
|
Some body please help me.I want to create DLL file in .NET 2005(Application).How can i do it ?.
Please intro me
Virus@comscI
|
|
|
|
|
just create a new project that creates a dll
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank very much
Virus@comscI
|
|
|
|
|
Hi!
You can create a DLL in VS.net 05 by simply creating a new project then choose the 'Class Library' project.
Then, you can now code your functions or sub in this library.
|
|
|
|
|
Thank you very much
Virus@comscI
|
|
|
|
|
I have a windows forms project, in which I need tooltips to display extra information. So, I want tooltips can be displayed as long as the mouse hovered over the control. How can I do that?
Thanks
|
|
|
|
|
I think your only opportunity is to register to the MouseEnter and MouseLeave event of the control and inside the event handlers call the ToolTip.Show or ToolTip.Hide method, respectively.
"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
|
|
|
|
|
Hi,
I have done some custom tooltip stuff (inspired by some CodeProject articles),
with a lot of SendMessage, but I am not aware of any TTM_xxx message to specify the ON time,
so mine too disappear after some 5 seconds.
Luc Pattyn
|
|
|
|
|
Coders... I have assembled a basic TreeView with several nodes. When I add icons using the ImageList class, the icons are not displaying correctly. It appears as if the icons are not transparent yet when used in the Tool Bar or Menu Bar they appear correctly. They look all fuzzy and/or blotchy no matter what size or depth the icon is that is applied.
Thoughts or ideas?
Ken Soukup
kcsoukup@vigorousprogramming.com
"Defender of diseased code!"
|
|
|
|
|
Have you set the ImageList.ColorDepth property to ColorDepth.Depth32Bit ? Also, are the images the same size as the ImageList.ImageSize property?
|
|
|
|
|
Thanks for the info, I re-reviewed the settings and then like a ton of bricks it hit me... I was trying to use 32x32 and 24x24 icons. When I got some 16x16 icons they worked perfect... brain process overflow, should have caught that right away.
Code On...
|
|
|
|
|
hi ,
i have C# windows app on Visual studio 2005 team system
I have a connection string stored as application setting in Settings.settings file and i am trying to access it
using Properties.Settings.Default but
Properties keyword itself is not being recognized and i am getting a debug error
Error :: The type or namespace name 'Properties' could not be found (are you missing a using directive or an assembly reference?)
Any help is appreciated
Yojimbo
yojimbo
|
|
|
|
|
add a using statement at the top of your program.
using project.Properties;
Thanks,
Ware
|
|
|
|
|
Hi, I have a loop that is populating label controls from a Datatable. If I simple bind the datarow to the labels' Text property, when I update the Datatable I expected the changes to be reflected in the label. This is true if I bind the the table directly.
...<br />
templabel.DataBindings.Add("Text", dt.Rows[i], "state");<br />
...
...<br />
templabel.DataBindings.Add("Text", dt, "state");<br />
...
Thanks!
|
|
|
|