|
I suggest using the excellent Sharkbite IRC library on SourgeForge. It gives u a solid framework to build a GUI on.
Sorry I cant find the link now.
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
in addition, check out my irc client lib, Nebo.
|
|
|
|
|
Hi there,
I want to show all of folders (looks like Window Explorer) on the TreeView but I dont know how to do. If you know, please help me!
Thank for your reading.
Tran Hoang Chuong
|
|
|
|
|
See the source code for Carlos Perez's ExplorerTree control on CP.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I'm wondering how to have an MDI application that behaves like the newer versions of Word and Excel. I notice that they don't actually keep each document inside the main container like all of the MDI tutorials I've ever seen seem to show.
I'd like to have my app follow this more mainstream form of interface, but I haven't been able to find any resource that explains and/or show how to do this.
Can anyone point me in the right direction?
Thanks.
Bob McCormick
XebraTech
|
|
|
|
|
I wrote sth like this :
Object [] idxProp = index.ToArray();
pi.SetValue(obj, null, idxProp);
i want to set just one value of a index property using Reflection (or all if its not possible)
when i use this form, it throws :
"
An unhandled exception of type 'System.Reflection.TargetParameterCountException' occurred in mscorlib.dll
Additional information: Parameter count mismatch.
"
what am i doing wrong ??
|
|
|
|
|
Seems to me like you might need to include both the index and the new property value in the array.
Burt Harris
|
|
|
|
|
I'm tring to create a program that can read and write cab files. Unfortunatly the CabCreator class was removed from .NET after the beta and the Setup SDK doesn't appear to have the functionality that I need. Does anyone have any ideas on how to accomplish this???
Thanks!!
|
|
|
|
|
You can use the SharpZipLib[^] to create zip files. It is free and open-source.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Thanks for the reply that looks like an interesting library unfortunalty the LZW compression alorgthium is patented, and unfortunatly it is impartive that I use the CAB format.
Thanks,
John
|
|
|
|
|
The cabinet reader/writer is a C dll (cabinet.dll) provided by MS along with their CAB SDK (cab-sdk.exe).
You can find the CAB SDK here[^] for instance.
To access these functions using C#, you only need to premarshal these structures and function signatures (less than 10).
In case premarshaling is too hard a job, consider using MC++ mix mode.
|
|
|
|
|
hello,
is there any way that we can use C language code in C#?
What are the alternates of header files in C#?
and
How to convert a header file to a namespace if namespaces are the alternatives to header files?
regards
|
|
|
|
|
You can declare C functions in C# using the extern keyword along with the DllImport attribute. Once the function is declared, you just call into it. For example:
using System.Runtime.InteropServices;
<P>
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);
<P>
MessageBox (0,"API Message Box","API Demo",0);
See the following and other articles on the topic:
http://www.thecodeproject.com/csharp/c__and_api.asp
There is no need for headers in C#. You just put all your code in the .cs class. You generally wrap your code within a namespace as a way of organizing things and to avoid name conflicts with other code -- it doesn't really correspond to a header.
|
|
|
|
|
I am not using any C functions from any dll.
Actually i have a packet driver library (which is completely written in C). I want to use this library from a C# file.
I have the source code of the library, so, I have to supply header files definitions of 'structs' used in function calls and these function calls are linked statically.
Simply i want to use the library from a C# file as i use it from any other C file.
Tell me if i m unable to explain my question or some extra details are required.
regards.
|
|
|
|
|
If this library has only a few entry points, then it's worth using P/Invoke to use it from C#.
If the library has many entry points, or requires a significant amount of structure marshaling, then use MC++ instead. With MC++, you can mix managed code and native code without reexposing signatures.
|
|
|
|
|
thanks
as it came to me, i switched to visual C++ .net. I am now able to mix the unmanaged code of the library and the managed code of .net. It is working nice.
But can you give me some favour by telling that whether there is any "Network packet capture" support in .net library? Any namespace, classes etc.
|
|
|
|
|
hashimsaleem wrote:
But can you give me some favour by telling that whether there is any "Network packet capture" support in .net library?
Although the System.Net.Sockets.TcpClient wraps sockets to read/write packets, I believe this is not what you are looking for. I believe that what you need is at a lower-level, much like "Network adapter" and, at this point, there is no better substitute than the Windows DDK (plain WIN32 C code, as you may know).
|
|
|
|
|
I've tried to get an example of a simple (Drawing Background, Text, FocusRectangle) owner draw ListVIEW but couldn't get one. There are some example with the UtilityLibrary which do not work or are hopeless complicated because of overloading its possibilities.
Is there anybody who knows where I can get a working example of a C# Owner Draw ListView Control?
I would be extremly happy to have one!!! (Ein Königreich für ein Owner Draw ListView)
Any hints for WndProc would be help.
Thanks!
Stefan
|
|
|
|
|
In windows XP there is a feature "Group similar Taskbar buttons"
How I can set the icon and title for taskbar button for my application's grouped windows.
Sonork ID 100:25668
|
|
|
|
|
I have a program written in C#/VS.NET and I am trying to find out how much memory a specific instance of class is using during runtime. Does anyone know if there is a feature in the VS.NET debugger that would let me know this information? Or, do you have any ideas on how I could get an accurate estimate of it's size?
FYI: Monitoring the "Perfomance Tab" of the "Windows Task Manager" is not accurate enough for the information I am needing.
Mark Sanders
sanderssolutions.com
|
|
|
|
|
The .NET framework sdk comes with a full fledged memory/usage/load profiler. <framework SDK folder> \ tools developers guide \ samples \ profiler.
|
|
|
|
|
Hey All,
I was wondering if anyone out there is using and has suggestions for 3d party control packages. Ive seen a couple out there, like infragristics, has anyone used them?
Thanks for the suggestions,
Ryan
|
|
|
|
|
I've been using quite a lot of 3rd party controls. Here are some impressions:
- Infragistics: I've been using their ActiveX components in VB6 and they work pretty good. When we switched to C# we got their NetAdvantage Suite (ActiveX, .NET and ASP.NET) and I must say the .NET controls are pretty unconsistant in use (properties, collections, methods are not always the same between similar controls. There still are quite some bugs/weird things but I'm overall quite happy with them. They also have a great support. If you want to use these don't forget to buy the .NET-sources also, I regret not having done so.
- Janus Systems: I had all my VB6 apps based on their grid but it took them too long to move to .NET so I switched to Infragistics. Took a look at their .NET grid and it still looks pretty good.
- Xceed SmartUI.NET: just got them as a free upgrade from my Sax SmartUI.NET (which wasn't too good, I saw it as a waste of money). The new version seems more stable but I haven't had any use for them right now.
- Developer XPress XtraNavbar: Pretty nice and easy to use Outlookbar-like control with extra's.
In my applications I'm using currently MagicLibrary, Infragistics and XtraNavBar along with some specialized controls I developed my self based on the Infragistics controls.
Hopes this helps
Stefan
|
|
|
|
|
i am currently doing something like the following to a combobox:
(for int i = 0; i < 10; i++)
{
MyObject objData = MyData.GetAt(i);
this.cbMyComboBox.Items.Add(objData.strWord);
}
which adds the text to the combobox fine.. but what i really wanna do is set a data value for each item i add.. there are 'tag' values for tree controls, but i dont see anything like this for the combobox.. and if i just add the object then it displays the object type because it doesnt know what text to display..
im sure this is a common problem, just couldn't find the answer in the message boards..
thanks in advance!
still a newb.. cut me some slack :P
-dz
|
|
|
|
|
well one thing you could do is override the tostring method, and throw your own variable in there that would add some meaningful text, have you tried that?
Ryan
|
|
|
|