VS 2005 Custom PropertyManager?
Oct 5, 2009I need create a custom propertyManager because i must implement a different behavior at validation.
View 2 RepliesI need create a custom propertyManager because i must implement a different behavior at validation.
View 2 RepliesHow do you use custom fonts in your application? I need to have it in a Font object. I have a TrueType font file. How do I import it?
View 12 RepliesWhile implementing this article,i cant understand what they try to mean by this:Still in the Code Window, change the line that reads:Inherits System.Windows.Forms.UserControl So that it reads:Inherits System.Windows.Forms.Button..if i change this line of the designer form: Inherits System.Windows.Forms.UserControl to this: Inherits System.Windows.Forms.Button...then when i return to the designer,i am getting this error: The designer cannot process the code at line 22: Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) The code within the method 'Initialize Component' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
View 21 RepliesDoesn't have to be in VB.NET, could be in C# or just point me to the right registry entries that needs to be created to make this work and I am happy too.Anyways we have a windows client server application called let's say "CoolApp". Now a third party is developing a web front-end using the Interface, BL and DL dlls. They want to add a functionality when user does some specific search on a records lets say a customer with the id of 12345, and then they can send an email to anyone with the access to the application where the link in the email would look something like;
View 10 RepliesWhat I would like to do now is well convert this somehow to a class. so I do not have to DirectCast the items. Is this possible?
Here is the original code that kleinma assisted me with:
Dim CtlLosArray(150) As ShieldLOSInfobox
CtlLosArray(0) = New ShieldLOSInfobox
CtlLosArray(0).Location = New Point(0, 0)
[code]....
Is there a way to make this into a custom class so that I can make things easier to manipulate? at least that is how I think it would be done.
I am trying to learn .NET This is what I found on MSDN. I can create an exception class by using this code.
PHP 'Exception Class Code
Imports System
<Serializable()> _
Public Class copyException
[Code]...
I've just finished a project, but in it, you can switch between three backgrounds, and I want to export it to another computer with an installatinoprogram, but I have no idea how to do that. I know that it should put these pictures somewhere so the program knows were they are. while it's installing, i want a picture to come up over the status bar, and maybe something that you must agree with terms.
View 5 RepliesIs it possible to have custom options on a messagebox other than Ok or yes no.. for example
View 8 Repliesi am creating my own message box. My msgbox contains 4 button , so i want to return an integer value as the button no. that was selected (i.e return 1 for button 1, 2 for btn 2...)i tried me.dialogresult=1 , but its not working
View 4 RepliesWe have a Windows.Forms.PropertyGrid control that we use to edit application settings. We expose the application settings through a class, giving each setting attributes to control the appearance. An example property definition is shown below:
<DisplayName("Snap Tolerance"), _
Category("Tolerances"), _
Description("The distance (in Points - 1/72"") to be searched for snap points.")> _
[code].....
i have a MDI Parent. As you know a MDI parent can have scroll bars. I want to make customized scroll bars. Meaning instead of windows default scroll bars i want just to images / buttons (arrows (up/down)) that when clicked will scroll up and down, and then others for left and right...
How do i do this? I dont want windows default scroll bars to appear.. i know can disable them but then is there a property / method to scroll in a direction, let my code do the work.... i would also then want it so as you scroll my custom scroll buttons wont go away, as you scroll they should stay in the same spot.. i think i can do that by a panel and docking, so that isnt important.
Can someone point me in the direction of a good tutorial on creating and building custom controls that can be added to the Toolbox?
View 6 Replieswe have a vb.net windows appliacation that uses sql server as backend. we have created all reports for this application using crystal report that is embedded in visual studio 2005. everything is working fine except the reports specially which needs to be displayed is custome mode. we have used some code to dynamically set the printer settings because at runtime the original printer settings are unknown and we don't want to let user set printer settings manually everytime before taking the printout. so the question is, how to set a custom papersize programactically. here is the code snippet that we have used to set some printer settings in runtime :-
rpt.PrintOptions.PrinterName = Configuration.ConfigurationManager.AppSettings("DefaultPrinter")
rpt.PrintOptions.PaperOrientation = PaperOrientation.Landscape
rpt.PrintOptions.PaperSize = PaperSize.PaperFanfoldUS
we have usedreportdocument object to set printer options. we have two rpts which need to displayed in custom paper format. the formats are like 9X6 and 14X12. we have created these formats in server properties. now how to to set this from code? like in place of rpt.PrintOptions.PaperSize = PaperSize.PaperFanfoldUS...some sort of syntax which will let us to put the papersize in place ofPaperSize.PaperFanfoldUS...
I am creating an array of customer controls by doing the following:
Dim CtlLosArray(150) As Control
Then I'm setting up the first control in the array like this:
CtlLosArray(1) = New ShieldLOSInfobox
CtlLosArray(1).Location = New Point(0, 0)
CtlLosArray(1).Visible = True
CtlLosArray(1).Show()
CtlLosArray(1).Name = "Label1"
Me.pnlLOS.Controls.Add(CtlLosArray(1))
Now on this custom control I have a panel and a few text boxes and as you can see I may be adding about 150 of these custom controls. What I am wanting to do is to be able to access that control then the item on that control based on the array. Something like the following:
CtlLosArray(1).Controls.Item(Panel1).backcolor = Color.Yellow
But the above does not work. How I can access a specific item on the customer control within the array?
I want to set my custom date format for whole desktop application. whatever the system date format settings are, My application should be able to use my own given date format and it should not be effected by system date format changes.
View 4 Repliesi have a checkbox bound to a column with datatype character to my database... the column uses values Y and N.also, just like to add that i have tried changing the column into character of 5 byte so that it can hold the values "True" and "False" when the property bound is the property Checked. this works okay but there are some columns that doesn't use True and False like in my statement above.is there a way that i can set my checkbox to checked when the column value it is bound to is Y and vice versa.. i noticed that in the checkbox inside a datagridview has the properties TrueValue and FalseValue but i dont see this anywhere in the checkbox not in the datagridview.
View 2 Repliesknow of a custom tracing paper control?Unfortunately a goggle search didn't return anything i could use.
View 6 RepliesI am building my own Message Box, I have overloaded the ShowDialog function and i wish to Change the Return Type from DialogResult to my own.To do so , shall i declare an Public Enum within the form and set it as the Return Type, or is there any other proper way?
View 2 RepliesA friend of mine called me to that we need a program for our club that when a member will enter in club gate so first of he will have a card upon which a barcode will be printed and through barcode reader his code will be scanned and will be find out that whether he is a temporary member or regular member or absent member or other. Only regular members are allowed to enter into club and allowed to avail all services of club. Now the question is that i dont know that how the custom barcode will be created and how the scanner will be controlled with vb.net?
View 8 RepliesI created a custom control. I put it on a form with Dock = Top. I place a standard Windows Panel below it and set it's Dock = Fill. I would expect the top of the Panel to bump up against the bottom of the custom control, but instead, it goes underneath it and jumps all the way to the top of the form. This behavior does not seem to exist if I place two Panels on the form and set one to top and the other to fill. The second one bumps up against the bottom of the first one, as I would expect. But my custom control (from UserControl) does not seem to work this way. Do I have to set something special on my control?
View 1 RepliesI want to write the data to a file which in an format that is only understandable by my program, and if any one opens it in notepad must not be able to read(understand) it.
View 8 Repliesi created a custom control that accepts only datetime values. [url] but i'm having some issues with it when it is bound to a column and then i navigate through records. it seems to trigger a row-change to all navigated records even though i haven't manually change anything on these records.
this is affecting the last_update_date and last_updated_by fields of my tables. i need to only affect records that were manually changed. can anyone help me? also, any date field should be bound to the Value property of this control instead of Text. haven't figured out how to remove the Text from bindable properties yet.
I have written multiple programs in the past that deal with cad data. Points, lines, arcs, etc. For each program I ended up creating slightly different versions of some really base classes like a class that defines a point:
<Serializable()> Public Class Point
Public x As Double = 0
Public y As Double = 0
Public z As Double = 0
End Class
My question is how would I use that class in such a way that it could be in a namespace and imported into any future project that I write?
I created a custom control and add it to a form programatically.
The user can add and move them all over the form.
The problem is when I want to clear the form of my user control I don't know how.
I created an array of my control called ctlCorkNotes
Say I create ctlCorkNotes(1) and now I want to delete it.
How do I do this so it is gone and would have to recreate it to show up again?
I'd like to make a custom control that allows the end user to format the text, similar to an HTML or RichText control. The idea is that it will be static like a label, but allow end user to specify certain tags around words to make them bold, italic, underline, hyperlink, etc, either at design time or runtime. My question more specifically is how to best approach this. My intention is to use GDI+ methods, like DrawString, etc. But my concern is the inefficiency of having to parse the text each Paint cycle to determine which tags are present in order to use the correct font style, etc. I'm not really asking HOW to do this, but more of a hint on which architectural approach to take on this. Maybe there is already some examples of this out there?
View 2 RepliesI am looking to make a data connection with a network server(sql server 2005). When I run the data source configuration wizard, it allows me only to pick a local database file. I want to use a connection string like this "Data Source=SQLSERVER;Initial Catalog=mydb;User Id=username;Password=password;" I know I can do that programmatically. But I would like to know whether I can do that using the data source wizard so that I will be able to use Bindingsources and tableadapters.
View 4 RepliesAfter using a form as a replacement for MessageBox I do have a need to make it automatically adjust its size to fit its contents, is there any rule out there that we need to abide to when it comes to sizing the form acting as MessageBox?
I am thinking I could use a panel that will auto-resize and just resize the form according to the size of the panel but I am not sure that will work as I haven't tried it yet.
This is what I would like to achieve:To create a custom messagebox, with varying number of buttons with custom .Text descriptions, and other features. I intended to have a property array that would be redim-ed and have values (.Text values) set by the calling class:
[code]...
I came across this great article on creating a custom datagridview column which creates a graph-like effect in the cells of a custom datagridview column:[URL]..Does anyone know how you would edit this to format the number in the cell as a percentage? And does anyone know how you would set this up to take 0 values which do not create any graph effects at all.I have been trying to do this but keep getting errors.
View 1 RepliesI was trying to block the closing of a custom combo box popup window in my custom DataGrid. The popup window comes by pressing F4 or ALT+DOWN keys in my datagrid which is getting closed if I press the down arrow for the first time, after showing the first value in the combo box as selected. Next time onwards, if I press the F4 key and down arrow, I can move to any item in the popup window and select the item using keyboard and in that case, the popup window is not getting closed till I press the ENTER key or selection using the Mouse. Is there any specific reason for this behaviour or something is missing in my code part? [code]...
View 1 Replies