|
Thanks, great link!
However, something else.. using COM-objects, is that good programming practice...? I mean, this way you put some Windows-only code into the application, or am I wrong...?
|
|
|
|
|
Anonymous wrote:
I mean, this way you put some Windows-only code into the application, or am I wrong...?
Correct, but you'll have to use different methods for getting a list of files on the desktop for each operating system anyway. If you place all your OS specific stuff in a separate assembly then you can load the proper assembly at runtime.
FWIW I'm not sure how much of Windows.Forms is going to be ported; it isn't a part of the CLI specs but I believe the Mono project is going to port some of it over anyway.
James
Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978
|
|
|
|
|
Okay, now I understand. Depending on the operating system, you still have to write different code.
Thank you very much for your remarks!
Kind Regards,
Ludwig
|
|
|
|
|
What new system files are required to use C# apps on Win95 Win98 WinMe etc... or do they run normally using only the ordinary system files.
Basically is it worth using C# if it needs loads of extra libraries that have to be included in the installer
.NET or not .NET? MFC is the question......
|
|
|
|
|
The .NET Framework needs to be installed, about a 19mb download.
I don't think Win95 is supported as a .NET platform.
Michael
|
|
|
|
|
19meg!!! Does XP have this already? Is it in the Service packs for Win2K? Is it really worth moving to C#. Is it free to distribute on CD with a C# app?
.NET or not .NET? MFC is the question......
|
|
|
|
|
XP doesn't have it yet.
The last service pack for Win2k doesn't have it.
I don't know of any Microsoft applications or products that distribute it yet - apart from Visual Studio.
I would expect to see it in a service pack soon and probably in the next version of IE.
Michael
|
|
|
|
|
Hehe lets hope so. It also seems that .NET server has it already and will have it. On my beta it has 'The .NET Framework' however I have not dabbled in that realm as of yet.
.NET or not .NET? MFC is the question......
|
|
|
|
|
The latest version of the user interface library for C# is now available. It includes source code and articles for a TabControl, Docking Windows and hand built menu code. You can achieve the VS.NET IDE look and feel quickly and easily. (And its free!)
www.dotnetmagic.com
Phil Wright
phil.wright@dotnetmagic.com
|
|
|
|
|
How can I write a FTP client program, which can connect to the FTP server for uploading and downloading file? Which class(es) should I be choosen for writing this program?
Best regards,
Frankie Leung.
|
|
|
|
|
Trying to create a custom listbox control, but have run into a roadblock here. The popup list cannot be made to float as the common control's version does. Is there not some style to be applied to a window resulting in not being clipped by its container? The framework is obviously capable, looking at the menu component and the dotnet combobox, but I need to know where to look.
|
|
|
|
|
How to convert "string" to "int"?
Alexandr
|
|
|
|
|
I know several functions:
- atof - converts to double
- atoi - converts to int
- _atoi64 - converts to __int64
- atol - long
or function from Shell API
- StrToInt - you must attach SHLWAPI.LIB library to the project
I don't know if they exist in C#. Try them.
Good luck
|
|
|
|
|
I think that's not possible.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Convert.ToInt32 Method or Convert.ToInt64 Method or Convert.ToInt16
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
What about Int32.Parse("23");?? exactly the same??
|
|
|
|
|
for any conversation i use System.Convert.
Example:
string str = "555";
int i = System.Convert.ToInt32(str);
(also you can use ToInt16(), ToInt64() ...)
See System.Convert for additional Information.
Rgrds
Martin
|
|
|
|
|
If you left click on a line item in a listbox it selects the item. Clicking the right mouse button is detectable in the listbox but does not select the item. Is there a way to override this listbox behaviour and select an item with the right mouse button?
Kyle
|
|
|
|
|
override the MouseDown Event from the ListBox Control:
private void listBox_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button != MouseButtons.Right) return;
int nIndex = listBox.IndexFromPoint(new Point(e.X,e.Y));
if(nIndex != -1)
listBox.SetSelected(nIndex,true);
}
Rgrds
Martin
|
|
|
|
|
I'm creating a program that will pull information from a SQL database and map those fields onto a Word Document.
The Word Document is formatted with bookmarks so you can easily reference to the part of the document you wish to append to.
I know this is possible in VB and Delphi 6; however, I've found nothing in C#.
Has anyone experimented with this? Or do you know where I might go to find some more information?
Thanks guys,
-Chris Bryant
|
|
|
|
|
Hi All,
I am trying to find out if we can connect a C# Application to a website and view some details as in, how many sessions are open and what there SessionID's are.
Things like that.
Would this be possible?
Thanks
|
|
|
|
|
I have a DLL, this export some functions and one of them starts a new thread.
from this thread my Program recieve some userdefined messages. in C++ everything ist OK, but I have to supply the functionality of this DLL for a C# App.
And I don't know how to catch the messages from the thread....
If I look with Spy++ to the Form, it recive them, but I have no idea how to handle them....
|
|
|
|
|
To get the messages you can override the WndProc method on your Control/UserControl/Form.
protected override void WndProc( ref Message m ) {
switch(m.Msg) {
case MY_CUSTOM_MSG:
break;
default:
base.WndProc(m);
break;
}
} That should be the basic look of it.
HTH,
James
Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978
|
|
|
|
|
thank you!! now i get the messages.
|
|
|
|
|
Hi guys, simple question, how do you use resource files in C#? For example, suppose I create an icon using the editor in VS .NET and the file is named icon1.ico, how would I the go about referencing that file from my code? Currently I keep getting file not found errors (during debugging) because it seems the system checks for the file in the bin directory (I think). Also, what is the best way to set up a repository of resources for my project? For example, if I have alot of different icons that I would like to use dynamically in my app, how would I set that up?
Regards, Senkwe
Just another wannabe code junky
|
|
|
|