jazzyb's Q&A profile
Windows Forms How can I hide a property? (DockPadding)
I have created a control based on the (System.Windows.Forms.ContainerControl), everything until now was fine, I am adding the final touches to the control, and one of those touches is preventing Visual Studio.NET from automatically generating these two lines of code for my control. this.ltOutlookPanel1.DockPadding.Left = 1; this.ltOutlookPanel1.DockPadding.Right = 2; I did try to override the&nbs ...Show All
.NET Development assembly dependencies
I am new to versioning, have a problem need help I have 3-rd party assembly, which I wish I could attche. If in .Net Configuration 1.1, its dependencies can be viewed. But if in .Net Configuration 2.0 (vs2005 RC), its dependencies cannot be generated due to error, but it doesn't tell you what error. dependencies list on 1.1 mscorlib 1.0.5000.0 Microsoft.VisualC 7.0.5000.0 System.Drawing 1.0.5000.0 System 1.0.5000.0 System.Xml 1.0.5000.0 More confusing, on 2nd computer, both version Configuration tool have no problem viewing dependencies. dependencies list on 2.0 mscorlib 1.0.5000.0 Microsoft.VisualC 7.0.5000.0 System.Drawing 1.0.5000.0 msco ...Show All
.NET Development Asp.net
Hi, Can anyone help me out in doing this. I migrated asp.net application which was created using VS2003 to VS2005. After I migrated the application and when I run that application I was not able to put the break point in my web application. That's I am unable to choose the option Debug -> Start Debugging , I can only run the application without debugging. Because of this I am now not able to locate where exactly the error.. Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over o ...Show All
Windows Forms Mouse Event Handler
Hello , I am facing a weird problem. I am using the MouseDown event handler to detect a mouse press on a particular button. This code works on one PC but does not work on the other. Both the PCs work on Windows XP OS. Is there anything I am missing Thank you very much in advance Venksys The sample code is elow: private void startButton_MouseDown( object sender, System.Windows.Forms.MouseEventArgs e) { Cursor.Current = Cursors.WaitCursor; string Channel_Text_Start; bool [] dataArray = new bool [1]; dataArray[0]= true ; try { reset_Indicator_high = new Task("DO_pin_17_high"); Channel_Text_Start="Dev1/port1/line7"; ...Show All
.NET Development class design question
I have my class with properties and methods. I create an instance of the class and get some of its properties in my forms. When I go back to the class and try to access that property from inside the class itself, I see that it has a NOTHING value. 1/ How do I keep the value of the property between calls and instantiations of the class when I sometimes instantiate the class from different forms in my application. 2/ What is this technique called in Microsoft Jargon. I mean when I go back to the properties and finding them again not reset to nothing 3/ What s the best way to design my class in order to keep its properties and also ...Show All
.NET Development Deploying a Web Service (VS 2005 Beta 2) Problem
Hello, I am having the most difficult time trying to deploy a web service created with Visual Studio 2005, Beta 2. I'm hoping that I'm just missing one small detail and that someone can point it out to me. I have stripped this down to the most basic "Hello World" web service. In fact, all I did for this was create a new web site, ASP.NET web service and left everything as is. Here are the steps to reproduce: 1) In Visual Studio 2005 beta 2, create a new web site, ASP.NET web service and leave everything as is. The HelloWorld web method will work fine. 2) Compile the application/Build the website. Right clic ...Show All
Windows Forms Performance of FillRectangle() and Clear()
I have written a WinForms custom control that draws (and allows editing of) a graphical based document on a page (for example, look how Microsoft Word draws a blank page with the dropshadow etc.). Pseudocode for the basic repainting method is along the lines of, protected void PaintDocument( Graphics g) { Clear background to desired backcolor (via Graphics.Clear()) Fill a black rectangle for the page's drop-shadow (via Graphics.FillRectangle()) Fill a white rectangle for the ...Show All
Visual C# Code generation from DLLs
Hi I have accidentally deleted some sources in my project and want to know if there is a way by which I can extract my code from the dll Shantanu Yes, local variables don't survive in the assembly, so dummy names are generated. Yet you get back a compilable source you can change, and thanks to the VS2005 rename feature you can quickly restore meaningful names. Copying the code is feasible, just a little boring. If you are looking at a large amount of code, you may want to use FileDisassembler , a plug-in to Reflector. HTH --mc ...Show All
Visual Basic Query returns records in Access but not from VB6
If I run the query in Access it returns 137 records. If I use the code below the recordset is empty. Both eof and bof are true. I have tried several different ways to execute, but I can't seem to get it to work. I use this process all the time and this is the first time I'm having this problem. I'm totally stuck. Set cmd = cat.Procedures("qinpatientcount").Command cmd.Parameters(pardtStart).Value = ar(1) ' Variant 2 element array cmd.Parameters(pardtEnd).Value = ar(2) Set rsList = New ADODB.Recordset rsList.CursorType ...Show All
.NET Development System.Math.Round(Double, Integer) bug?
I'm not sure if I'm missing something here but there seems to be a bug in the System.Math.Round function from the .NET 2.0 For example, this code: Math.Round(4175 /1000, 1) Returns: 4.1999998092651367 The exact same code compiled in VB2003 (.NET 1.1) returns: 4.2 Does anyone knows why is this xfxon, I'm unable to reproduce the problem you are seeing. I'm using Visual Studio 2005 the release version. When I run the code you reference, .NET 2.0 properly returns a 4.2. Are you running one of the Beta/RC versions Thanks, Bill ...Show All
Visual Studio 2008 (Pre-release) Control looping
Hi, I have a panel and I want to loop through all the controls on it, to set certain properties like Text, etc. Is there an easy way of doing this Generally it depends on a type of the Panel (ItemsControl has Items collection, Canvas/Grids have Children property. For the general case you can use smth. like: foreach (FrameworkElement f in MyPanel.Children) { if (f is Label) { … do processing for the label…} } I would suggest though to create strongly typed caches for every type of a child control, using generic collections. When you initially populate your control/screen with the chi ...Show All
Windows Live Developer Forums Is any API to install emoticons or display pictures?
Is any API for that Or is there any other way to do this Such as command-line installer Thank you very much. Please refer to How to get Messenger Technical Support http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=368260&SiteID=1 ...Show All
Microsoft ISV Community Center Forums Using internal IP Address (Printers) in VBA Code for Excel
I hope that someone might be able to offer some insight to my request. Currently programming in Excel to print various items that have been developed accross various workbooks and sheets. However, our IT department has different names assigned to printers depending upon the user login profile (different departments and WAN offices). This causes a problem because I cannot hardcode the activeprinter to work regardless of who is logged in. Each printer is networked and has a static IP address assigned, I would like to know how to reference that IP address in the code to 'fix' the printer & configuration settings. Thanks. ...Show All
.NET Development Determining hidden members via reflection.
What's the sane way to determine, via reflection, whether a type member has hidden a method or not ***CODE*** namespace Goomba { public class Base { public virtual void Action() { System.Console.WriteLine("Happyness is for fools!"); } } public class Subclass : Base { public override void Action() { System.Console.WriteLine("Get happy!"); } } public class Shadow : Subclass { public new void Action() { System.Console.WriteLine("This is the shadow"); } } } ***CODE*** Via reflection, grabbing Shadow' ...Show All
Smart Device Development [C++][WTL] from WM 2003 to WMobile 5...
Hi, I'm working on a smartphoen application, i make it on WM 2003 with WTL library downloaded via Microsfot web site http://www.microsoft.com/resources/sharedsource/Licensing/WTL.mspx All is finen but when i try to make my code work with Visual Qtudio 2005 i get a lot of errors. All the errors comes from Microsoft Visual Studio 2005 files: For Microsfot Team => Error 1 error C2144: syntax error : ' void ' should be preceded by ';' C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\atldebugapi.h 55 Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support ...Show All
