microsoft.public.dotnet.general Archive - November 2001
Post a message to this list
Messages
Page: 123456
UserControls and Events (2 replies)
microsoft.public.dotnet.general
Hi, I've got a Text Box on a User Control, double click and you can add the TextBox1 TextChanged, add the following: TextBox1.Text "Changed"; When you reference the User Control from a WebForm it will not fire the event back. If you do the same but not on a User Control it fires the event back correctly. Any got any ideas? Kind Regards, Chris Bond
Caller type of a method (4 replies)
microsoft.public.dotnet.general
Hi ! I'd like to know if it's possible to know, inside the body of a method, the type of the caller object. Can I do it with Reflection ? Thanks, Dot Net Gurueo
Visibility of Shared Variable (3 replies)
microsoft.public.dotnet.general
In a standard VB6/ASP application, we could make our DLLs run in process or completely seperated from the ASP framework. I have been assuming (falsely I think) that the conecpt of processes was also ther in .NET. I came to this conclusion when I was looking at two insatnces of my IE6 that where looking at the same page. I saw the same information in those two browsers , and that info was coming fr...
Can't see the console output (9 replies)
microsoft.public.dotnet.general
When i run any sytem.console... commands, i don't see the output. In interdev i've opened the "command window " and i've opened a Win2k cmd.exe window, but neither of these shows up, and i've looked in every other interdev window i can find (output, debug, etc) but i dont see it. What i'm i doing wrong? BTW, I'm running Beta2 SP2. Brent
Draw selection rectangle (4 replies)
microsoft.public.dotnet.general
I want to draw a dynamic rectangle on a picturebox that has an image. The rect starts at the mouse down point and changes in size with the mouse move, like a selection window. I am doing this: private void picMain MouseDown(object sender, MouseEventArgs e) { startX e.X ;startY e.Y; } private void picMain MouseMove(object sender, MouseEventArgs e) { Graphics g Graphics.FromHwnd(picMain.Handle); Pen...
Equivalent of ObjPtr()? (2 replies)
microsoft.public.dotnet.general
When I was a VB6.0 guy, I could use the "super secret" ObjPtr() function to get an ID that uniquely identified a COM object. This was helpful for debugging situations where I THOUGHT two variables referred to the same object instance, but actually didn't. Is there a .NET equivalent? I have a case where two variables are pointing to an object, and it should be the SAME object, but it ain't. Its two...
current assembly's version? (4 replies)
microsoft.public.dotnet.general
I want to get the version of the current executing assembly. There is no way to do this without getting the attribute collection? XIII
ERROR RC1: ......must be placed inside a form tag with runat=server? (2 replies)
microsoft.public.dotnet.general
I am now getting this error with RC1 ERROR MESSAGE Control 'SQLListbox' of type 'ListBox' must be placed inside a form tag with runat server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Control 'SQLLis...
workaround for lack of typedef? (2 replies)
microsoft.public.dotnet.general
Is there any workaround for lack of typedef in C#. I'm wrapping some legacy C code, and I can treat all the pointers to my structures as "void *" (in the C api they have nice names type def'ed to void * to hide the details of the structs from the caller) but this creates a type safety and readability nightmare, which typedef would alleviate. Consider the following example: ////////////////////////...
UserName with VB.net (2 replies)
microsoft.public.dotnet.general
Is there a non API way to get the UserName in VB.net using Sytem.Net or some other NameSpace? Thanks!
Assembly.LoadFrom("http.../my.dll") and OFFLINE execution (3 replies)
microsoft.public.dotnet.general
Hi all, I have tried the dynamic downloading of a dll from Internet and execution client side and I think it is great. But a question is bothering me: I can Assembly.LoadFrom Internet only if I am online. .NET automatically downloads the dll to the download cache and gets the requested class from it. Can I load the class from the dll in the download cache after breaking the Internet connection, i....
getting system colors (4 replies)
microsoft.public.dotnet.general
I am trying to make available (in a list box) all the known system colors for user selection on a form. I am trying the following: System.Drawing.KnownColor mike new System.Drawing.KnownColor(); foreach (Color myColor in mike ) { } However I get a compiler error: error CS1579: foreach statement cannot operate on variables of type 'System.Drawing.KnownColor' because 'System.Drawing.KnownColor' does...
Application.Exit() stops working in RC1! (2 replies)
microsoft.public.dotnet.general
For some reason, my Application.Exit() code, that used to work fine in Beta 2, stops working in RC1. I did recompile the whole project. The code looks like this: private void exit program() { Application.Exit(); MessageBox.Show("Thank you for using WinChat", "WinChat"); } After calling this function, I do see the MessageBox being poped up, but the Windows Form doesn't exit. Why is this? Thanks ver...
Visual Studio 7 - Newbie (5 replies)
microsoft.public.dotnet.general
Hi I am not sure if this is a problem with the Beta Application or I am doing something wrong I am going through Beginning ASP.NET and my first Try out is giving problem. If I type it out in Notepad it works fine, however in Visual Studio, as I finish writing the file, as I save it the line numbers converge. Naturally it would give error and as I correct the problem as soon as I save it gets conve...
API changes from Beta 2 to RC (10 replies)
microsoft.public.dotnet.general
Microsoft released a list of API changes from Beta 1 to Beta 2 which detailed 60,000 breaking changes. Has a similar document been released for API changes from Beta 2 to RC? If so, how much did the API change? Ron
MDI help (2 replies)
microsoft.public.dotnet.general
Hey. I can't seem to get rid of the maximize, minimize and close buttons from the main menu when an MDI child is loaded into it's parent. Does anybody know how to hide these controls? Dissabling them? Anything? Thanks. Alex
DateTimePicker (2 replies)
microsoft.public.dotnet.general
I am having ptoblems with this control. The Text property returns an empty string and the Value property always returns the current date. Anyone else has this problem?
How do I get the ObjectContext from inside a Managed .Net Module? (3 replies)
microsoft.public.dotnet.general
I am instantiating a .Net object in ASP script. I'd like this object to be able to acquire the ASP Scripting context objects as efficiently as possible. Under VB6, I used to execute the following code statements: m IISServer GetObjectContext("Server") m IISApplication GetObjectContext("Application") m IISRequest GetObjectContext("Request") m IISResponse GetObjectContext("Response") How can I do th...
number formatting (3 replies)
microsoft.public.dotnet.general
How can I format my doubles as strings so that: 1) If the number needs thousands separators, they are added. 2) If the number has no digits to the right of the decimal, no decimal is shown. If the number does have a fractional part, only show the number of places needed. Right now I am using: double.ToString("n", Application.CurrentCulture.NumberFormat) This is great for solving #1, but "n" format...
Dynamic arrays, (2 replies)
microsoft.public.dotnet.general
Hi, What do I use if I need a dynamĂ­c array filled with diffrent stuff such as int and string? Thanks, Julia
API LoadString throws exception; but Err.Num = 0! (14 replies)
microsoft.public.dotnet.general
In the code below, the statement zFetchString LoadStringByNum(m hInstance, CLng(vID), sBuffer, lBufLen) throws a very strange VB exception. Control branches to the error trap, yet Err.Number 0! The parameters passed to LoadStringByNum (LoadStringA) are as follows: Long : m hInstance 209980341484519424 Long : CLng(vID) 109 String: sBuffer a preallocated buffer of 256 spaces Long: lBufLen 256 Can yo...
.NET and OUTLOOK (2 replies)
microsoft.public.dotnet.general
I'm having a problem getting outlook to send email. I have this simple code, which works nicely in VB6, but for some reason, I'm getting a: Email.vb(52): 'Send' is ambiguous across the inherited interfaces 'Outlook. MailItem' and 'Outlook.ItemEvents Event'. Can anyone help? The function is below: Public Sub SendEmail(ByVal Application As String, ByVal FromName As String, ) Optional ByVal Files As ...
Remote Scripting in .NET (2 replies)
microsoft.public.dotnet.general
In InterDev there was a "page object" design time control, which enabled you to send data between the browser and server, without reloading the page. This was cross browser compatible and worked using a Java class. However the code is very dirty, and I only use it when performance is very critical. Is there a new way to do something like this in .NET, which uses the rich programming model .NET? Fo...
Destroy Me (10 replies)
microsoft.public.dotnet.general
Hello, How can I make a class kill itself? For instance, in a data wrapping class, I take the ID of the record as a param in the constructor. If the load fails, I'd like to destroy that instance: Dim myFoo As New Foo(123) Then, inside Foo: Public Sub New(ID as Integer) If Me.Load(ID) False Then Me Nothing 'How do I do this line? End Sub Thanks, Mike
Windows Forms: Client Area Erased (2 replies)
microsoft.public.dotnet.general
I'm sure this is really basic, but I've been away from programming for a while. I have a small C# program that uses a timer to draw a random circle in the client area of the form every second. The problem is that the entire client area gets erased each time the OnPaint() override function is called. My timer function is calling Invalidate(), but that should only set the clipping region, right? I w...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification