Recent update: 2008-3-21
hi everybody,we developed some usercontrols with their designers and putted them into toolbox.And we also develop a custom document with its root desginer.we have collection object in custom document that holds these usercontrols. we wrote event handlers for drag-drop operation in document's ...
hi,we want to develop a property grid item on the property browser like treeview's node property ( has a browse button that opens a new editor).is there any special name for this kind of property? we think that this kind of property takes collection.can we access the .net built-in editor like ...
Does anyone know if there is a way to obtain an XP Themed data grid column headers? Should I inherit the DataGridTableStyle class and override the paint or something (which I don't think you can do). I want to acheive the effects you get like column header hovers, left aligned sort indicators. ...
Hi, CodersI have very strange problem!I am deriving my own class, inherited from TabControl.I need to make my own painting, so I wrote that:SetStyle(ControlStyles.AllPaintingInWmPaint, true);SetStyle(ControlStyles.UserPaint, true);SetStyle(ControlStyles.DoubleBuffer, true);Then proccessing the ...
I have a Form with 3 MainMenus on it. I am trying to make as follows: foreach menu in "MenuCollection" menu.some_method My Problem is that I do not know where the "MenuCollection" is. I cannot create the collection manually. I know that all controls on a Form are in ...
I know it seams stupid to ask this question, but I have some problems using the class mentioned above.I was learning how to create control designers, I am using the .NET framework 1.1 Final Beta, and Microsoft Visual Studio .NET 2003 Final Beta, I've created a new class and I was trying to ...
hi,we develop an "addin project". we want to generate a new project item like as XSD Schema.our intention is to provide a view which is similar to xml schema document template. we want to drag-drop user controls from toolbox on to this document view , on the code part like xml-schema ...
hi, i generate a user control and i could add into toolbox. i added some new properties to the user control. but i want that these properties can be expandable into property browser. for example: "size" property of any form control has two sub properties as "width" and ...
I created a User Control under VB.net and I want to add the control dynamically. Thats all working. I get the control added and I have managed to access the standard properties, however I am not able to access the Custom Properties I have defined on my User Control. It has to do with the way I ...
Hello all!I'm new to .NET development, and had a question dealing with file copying....I need to create an object which will contain a file (document).I need this class object to pick up a file given a full file path, and copy the file from the source system to the class object.I wasn't sure ...
I am trying to implement an object which gets saved to the resources for the form at design-time and loaded back into a property for a custom control. That is not a problem; using the DesignerSerializationVisibility attribute with DesignerSerializationVisibility.Visible on the property in the ...
Question - I'm using the "AxWebBrowser" component and it's requiring that I create the instance using the STA model in my Main() method for my hosting WinForm.Are all Interopt compoenets STA? And if not is there a way that I can either:A) modify the compoent so that I can use MTAB) ...
Why does'nt the enter and leave events fire when I click on a panel? InitializeComponent() { //do some stuf this.panel1.Enter += new System.EventHandler(this.panel1_Enter); //do some more stuff } private void panel1_Enter(object sender, System.EventArgs e) { //Do some important stuff } Anyone ...
Is this possible?I'd like to inherit from a control so i can reuse some of it's base functionality, but override other parts. I tried using Shadows and creating a property over one that already existed, but the WindowsForms designer cried about the property not being there, so is there an ...
I have been looking for a listview(view = details) with multiple line support in one row. Another approach would be like the listview presented in windows XP's 'Add or remove programs'(the effect that the one selected becomes visibly larger). I cannot seem to find any of these two, and ...
Why is it that with Windows.Forms controls, we only have access to the Size of the Client Area but not the Top, Left offset ?I've been trying to subclass a TextBox and add a Button on the Left and Right side of the text, but there it does not work for the left button which is ALWAYS rendered ...
How do I apply design time attributes to my IExtenderProvider class's properties that it's providing? Do I put the attributes on the Get or Set method, or is there another way? I have an IExtenderProvider that provides a property thats a collection. I want to apply the ...
I am using VB.NET windows forms.I have problem with addition(+) between startdate and enddateI want to show value to total how many dayexamplestartdate =#01/01/2003#enddate =#02/05/2003#totaldate = startdate+enddatewhat is sum value totaldate?Can any one ...
When I add access key functionality to my menus I don't see the access key underlined in the menu until I press the ALT key. The access keys work just fine, and they even display correctly after pressing the ALT key. But, I want the access keys to be visible prior to the ALT key being depressed.
Hi! I'm trying to create a new control deriving from ScrollableControl. Now I'd like to add a nice 3d-border around the entire control, but I can't seem to limit the area that the autoscroll feature uses so that it doesn't include the border. How do I do this?
My table is designed to support Nulls in the datetime columns.So I've subclassed the DateTimePicker and added the following code...public new object Value{ set{Type t = value.GetType();if (t == typeof(DBNull)){base.Value = base.MinDate;}else{base.Value = (DateTime)value;}}get{if (base.Value == ...
I am developing an application that contains an error database. This contains a list of error numbers, names and text associated with them so knowing an error number can show a MessageBox with the name and text in it.The problem is that it doesn't recognise '\n' as a new line, instead it ...
Hi,I created a simple "Windows control", with a few properties, in VB.NET (VS.NET Professional). To be able to debug my control, I added a new "Windows Application" project. I added my "Windows Control" to the references section of the new "Windows ...
My MainMenu control is not rendering correctly on windows xp (with the newer shell controls). Buttons, status bar, the drop downs themselves all render properly just not the actual main menu bar. It renders with the control control instead of the menu color. Is there something I'm doing wrong ...
in an inherited TabControl that's being ownerDrawn, is there any way to prevent OnDrawItem from being called when the width of the control is changed? essentially i need the tabstrip to stay the same but im changing the width of the control for the needed functionality (animated sliding ...
Is it that the Site Property of a Component is not available at Runtime.Actually I have developed a custom Control and placed it on a Windows Form.In one of the properties of the Control I have used this.Site.Name = .....But whn I run the application it gives me a NullReferenceException saying ...
How can i create this kind of control? Or where kan i buy it? I have tried to make something that looks like the Visual Studio toolbox. But i cant get it right! Please help!
I have used the sample in Microsoft Visual Studio .NET Automation Sample: Windows Forms Automation Add-in : http://msdn.microsoft.com/vstudio/downloads/samples/automation.asp just to create an add-in to produce a project with one specific winform, where you can create any controls. I can create ...
i have a custom control inherited from panel and i need to be able to handle Enter/Leave events for it..any idears?
Whye does the refresh method cause the controls on the panel to "shake" and flimmer? Anyone have a solution for this?
I have a control which acts like a button in some regards, now to recieve information on when a control is the default button the SDK says to implement the IButtonControl which I did. The problem is that if I place three of my button controls on a form and then set the second one placed on the ...
Hello! I am looking for a custom radiobutton control and a custom checkbox control for my application. The primary feature I am looking for is the ability to manipulate the color of the checkmark within the checkbox and the color of the dot within the radiobutton. Has anyone seen controls like ...
just a thought ..but is there any to make individual tabpages use windows XP style icons? [32bit with 8bit alpha] ..a couple of my developers are wanting to use the new style icons on a tab control and i don't really want to write a custom tabcontrol just to add support for the icons...any ...
I tried adding handler to handle the click event in the TabControl, it works but only when you use the mouse to select the tab. Since there are other means to select a tab in a tab control liked using the arrow keys or mouse. Is there a single event that I can capture for tab selection changed?
Hi!! I have make an custom Control that inherits from textbox and adds it severar validation functions and maskedit. Now I want to add a icon to this control to showit in the IDE ToolBox and add it to forms in design graphical mode. How can I add a "toolbox Icon" to my control?
Hi!! I have make an custom Control that inherits from textbox and adds it severar validation functions and maskedit. Now I want to add a icon to this control to showit in the IDE ToolBox and add it to forms in design graphical mode. How can I add a "toolbox Icon" to my control?
I want to know if anyone has ever successfully hosted a .NET WinForm control in a Visual Basic 5.0/6.0 Form?I have seen code posted that does register the control as an ActiveX control via adding a few extra registry keys, and as a result these controls are available in the Visual Studio ...
How would one go about adding syntax highlighting support for a new file type in VS.NET? It's basically C# with template support (ASP style tempates). If I can't add a new file type can you associate a file extension with another language (i.e. have the editor have .cs and .somethingelse be ...
Hello everybody!Has anybody some experience with floating toolbars?Is there a way to create toolbars like the ones that the IDE uses?I wrote a custom control that simulates the same behavior, but it doesn't look as good as the "real" thing (and has still some minor bugs too).Any ...
I am trying to create a textbox control which will handle null values (see 1 below) and retain the ability to be formatted using Binding.Format (see 2 and 3 below). My User Control is in Number 1 below. When I use the 'Shadows Property Text' function, I loose formatting on the control. The ...
I've created a VS.NET Add-in, pretty easy, but is there an easy way to create a VS.NET Toolbar? Is it even possible? Thanx
I’m playing with the Magic .NET UI [ http://crownwood.net] TabControl, and I'm stuck on something. I'm creating new tab pages programmatically, and each page has a richtextbox as it’s only control. My question is: how do I access the members of my richtextbox from the mainmenu of my mainform. ...
Where can I find a How To article on the ControlDesigner?
Is it possible to add sub-menus to items added to the VS.NET menu?
.NET 1.1Ok, I got a custom host designer implementation. I have run into an issue.I have a form with controls in it, I save the form as a dll and I use it as a template in my host designer. When I load it up, and when the code hits the designer(intialize) bit then all the controls seem to hit ...
214 byte By
aragon at 2008-2-4
<font size="2"> I have a tree-navigator in my C# mdi form and would like to add the auto-hide feature (which can be found in vs.net development environment) to it. Does anyone have any ideas about it? </font>
434 byte By
Gravy at 2008-2-4
Hi,I have noticed that the toolbox in VS 2005 contains a tab for every projects in my solution that contains a component derived class. During builds of the solutions each of these tabs are being refreshed / rebuild and it can take a little time.Is there anyway of stopping this refresh, or is ...
316 byte By
Rada at 2008-2-4
I have a toolstrip user control with some items (already added). When i add this toolstrip user control to a form in my App, the items don't appear on the form but show up when i run the App (this behavior is inconsistent). i guess its still a WIP coz its in beta 2, hopefully this gets fixed ...
Just installed Beta 2 of VB Express, having been using beta 1. Now getting warning messages about obsolete property AutoScaleBaseSize. But this is in the Designer part of the VB - which (in theory) I shouldn't mess about with. How can I get it to put in the correct property (which the error ...
Hello All,I am extending a Window's control by adding a new Public Property named AltText which will replace the Text property in certain run time situations. At Designe time, I want to update the Text property with AltText if it is changed. AltText shows up correctly in the Property browser ...