Answer Questions
Manoj Bhardwaj override copy command
Is there a way to over ride the CTRL+C Command and also override a context menu "copy" command The reason I ask this is because in work I have 2 pc's KVM'ed and I would like to share one clipboard with the other and vice versa, I have the app working but I would like it to possibly hook the copy command completly. any way of doing it Khalid is correct as far as the Clipboard goes. Transferring the data over a KVM switch is a no-go, it is just an electrical switch, not a data switch. Instead of a KVM, consider using a remote access program such as RealVNC or TightVNC. They are capable of transferring not just keyboard, video and mouse but also the clipboard contents. You dont actually need to hook a copy command. ...Show All
Mr.Siddhardhaa Creating custom extended Calendar control
I need to implement a Calendar Control in my application so that it can be used throught the aplication. I have searched the internet and have found some but those are just calendars and we can select a date. But if we wnt to go to some year say 2011 then we have to go on clicking the next month navigator until the required year and the month comes up. So I want to implement two dropdown lists on top of the calendar which signify month and year and we can select from the dropdowns. This can also include the navigation icons for the months and years. I want to implement them in an .ascx file. Can some one give me some suggestions or provide any helpful links to create the calendar control. The calendar control needs to be implement ...Show All
Shipra Gosain inherited form constructor not found warning message
I've seen one other post about this and it was never replied to, so I'm assuming this problem could be universal. When using a form that's a base class to be inherited by other forms that has a constructor with parameters, I consistently get a warning about the constructor not being found, and I can't use the designer on any of the inherited forms. Granted everything compiles and works just fine, but I always get a warning message, and I can't use the designer for any of the inherited forms. The designer for the base class works fine however. If I add a parameterless constructor on the base class that calls InitalizeComponent(), everything works correctly. But this is an entirely useless constructor that's used only to get the des ...Show All
UmaMohan MouseHover Event for Form Buttons (help please)
This is my 1st time at using certain MouseEvents,what i'm want to do is this...The buttons i have now the Form and ToolStrip all have a Black BackColor..What i'm looking to do is when the persons mouse "RollsOver" a Button the Background color will change... The over all Effect i'm trying to Achive is similar to the Windows Media Player Beta 11 the button is Black ,but when Rolled over it Lights up!! Can someone help me with this cant seem to find any good example in any of my books to achive this look... Thxs in advance PS: here is some code i'v got to work partly..lol seems the only time the Button lights up Red is when the Mouse touches the very outer right side of the button...Not even the button itself,when i roll the mous ...Show All
GregMaxey Windows installer launch condition
Hi Guys, I am trying to create a setup and deployment project in VS 2005 for a windows form project. A couple of dependencies for my application are - 1) .NET framework 2) ActiveState Perl 5.8.8 I have been able to successfully add the .NET 2.0 framework check to the launch condition. I've also added the Active Perl check but its not working right. I mean, I get a "perl not found" error even on systems where the perl is installed. How should I correct this behavior Its probably something in the Condition check that I'm messing up. Here are the properties I have for perl launch check - (Name) ActiveState Perl Condition Installed InstalllUrl <url> Message Perl could not be found. Please install ...Show All
DevDells How to hide a form and to maintain their data?
Code in VB 6 1.- Open modal form code: form1.show vbmodal 2.- fill the form 3.- Hide form code: form1.hide 4.- Then, to open the modal form again. The data are even there. code: form1.show vbmodal Question. How can I that in visual basic.net ..... OK thanks.. But my problems is another one... Please read this code... Private Sub oPb_Cheque_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles oPb_Cheque.Click If not vpb_EstadoFormCheque Then Recepcion.oFm_cheque.ShowDialog() ' Here, we will fill the form whit our data... vpb_EstadoFormCheque = not vpb_EstadoFormCheque Else Recepcion.oFm_cheque.Visible = True 'Here, I need open this modal form a ...Show All
cosminb Office 2007 Control Style
How do I get controls similar to the ones in the new office 2007. I am not talking about the ribbon or anything, just the "general" controls like the textbox and combobox with the same style (the lighter blue and such) There's a number of toolkits that will help facilitate the Office 2007 "general" look throughout your entire app. DotNetMagic: http://www.devcomponents.com/dotnetbar/ DotNetBar: http://www.dotnetmagic.com/ Krypton: http://www.componentfactory.com/ The latter is something I really have to stop mentioning (3rd time this week), but I do use it in my own work. The Office 2007 styling in Krypton is free for you to use in your .NET 2.0 applications. The other are ...Show All
Pockey Delete Date Time Picker Control
Hello, I am using Date and Time Picker Control 6.0 to insert a large number of dates into Excel. The problem is that, as the spreadsheet gets larger and larger, the large number of controls severely slow down the program. My question: how do I delete the control while still retaining the date that I've entered in the cell After I've entered a date I won't need to change it again so I no longer need the control. Thanks, Matt Use a DataGridView control. ...Show All
Banhnam splitContainer problem/bug in .NET 2
Hello, I want to draw nice splitter in splitContainer. To do this, I call method below in splitContainer1_Paint event. private void splitContainer1_Paint( object sender, PaintEventArgs e) { ProfessionalColorTable pct = new ProfessionalColorTable (); Rectangle bounds = (sender as SplitContainer ).SplitterRectangle; // Make sure we need to do work if ((bounds.Width > 0) && (bounds.Height > 0)) { Graphics g = e.Graphics; // Setup colors from the provided renderer Color begin = pct.OverflowButtonGradientMiddle; Color end = pct.OverflowButtonGradientEnd; // Make sure we need to do work using ( Brush b = new LinearGradientBrush (bounds, begin, ...Show All
Kaiser28 How to capture the system shortcut menu for the WebBrowser
I posted this quesiton some time back at the thread below and was told to come here and i pray i can be helped.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=904519&SiteID=1 I am using the webBrowser to display files from a ftp server to my clients. I would not like the client to be able to right click and see the ftp://ftp.siteName address for many reasons. So i need to be able to capture the system Context menu and pluck that menu item off., and i also want to add items to the system menu. Even i one says WHY USE the system menu. That is because EVEN if i implement my own context menu i still need access to the ftp folders and files that the current pointer is over. This is going to require some com but i can ...Show All
Hyungchul Shin Filling a datagridview - System.Data.DataViewManagerListItemTypeDescriptor
Hi, I'm trying to fill a datagridview (VS2005) control with info from my sql database but getting no luck. The control contains no items, only the folloiwing text: System.Data.DataViewManagerListItemTypeDescriptor. It used to be so much easier with vs2003 (data keyfield etc) Can anyone please help Here is my code: private void fillDropDownList() { //create connection string and command object SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "server=localhost;database=MyDatabase;trusted_connection=yes"; SqlCommand cmdFillDropDownList = new SqlCommand("fillDropDownList", myConnection); cmdFillDropDownList.CommandType = CommandType.StoredProcedure; // ...Show All
Leaf. Bug or By Design In UserControl
The following is my test control.....I does not know why DesignMode propery alway got false, but on OnHandlerCreated Method I got True......Why public class TestControl:UserControl { public TestControl() { MessageBox.Show(this.DesignMode.ToString()); } protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); MessageBox.Show(this.DesignMode.ToString()); } } This works: public partial class MyForm : Form { public MyForm() { // Capture constructor call stack and inspect it if (CallersIncludeVisualStudio(new StackTrace(1))) { DesignTimeInit(); } else { RunTimeInit(); } ...Show All
djchapin Prerequisite not working?
I'm trying to build a setup for my application using a Windows Installer project. I'm using VS2005. My Windows application requires SQL Server 2005 Express, so I marked that as one of the prerequisites. I built the installer successfully and ran it on one computer running XP. It successfully detected that neither .net 2.0 or SQL Server 2005 Express were installed and installed both of them before installing my application. My application ran just fine and life was good. I then took the exact same setup.exe and setup.msi and ran them on another computer - also running XP. It didn't attempt to install either of the prerequisites, and seemed to successfully install my application. As soon as my app was launched though it failed with " ...Show All
Sukh1983 Password
My friend has given me his old pc ( for my son ) which has windows 2000 on it. Problem is that he has forgotten his password. Is there a way to get around the password Any help would be greatly appreciated. Thanks Use CIA Commander boot disk or bootable unix cd with utilities to edit/reset windows registry on NTFS/FAT32 If it is BIOS Password..U can remove it by removing and placing again BIOS battery. If it is login Password for 2000. U can format it install again OS. Does this password happen before the Windows 2000 login screen appears, or is it the password for the login screen It is not the BIOS unfortunately. It's the windows log on. I gu ...Show All
New-Bee The "Move" glyph in the upper left corner...How to?
Hi. I'm trying to make a custom designer for my control and there's one thing I can't figure out. When you insert a regular panel and select it, you get that little button with the cross in it, at the upper left corner of the panel, so you can drag the control around. How do I get that to show when selecting my control I'm guessing I have to do something with Adorner, Glyphs and Behaviours, but I can't figure out what. Thanks in advance for any info. Cheers. where does your custom designer inherit from have you tried inheriting from PanelDesigner yet These things are new for 2.0 (new glyphs, DesignerActionList, etc.) that i also need to learn, Thanks for your suggestion. I ...Show All
