| Folder Selection Dialog. (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I'd like a Folder Selection Dialog (similar to an OpenFileDialog but without the File pieces). A few years ago I achieved this functionality in C /MFC by deriving a class from the FileOpenDialog class, hiding some of the controls and adding others. (I forget the exact details). It appears that a similar approach is not possible with the OpenFileDialog because this class is Sealed. Can anyone sugge... |
|
| Detecting Mouse or Keyboard (4 replies) |
| microsoft.public.dotnet.framework.sdk |
| I need to be able to determine if a Mouse or Keyboard (or both) are connected to the PC via either a USB Hub or the PS2 ports. From a previous posting, I was shown a way (using RegisterDeviceNotification()) to detect when a USB device is connected or removed, but the technique did not provide information that identifies which type of device was connected. The DEV BROADCAST HDR structure returned i... |
|
| Does Microsoft plan to have .Net framework independent? (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hello everyone! I'm sorry if it is not a good question. But I feel difficult to choose between ..Net frame work and Java Virtual Machine. I am very interested in User Interface of .Net frame work but I really need my application to be platform independent that is already provided by java Virtual Machine. Thank for any reliable answer. Sokchea |
|
| Deserializing dynamically loaded types (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I have created a diagram building application (something like a "diet Visio") with an abstract Shape class every drawing shape have to inherit. My program has plug in support so users can create their own shapes (derived from my abstract Shape class). The plug ins are placed in a separat folder. The dll files in this folder are dynamically loaded at startup. Of course, I want my program to be able... |
|
| Timing Loops (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, I'm trying to time a for loop down to microseconds and don't know how to. Could someone please tell me how I could do that? I have the following loop: for(i 0; i 1000;i ) call to function(); I need to time this loop. Thanks Andre |
|
| File or assembly name System, or one of its dependencies, was not found. (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a lot of information, but if you need more (e.g. the code) please write michael@mblarsen.dk. The problem is this error messages (the code is build just fine; no errors): "File or assembly name System, or one of ... |
|
| Registry (5 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi! I know this is the basics but I am trying to look to see what serial ports are installed in a computer by looking at the register key HKEY LOCAL MACHINE DEVICEMAP SERIALCOM I am trying to use OpenSubKey with managed C and can not seem to get the code correct. I can get it to link but it gives me a runtime error. Can anyone give me a few lines of code that show how to get to the registry in man... |
|
| VB Type Conversion vs. Ctype (6 replies) |
| microsoft.public.dotnet.framework.sdk |
| Is there any advantage using one or the other ? |
|
| Graphics is sealed (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I have written an enhanced version of System.Drawing.Graphics.DrawString (it can draw strings rotated by an angle) and would like to derive my own improved class from System.Drawing.Graphics However, Graphics is a "sealed" Class. What is the apropriate way to establish my improved function? It seems healthier to call graphics.BetterDrawstring(string s,...) rather than calling an independent functi... |
|
| Assembly.EntryPoint.Invoke problem (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| I am really stuck here! I have written an application similar to Rocky Llokta's (sp) that loads .NET applications from a web server and executes them. They are typically Windows.Forms apps. This code works fine as long as Main is declared Main () not Main (string [] args) Assembly a Assembly.LoadFrom (url); a.EntryPoint.Invoke (null, null); ***** *************************** Now I would like to pas... |
|
| Flicker with periodic refresh of details ListView (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| i periodically (250ms), refresh all the sub items in a ListView that is set to Report view. Unfortuanatly, there is huge amounts of flicker. i've tried using the ListView.BeginUpdate/EndUpdate. i've tried (instead of Clear the subitems, and then add them one by one) using .AddRange, too have it internally clear all the sub items and add them all at once. i've also seen the ControlStyle property, w... |
|
| Request for new method: System.IO.Stream.CopyFrom (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| It's always nice to be able to copy the contents of some stream into another: Stream.CopyFrom Method Copies a specified number of bytes from one stream to another. function CopyFrom(Source: Stream; Count: Longint): Longint; Description Use CopyFrom to copy data to the stream from a different stream. Using CopyFrom eliminates the need for the user to create, read into, write from, and free a buffer... |
|
| Limitation in MonthName function (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Can anyone explain please how to get the proper names for months? The only function I can find is not adequate: Namespace: Microsoft.VisualBasic Function: MonthName(month as integer, [abbreviate as boolean]) as string Note MonthName uses the current calendar setting from the CurrentCulture property of the CultureInfo class in the System.Globalization namespace. The default CurrentCulture values ar... |
|
| API calls in VB.Net (4 replies) |
| microsoft.public.dotnet.framework.sdk |
| Tried the VB6 code used many times for WNetGetUser and get error 487, invalid address. Standard declare statement is aliased to ASCII (byval string, byval string, byval long) as long. Dim Buffer space(100) Dim lenBuffer as long Ret wnetgetuser("", Buffer, lenBuffer). Tried FixedLengthString for Buffer. Tried separate variable set to "" and also vbStringNull for 1st parameter. Is there an easy expl... |
|
| VB.Net Socket Slows Down Gradually (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi everyone. I am writing a Flash/VB.net socket program that essentially acts as an echo server. I used the Microsoft example for the base code, and created a client object that holds the socket, and handles incoming data. Everything runs well, until the Flash begins sending data very quickly. What I notice is that the data seems to "back up", and can take maybe 15 seconds to "catch up". Is there ... |
|
| AppDomain.Execute vs. Process.Start (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Anybody can provide some insights in comparing AppDomain.ExecuteAssembly vs. Process.Start? It would be amazing, if we can somehow combine the facility in the two world. Say, I can start an assembly in AppDomain, and wait for it to exit (Process.WaitForExit()), then get some error message by AppDomain.GetData(). Thanks, Guogang |
|
| KeyDown event (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| I'm trying to handle a key event in a C# program. It appear that not all key event go through OnKeyDown/Pressed/Up. for example the arrows keys generate only OnKeyUp event and PrintScreen no event at all. Eg the following code doesn't work, it works only with KeyUp event: private void Form1 KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { switch(e.KeyCode.ToString()) { case "Down": vF... |
|
| Problem with an "System.Data.SqlClient.SqlException" (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I've got a problem and I hope if anyone could advice or help me on this issue?... Thanks Nuno Event Type: Error Event Source: Utilities Event Category: None Event ID: 0 Date: 18 06 2003 Time: 10:13:33 User: N/A Computer: DGRNFMKQITIJ01 Description: DBHelper.ExecuteDBNonQuery(), Erro: System.Data.SqlClient.SqlException: Invalid column name 'codAreaFunc'. Invalid column name 'codPedido'. Invalid col... |
|
| SDK Fixing Windows Installer (5 replies) |
| microsoft.public.dotnet.framework.sdk |
| I am told the SDK can be used to modify a windows installer. I need to know in a step by step fashion how to do this. I dont even know where to look to find this install editor....I believe I have every SDK available. Apparently there is a bug that prevents the installer from actually uninstalling the previous version of software....Below is the message I posted to dotnet.langauges.vb and the resp... |
|
| using IRDA (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, I want to create an irDA server application on the pc (using the standard ..net framework) to communicate with a pocket PC application (created with the compact framework). Whilst the compact framework has a multitude of IrDA related classes, I can't find anything or any documentation on how to create an irda server on the standard framework. I started to sub class the EndPoint class to make m... |
|
| daylightSavingTime with .NET ? (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| hello to everybody.. how do I get to know the DaylightSavingTime of a specific country ? My problem is this: I have an UTC date and I need to translate it in a local time of a random country, the only thing I know is the country name or code, so I need to know the TimeZone of that country and the DaylightSavingTime that country uses. How can I do that ? Thanks in advance.. Spa. |
|
| Add Trace Listener through Application Configuration file doesn't work (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I created a CustomEventLogTraceListener class, sign it and deploy it into GAC. But I cannot use the configuration to add it to the TraceListener collection. Here is the configuration information: system.diagnostics switches add name "Level" value "3" / /switches trace autoflush "false" indentsize "4" listeners add name "Custom Event Log" type "MyNameSpace.CustomEventLogTraceListener, 2.0.0.1, Neut... |
|
| WebRequest usage questions (6 replies) |
| microsoft.public.dotnet.framework.sdk |
| My experience in accessing the internet previously came from IWinHttpRequest, now in porting code over to WebRequest, i have a few questions. 1. Is it expected that we always create a fresh HttpWebRequest object each time we want to access a URL? i cannot modify the url for the RequestObject once it's created. Instead i must use WebRequest.Create(URI). Isn't this kinda wasteful, destroying and fre... |
|
| Item Property not available in ArrayList (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi I just started using Visual Studio.Net Academic Edition. I want to use an ArrayList, so created an Instance of it, but the instance doesn't have the Item property. In every documentation I found the item property, but the pull down menu when typing my ArrayList. does not show the item property. So why is it not working? Thanks for your help sme |
|
| C# memory problem: no end for our problem ? (12 replies) |
| microsoft.public.dotnet.framework.sdk |
| Dear Friends, PROBLEM SUMMARY: A C# .NET based application at our end has memory leak problem. Application uses COM inter op to take the services of an ATL ActiveX control. The leak is not being detected. The ATL ActiveX is free from leaks as shown by BoundsChecker 7.0 run with application and ActiveX. But the C# allocations are not probably getting freed. Team suspects this to be the failure of C... |
|