|
What do you mean with thousands? Even on a smart device a few thousand items should be no problem. If you have really many thousand (or million) items the DataGrid isnt probably the best choice for you (because it always holds the whole data - not only what is shown). Have a look at http://www.devage.com/SourceGrid/SourceGrid2_EN.html. There youll find a free grid with a virtual mode (which means that only the data which is displayed is hold in memory) which is also available for the compact framework.
For reading your data I cant give you any hints because that depends on how your data is stored (DB, XML, ..)
|
|
|
|
|
The .NET Framework 1.1 install fails when regsvcs.exe attempts to register System.EnterpriseServices.dll.
it will install on Windows NT with Pentium 3 processor, but not on Windows NT with Pentium 4 processor.
The necessary prerequisites are installed - ie SP6a and IE6 SP1.
thank you
|
|
|
|
|
|
Hi all, I am a little confused by the static function GetType(string) of Type.
if I pass in "System.Int32", it will return a type, but if I pass in "System.Windows.Forms.Button", it will return null, but if I pass in "System.Windows.Forms.Button, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
it works a again.
The document didn't mention I must supply a strong name. Is there anyway to make it work with name like "System.Windows.Forms.Button"?
Here is a small test code
static void Main(string[] args)
{
Test("System.Int32");
Test("Int32");
Test("System.Windows.Forms.Button");
Test(typeof(System.Windows.Forms.Button).AssemblyQualifiedName);
Test(typeof(System.Windows.Forms.Button).FullName);
}
static void Test(string s)
{
Console.WriteLine("typename : {0}",s);
Type t = Type.GetType(s);
if(t!=null)
{
Console.WriteLine("GetType succeeded");
Console.WriteLine("Fullname : {0}",t.FullName);
Console.WriteLine("AssemblyQualifiedName : {0}",t.AssemblyQualifiedName);
}
else
{
Console.WriteLine("GetType failed");
}
Console.WriteLine();
}
Thx!
|
|
|
|
|
I would have thought it also works with normal names. There is another way to get a type. If you already have the adequate assembly object you could use:
<br />
System.Reflecten.Assembly a = System.Reflecten.Assembly.GetAssembly(typeof(Label));<br />
Type t = a.GetType("System.Windows.Forms.Button");<br />
|
|
|
|
|
|
I get the following error when i run my test.exe
Any idea why I get this error
'JIT Debugging component registration is incorrect.
Please repair the installation of the most recent version of Visual Studio
.NET or Remote Debugging components.
Alternatively, execute the following command as an Administrator to
manually repair the JIT Debugging component registration: "C:\Program
Files\Common Files\Microsoft Shared\VS7Debug\vs7jit.exe" /RegServer.'
Thanks
Anu
|
|
|
|
|
I am creating an instance of class at runtime from assembly through reflection.I then Serialize the class(including the delegates) and send it to remote machine from where I deserialize the received bytes.I can get an Exception i.e. its not deserialized in short!
However when I perform this whole mechanism without including Delegates... it works and the result is exactly what i want.
Can somebody help me on this ?
Thanks in Advance!
|
|
|
|
|
Wll Im not exactly sure but here are my thoughts:
A delegate is some kind of pointer to a specific function. If your serialize an object with a delegate to anothers object function the reference to this object will be missing in the other context where you try to deserialize it.
The question is what you think how those delegates should behave on the remote location. Should invoking these delegates invoke functions on the original machine? If yes I think you are in trouble (I dont think that will work with the default remoting mechanisms in .NET). If they are not needed just mark them with the appropriate attribute (dont know the exact name) and their values will be left null.
|
|
|
|
|
Guten Morgen Robert!!!
Wie gehts' :P .... well it means i have to send my dll to remote machine ... is there no other way u can tell me ??? ..... and 1 thing more u talked abt default remoting mechanism ... then what have i to do in this regard so it works ??? ..... Looking forward for ur reply
Auf Weidersehen!
|
|
|
|
|
If even one of the targets of your delegate are not serializable the entire serialization will fail.
Delegates can be serialized as long as the methods they point to are contained within classes that are serializable too. This way the type information of the classes and methods required is still accessible upon deserialization. As long as this data is available the correct class type can be located, instantiated, and then finally have the correct method called.
Make sure your client machine also has access to the metadata of your remoted object (including the metadata of the delegate targets). If any of this metadata is not available, the deserialization will fail.
This space for rent!
My Blog
|
|
|
|
|
Hello,
I am using the generic TreeView Control from .Net 2002.
I want to have the root nodes of the control to have a bold font and I thought this could be easily done by setting the NodeFont attribute of the node.
However, when I do this the font is indeed bold but it seems that the control does not resize the text box the node text is drawn in and the text gets clipped (I assume becase the new bold font is wider than the previously assigned text which isn't bold by default).
Does anybody know what I can do to fix this.
Sample of code below:
TreeView treeView = new TreeView();
...
TreeNode tn = new TreeNode("Test");
tn.NodeFont = new Font(treeView.Font, FontStyle.Bold);
...
Thank you in advance,
Eric
|
|
|
|
|
I am using Trace in order to log information about the behavior of a web
application. In web.config I have defined my Application Listener as
following:
<trace autoflush="true" indentsize="4"> <listeners> <add name="AppListener"
type="System.Diagnostics.TextWriterTraceListener"
initializedata="d:\temp\activity.log">
<remove type="System.Diagnostics.DefaultTraceListener">
As you can see all activity is logged in "d:\temp\activity.log". Is there a
way to make this variable, that is changing by date automatically, such as:
activity20041201.log,
activity20041202.log,
activity20041203.log etc.
Thank you for your time
Spiros Prantalos
Miami the place to be!!
|
|
|
|
|
I dont think this is possible via the .config. But you could configure the tracing from your own code, e.g.:
System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener("activity" + DateTime.Now.ToShortDateString() + ".log"));
|
|
|
|
|
I have a question regarding Visual Studio 2003 .net. Does it support the compact .NET framework, and if it does, how do i enable it. And finally, which project type do i have to use.
regards zagzagzag
|
|
|
|
|
Yes it does. You dont have to enable it seperatly. I thin kwith the default installation options everything you need is installed.
The project you have to create is called "Application for smart devices" (or something similar - Im using the german version). It has a symbol for a handy and a pokect pc nearby.
I will let you select for which type of smart device you want to create the project and will even show you the appropiate emulator when you start the project in the debugger. It is even possible to debug the application on a connected pocket pc.
|
|
|
|
|
Okay.. thanks for the reply.!
i have found the project template!
Greetings...
And a happy newyear!
|
|
|
|
|
hi,
The article on "Exposing .NET component to a COM client" was useful to me.
But still I have some queries.
I in a situation where I am constrained to expose only certain predefined interfaces to the COM Client.The interfaces that I am supposed to expose to the client are defined by a third party through an IDL file.Is it possible for me to implement those interfaces using .NET frame work and expose my .NET components to the client?
I'll be happy if u give a quick reply.
THanks,
Harish
harishmurali
|
|
|
|
|
Hi!
Where can I get the Microsoft Windows .NET DDK?
Thanks!
|
|
|
|
|
How can i run a process in background in .net framework?
Is there any way to assure that ur exe gets closed last when system is shut down?
Does "Running process in background" solve this problem?
|
|
|
|
|
|
I am a MSMQ novice, start reading about it a couple of weeks back and got a little confused on what is the best way of using it in my scenario, looking for suggestions.
I have a server application that send/recieve messages from/to different client applications. Each client has a certain type. During the provisioning phase server gets the knowledge of what type of message will be routed to what type of clients. For example message type A coming from client of type B will need to be routed to clients of type C whereas type D message will have to be routed to clients of type E. Currently this messaging is done via a common database but for the next Gen solution we are considering to take advantage of Microsoft messaging APIs. Here is what I have in mind and related questions.
The server application will have two queues, one for incoming messages and other for outgoing message. Clients can just send their messages on the incoming queue. Server processes the message coming in incoming queue and publishes them on the outgoing queue. The clients will keep polling for the outgoing queue on the server looking for any messages of their interest (polling is probably not a very good idea though). If they find a message appropriate for them, they will process it and do whatever needed. In this scenario seems to me that we will not have to have MSMQ component installed on the client machines (which might be useful for some of my needs). Client apps can access the queues and send/receive messages via System.Messaging API. In some cases these client app will be running on laptops that may not have connectivity all the time. So for these scenarios seems to me that may be I should consider MSMQ independent client that does require to have MSMQ installed on the client machine. But I am little confused how does this mode works. Will client applications be sending/receiving message to the local queue? If this is the case then how does the transfer of messages between local queue and queue on the server works? Will I have to write another application to do this?
Thanks in advance for you guys help.
|
|
|
|
|
I am trying pass a .NET function pointer to a COM component so the COM component can call the function as a callback method. I am using the Marshal.GetFunctionPointerForDelegate method to get the pointer but am having trouble declaring the COM method in my IDL file. Here is my C# code:
<code>
// Create delegate
RcvDataDelegate pd = new RcvDataDelegate(RcvData);
// Get function pointer that can be passed to COM component
IntPtr fpCallback = Marshal.GetFunctionPointerForDelegate(pd);
// Register function with DataManager COM component for callback
m_DataManager.RegisterSendDataDelegate(fpCallback);
</code>
IDL:
<code>
[id(7), helpstring("method Send Data Callback")] HRESULT RegisterSendDataDelegate(
[in] IUnknown* pSendDataDelegate);
</code>
The documentation says to declare the function pointer as void * but the MIDL compiler doesn't accept that.
|
|
|
|
|
Hi.
I need to do the following:
Attach to aspnet process immidiately after it is created (and before it does anything), and inject a DLL into the process.
The DLL uses hooks for memory allocations, and so - HAS to be activated before aspnet allocates any memory.
Does anyone have an idea how this can be done?
injecting the DLL is no problem, but i need to do that exactly after the process has been created.
Thanks.
|
|
|
|
|
Can any one here please help me to know how to write Plugins for Internet Explorer using .NET.
|
|
|
|