kmp112495's Q&A profile
.NET Development Getting System.Type from static method
Is it possible to get the System.Type of a subclass from a static method in an abstract class public abstract class MyBase { public static void MyMethod() { //Get System.Type here } } public class MyDerived: MyBase { } When I call MyDerived.MyMethod(); Is it then possible to get the type of MyDerived in the method MyMethod() Thanks Brian I'm having the same problem and I haven't yet been able to find a solution. Can anyone help me ...Show All
Visual C# How can I cover the menu item's shortcut?
Supposed I have a form with KeyPreview=true and a menu item whose shortcut is CTRL+C. Add a Textbox on the form. When I select some text in the Textbox and press CTRL+C, the selected text just can not be copied because system just call the menu item's OnClick event handler. And then how can I copy the selected text via CTRL+C, that is to say, how can I cover the menu item's shortcut Onclick event handler in some particular situations Your idea and suggestion will be highly appreciated. Thanks! Hi, I know how it feels like. But you could have a work around. In your menuitem_click event check first if the this.Activ ...Show All
Windows Forms Urgent...Problem in Mozilla and IE... (W2K)
Dear friends, I'm using Win2000 with sp2. I'm having two doubts. 1. in my system i can't find the boot.ini file. then whr can i find the "Booting Info" of win 2000. 2. (Urgent) For past some days i'm getting some problem when trying to opening some sites. that is, for example if i open the site "todaysfresher.com" means after opening the site it's automatically redirecting to the some other unwanted site. this is happening in both mozilla and IE5.5. I can't find the solution for this. pls help me in this as soon as possible. Because, four members r using the same system. I'm waiting for ur reply. Thanks and Regards, Ashok. ...Show All
Windows Forms getting the index of a character in ListBox
Hello, i have a ListBox with allot of text on each row. I would realy like to get the index och the character I'm clicking on with my mouse.. I have tried to get it by taking out the x-cord from mouse on the listbox and dividing it with the Font-size. But it is not 100% accurate. Is it possible in some way The font I'm using is Courier New. Regards Well, I need to have the visual effect; when you shoose a row the whole row is selected. Otherwise it could use the textbox. Anyother ideas Regards ...Show All
Visual Studio using MSBuild to build projects from multiple developers
Hi all, I am starting out to setup a automated build process for our organization. We decided that we are going to get the latest version of the code from sourcesafe whenever a complete build needs to made. But i am having trouble implementing that solution. The project i am currently trying to automate the build process for is being worked on multiple developers. Each of the developers have their projects setup in their own directories locally and also reference the DLLs from other developers locally. A developer working on a certain DLL completes it and distributes the DLL to the others who want to reference it.The DLLs that are referen ...Show All
Software Development for Windows Vista NO XP 64 Drivers for Microsoft products CRAZZZZZY
I am very dissapointed that microsoft releases an operating system and does not even have drivers out for their own hardware. None for the keyboard, mouse and fingerprint reader! If I knew this before I bought the 64 bit version I would have never bought it! The system I bought online came with Windows XP Pro and it turned out to be a bootleg copy so I tried to do the right thing and buy the latest out only to find out they did not have antivirus software out and drivers for their own hardware. Thats Crazy! Norton now has antivirus software but you have to buy the corprate version that is pricey. But still no drivers for the fingerprin ...Show All
Visual Studio Express Editions Scollable Text Boxes lack copy command
In this forum for instance, why doesn't the right click context menu of selected text not have the copy menu (If I select some of this text, I will not see a copy menu - there is a paste menu and a select all menu) I have to use the Ctrl-C instead. I have the problem on multiple systems. I first noticed this recently using SBC Global's Yahoo web email message boxes. It started about two months ago for SBC's web email. I complained but they haven't corrected it. I mention SBC, as I presume both issues are related somehow to these scrollable text boxes. SBC's compose, ...Show All
Visual C++ handling the global static object constructor thrown exception in VC++ Express Edition
Hi, I am new to VC++ and would like to know how can I handle the exceptions thrown from a constructor of a global static object is to be handlwed in VC++. I tried creating another global static object which sets a handler function using set_terminate method but the control is not going there. Any guidance appretiated in handling the exceptions thrown by the constructors. Thanks and Regards, You run just into more troubles. Just avoid global construction of objects than can throw! Just place a Init methode for this job, and this Init is called when you main function starts. ...Show All
SQL Server Problem with plug-in algorithm in SQL Server 2005
Hi,all here, Could please anyone here help me for this problem My problem is: I have registered my plug-in algortihm with SQL Server 2005 analysis services, and I can see my plug-in algortihm added to the analysis service configuration file (msmdsrv.ini). But why I can not see my algorithm appearing in the list of algorithms when I tested it Really need help for that. Thanks a lot for any guidance and help. With best regards, Yours sincerely, Hi Helen - I've noticed you've had a few questions over the last week. I am a partner at Apollo Data Technologies, we specialize in building predictive models utilizing SQL Se ...Show All
Visual Studio 2008 (Pre-release) .xaml.cs files cannot be edited after installing orcas
Hi I use VS 2005 RTM + Jan CTP SDK + orcas to build WPF applications. I have a strange problem - the .xaml.cs files are hard to edit. They will not accept most keystrokes unless I type a lot of times (strange but true and not a problem with my keyboard), but some keys are always accepted (for example: DELETE key and also CTRL+C, CTRL+V - copy&paste works). Any ideas I'm told: This * sounds * like some sort of conflict with our copy/paste commands on the designer. We need to investigate. A possible work around is to right click on the .cs file and choose “open with”. Select the source co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX vs. WPF
A friend of mine said that Avalon was dropped off and renamed to DirectX 10. Based on the theZBuffer.com, there is no DX10, and from what I know, Avalon has been renamed to WPF. So what's the connection between Avalon, WPF, and DirectX (10 ) Are they sharing the same code, or one's just using another's API Thanks! You are right that Avalon was the codename for WPF (Windows Presentation Foundation). WPF use Direct3D 9 to render a vector based UI. WPF is not dropped as it is one of the three main parts of WinFX. As WPF supports 3D effects you can build 3D games with it but it supports only a limited subset of the functions th ...Show All
Visual C# Is there a default property that returns the number of days of a given month?
something like: int monthDays = myDate.Month.NoOfDays; if myDate.Month == May then return 31. It isn't a property but here's a method: http://msdn2.microsoft.com/en-us/library/system.datetime.daysinmonth.aspx ...Show All
.NET Development additional space character corrupts mail format
Hello World, I want to update a template file 'mail1.html', have a web form replace some text, and send the mail when the user submits a form. This works fine most of the time, but sometimes I get extra space characters in the output that can break the html format. For example: <TD> gets changed into < TD>. The template contains html code for the layout (a table) and the strings '#App#' and '#Req#' which must be replaced by the variables as shown. If I send the template directly without updates it works fine, if I update it it works most of the time, but sometimes there ...Show All
Visual Studio Express Editions .NET tag
I have installed "Microsoft Visual Studio 2005- 8.0.50727.42(rtm.050727-4200)" and this is what I see when I open the Help menu.In the installed produts,it shows"Microsoft Visual Basic,Microsoft Visual C#,...but at my friends place I see "Microsoft Visual Basic .NET ,Microsoft Visual C# .NET ,....."Why is it that he has got .net tags at the end as shown above but i don't and yes he is using VS 2003. I am also not able to create or start a ASP.NET,why is this so.Am I using the Enterprise edition So what exactly am i using is it VS 2005.net or VS 2005,are both VS 2005 .NET and VS 2005 one and the same. ...Show All
Visual Studio Express Editions How to suggest a value
Hi, I have a windows form with some textboxes and other objects connected to a table adapter and I'm using a binding navigator. When the user presses the new item button, I want to suggest a value in textbox1, but the value doesn't appear because the binder deletes after I put hit there. Is there a way for me to put a value (a calculated one) in a binded textbox Thanks for your attention. Romeu Hi Romeu, There are a couple ways of doing this. The simplest is to open up the Dataset designer and select the column you want to have a value set for. In the properties grid there is a DefaultVal ...Show All
