Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

VB 8 0

@VB 8 0
About
Posts
91
Topics
54
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Get PropertyGrid to update?
    V VB 8 0

    Hi , I am usign propertygrid in my application . I am using one class i that i m having " Caption " prooperty. i am I wrote this code to Keyboard UP left,right down keys to work . In that i am having the code to move the controls . according to below condition i am highlighting the property .

    Private Sub PropGrid_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles PropGrid.Enter
    fGridEnter = True
    End Sub

    Private Sub PropGrid_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PropGrid.Leave
    fGridEnter = False
    End Sub

    Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean ' IN THIS i am having the code to move the control .

    If (keyData = Keys.Down Or keyData = Keys.Up Or keyData = Keys.Left Or keyData = Keys.Right) And fGridEnter Then
    PropGrid.SelectedGridItem.Select()

    Return False

    End If

    Now the problem is if i am entering caption for textbox then i use Keyboard up, down ,left ,right then Propertygrid is losing the focus . Textbox1.Caption = "ABC DEF " ' Here i amnot able to move the cursor using keyboard keys up, down ,left ,right to change the text of the texbox . How to identify the things ??

    C# graphics regex help question announcement

  • property selected and load other items in other properties
    V VB 8 0

    Hi CP This is my code i am retrieving a property value which raises the error

    Public Class cTxtBoxProperties

        <Category("Misc")> <Description("Displays the type of data associated with the control")> \_
    <TypeConverter(GetType(MyDataType))> \_
    Public Property DataType()
        Get
            Return \_DataType
        End Get
        Set(ByVal value As Object)          
            \_DataType = value
        End Set
    End Property
    <Category("Misc")> <TypeConverter(GetType(NumberFormats))> \_
    <Description("Displays the format of the control")> \_
    Public Property Format() As String
        Get
            Return \_Format
        End Get
        Set(ByVal value As String)
            \_Format = value
        End Set
    End Property    
    

    End Class
    Dim tPropertyName As String = "DataType"
    Dim objTxt As Type = GetType(cTextBoxProperties)
    Dim PiInfo As PropertyInfo = objTxt.GetType.GetProperty("DataType")
    Dim ObjPropertyValue As Object = PiInfo.GetValue(objTxt, Nothing)

    Public Class NumberFormats : Inherits System.ComponentModel.StringConverter

    Dim alist As New ArrayList
    Dim ControlNames() As String
    
    Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.ComponentModel.TypeConverter.StandardValuesCollection
        alist = New ArrayList
        alist = GetNumberFormats()
         ControlNames = CType(alist.ToArray(GetType(System.String)), String())
        Return New StandardValuesCollection(ControlNames)
    End Function
    
    Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean
        Return True
    End Function
    
    Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean
        Return True
    End Function
    
    Protected Friend Function GetNumberFormats() As ArrayList
        GetNumberFormats = Nothing
        Dim objFStream As FileStream = Nothing
        Dim objReader As StreamReader = Nothing
        Dim fiInfo As FileInfo = Nothing
        Dim tFontSizeFilePath As String = ""
        Dim tNumberFormats() As String
        Dim alist As New ArrayList
        Dim CTextbox As cTextBoxProperties = Nothing
        Dim tFileName As String = ""
    
        Try
    

    '' Here Raising the ERROR

    Visual Basic question

  • property selected and load other items in other properties
    V VB 8 0

    HI CP , Location : Areas, Countries , Capitals Item List : property selected in Location and load items in Item List I am having 1 property with drop down : Areas, Countries , Capitals suppose if i select the Areas then i have to load dynamically Areas thru the .txt file and if i clicked countries then i have to load dynamically and the same . How can i do this Dynamically ?? while clicking the particular item . Regards,

    Visual Basic question

  • How to know whether propertygrid..SelectedGridItem is having focus or not
    V VB 8 0

    Hi CP, I am having an PictureBox and propertygrid . i am showing the image properties when i click the image in Propertygrid at runtime. I selected one image through the property of PictureBox. After selecting i mousedown ont the form. I want to know whether the property( Image ) is having the focus or not .(BLUE COLOR ) NOT ( GREY ) How can i acheive this one ?? Regards ,

    Visual Basic question tutorial

  • Work on Ctrl +C in PropertyGridSelectedItem
    V VB 8 0

    i am having a control on a panel and their properties in the propertygrid . How to identify the Ctrl + C in this method

    Public Function PreFilterMessage(ByRef msg As Message) As Boolean Implements IMessageFilter.PreFilterMessage

     Const WM\_KEYDOWN As Integer = 256
        If msg.Msg = WM\_KEYDOWN Then
            Dim keyCode As Keys = (CType(CType(msg.WParam, Integer), Keys) And Keys.KeyCode)
            If pg.SelectedGridItem.PropertyDescriptor IsNot Nothing Then
                If (pg.SelectedGridItem.PropertyDescriptor.DisplayName = "Picture" Or \_
                            pg.SelectedGridItem.PropertyDescriptor.DisplayName = "BackgroundPicture" \_
                                And Not keyCode = Keys.Delete And Not (keyCode = Keys.Control And keyCode = Keys.C) \_
                                And Not (keyCode = Keys.Control And keyCode = Keys.V) \_
                                And Not (keyCode = Keys.Control And keyCode = Keys.X) \_
                                And Not (keyCode = Keys.Control And keyCode = Keys.A) \_
                                And Not (keyCode = Keys.Control And keyCode = Keys.Z) \_
                                And Not (keyCode = Keys.Control And keyCode = Keys.Y)) Then
                    Return True
                End If
            End If
        End If
        Return False
    End Function
    

    what i am doing is i am blocking keyboard characters and only Delete button i am allowing in the propertygrid for picture Property . When Ctrl C , or ctrl v or ctrl x or ctrl y or ctrl z is pressed i have to work on the control to copy ,paste etc if the the propertygrid.selecteditem is picture also how can i achieve this one ??

    Visual Basic question tutorial

  • PropertyGrid image Selection while Property is ReadOnly Problem
    V VB 8 0

    Readonly with Editor is not working as readonly after setting the image and it is working as readonly but not setting the iMage to picture <[ReadOnly](True)> <Editor(GetType(ImageOpenFileDialog), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property BackgroundPicture() As String Public Class ImageOpenFileDialog Inherits UITypeEditor Dim openFileDialog As OpenFileDialog Public Overrides Function EditValue(ByVal context As System.ComponentModel.ITypeDescriptorContext, ByVal provider As System.IServiceProvider, ByVal value As Object) As Object openFileDialog = New OpenFileDialog() openFileDialog.FileName = "" openFileDialog.Filter = "JPEG Images|*.jpg|GIF Images|*.gif|Bitmaps|*.bmp" openFileDialog.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyPictures If openFileDialog.ShowDialog() = DialogResult.OK Then Return openFileDialog.FileName End If Return MyBase.EditValue(context, provider, value) End Function Public Overrides Function GetEditStyle(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.Drawing.Design.UITypeEditorEditStyle Return UITypeEditorEditStyle.Modal End Function End Class I am creating a readonly Property and if i click i open the Images to select the image . as it is a readonly property i am not able to set teh image to picture box . ---------- Working on Visual Studio 2005 PropertyGrid . I want to lock all the keys not to enter in the propertygrid at the Picture Property like in Visual Basic 6.0 after selecting the image . Only Delete has to work PictureBox -- Picture Property -- (Bitmap) after setting the image so that the user shouldnot change the value Presently i got the (None) in this way . Now i want to set the ReadOnly and only Delete key has to work and i want to set the Picture to PictureBox.

    Visual Basic graphics csharp visual-studio design

  • Finding the PropertyGrid Delete Key Event in VB.NET
    V VB 8 0

    Hi Dave, Thanks for reply. May i know how can i implement in custom UITypeEditor ??? Regards

    Visual Basic csharp css tutorial question

  • Finding the PropertyGrid Delete Key Event in VB.NET
    V VB 8 0

    Hi CP , I am using the Property grid in my application .Lets consider [None] has to appear if i set the property to empty. Consider VB6.0 application to understand clearly . Lets consider the Image property of Picture box. I set the image from My Documents. THen at the Image property i pressed the DEL key from keyboard .Directly it has to show the [None] as property text bcoz there is no image for the Picture box. How to achieve this Functionality in Propertygrid ?? Regards,

    Visual Basic csharp css tutorial question

  • printpreviewdialog Numeric up down button events
    V VB 8 0

    Hi CP , I want to handle the Numeric Up / Down events in the printpreview control i wnat to make the viceversa of handling hte pages in Up/ down control . Presently the Up one is used for next page access . I want to make the down button to work in that way . Is it possible ?? and i am havign 5 pages i want to show the 3 page first and change the page number in Up down control Is it possible ?? Regards

    Visual Basic question

  • Hiding the Script Combobox in FONT Dialog
    V VB 8 0

    Public Class MyCustomFont Inherits FontConverter Public Overrides Function GetPropertiesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return False End Function End Class <Category("Appearance")> <Description("The font used to display text in the control")> _ <TypeConverter(GetType(MyFont))> _ Public Property Font() As Font Get Return _Font End Get Set(ByVal Value As Font) _Font = Value End Set End Property I am showing the FONT in this way in the propertygrid . While showing the FONT Dialog then the Script Combobox should not be shown . Regards

    Visual Basic question tools

  • Hiding the Script Combobox in FONT Dialog
    V VB 8 0

    Hi CP, i am using the custom font to hide the properties Public Class MyCustomFont Inherits FontConverter Public Overrides Function GetPropertiesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return False End Function End Class Now i want to hide the Script : ComboBox which exists in the bottom of the FONT Dialog . how can i implement in this code ?? Regards ,

    Visual Basic question tools

  • Showing the Common properties for the Multiple Controls selection
    V VB 8 0

    Actually i am having a list of controls in multiple Controls selections like Picturebox,Textbox ,Label,LinkLabel etc . Now i got Picturebox in the Multiple selection of control . In cCustomProperties Class i am having FORECOLOR ,BACKCOLOR ,FONT ,SIZE , LOCATION Common Properties class all the controls to show for multiple controls if selected in the propertygrid. Case :: 1 If i get the PICTUREBOX in the List Of Multiple Controls i want to hide the FONT,FORECOLOR,BACKCOLOR Properties and to show only LOCATION,SIZE PROPERTIES . Case :: 2 For LINKLABEL i am fixing the size of the Linklabel to 7,7 and label text as * .So if i get the linkLabel in the list of Multiple controls i want to hide the SIZE ,FORECOLOR,BACKCOLOR PROPERTIES Presently i am taking different class for all these conditions and doing Permutations & Combinations . Which is Risky THING TO DO THE THINGS . I want to Stop doing all these non-Sense things . I want to implement the way in visual studio if Multiple Controls are selected . In the PropertyGrid i get only the properties which are common to all the controls . Ex :: Consider the label and Picturebox in Multiple Selection. THE FONT PROPETY is hiding . IN THIS WAY DYNAMICALLY . Regards

    Visual Basic csharp visual-studio

  • how to get the multiple selection for controls if we use Ctrl + click
    V VB 8 0

    Hi CP Members, I am trying to create an application which looks like Visual basic Editor Designer . I am using pickbox from code project http://www.codeproject.com/KB/miscctrl/CSPickBoxSample1.aspx for my controls. It worked with single control now i tried to create a selections for multiple controls when ctrl +click . i am creating instances for the pickbox and i am changing the color of label controls to identify the multiple controls. But how can i delete the instance again after ctrl +click once again on the selected control .I am not able to identify the instance of the pickbox for new multiple controls . so i am not able to unwire it as possible . Those instances are appearing on the screen which is not exaclty like in Visual Studio 2005 . I am not able identify the instance of pickbox and not able to dispose the instance causing the selection to stay on top when i click the control. for the control which is clicked with ctrl key + click

    Private Sub ShowNewSelection(ByVal sender As Object)
    Try
    Dim pickselect As New pickbox()
    pickselect .SelectControl(sender, New EventArgs)
    Catch ex As Exception
    End Try
    End Sub

    on ctrl+ click on the control/s. or else just tell me how can i create the selections for mulitple controls if i press the control with CTRL + Click and to remove the created selection if i clcik the selected control again usign this Pickbox or any new way to achieve this . or link . Its urgent and important. I am trying to create exactly like in Visual Basic Designer 2005. I struck here . Any help ??

    Visual Basic question csharp visual-studio com

  • Lock ComboBox
    V VB 8 0

    Hi Graus , Thanks for responding.This is for the end user. I am creating a custom ComboBox which doesnt accept the caret , text and doesn't show the list . Now i required is how to hide the focus when the cursor is on the combobox button to show as disable. 1 ) how to hide the focus when the cursor is on the combobox button at runtime ? Any ideas ? Any views regarding this ? Regards, VB 8.0

    C# visual-studio design

  • Lock ComboBox
    V VB 8 0

    Hi CP, I am desiging a custom control combobox that looks like combobox at design time in VS 2005 . I am left with one thing. I dont want to use dropdownstyle but i want the user cannot write any text at runtime in the combobox. i suppressed the combobox & removed the caret.' ReQ : i want the user cannot write anything in the combobox if the caret is not preset also. Regards vb8.0

    C# visual-studio design

  • ComboBox lock/suppress DropDown
    V VB 8 0

    Hi CP, May i know anyone get the things ? Regards ,

    C# help

  • How to activate the custom shorcut keys in <iframe> ??</iframe>
    V VB 8 0

    Hi CP , I am using an iFrame in an application . i am setting focus to it to type the text . After typing some text i want to press the keys using combination like this :: " ctrl+shift+p " like what we do normally in iFrame i.e., Ctrl+X, Ctrl+V ,Ctrl+y ,Ctrl+C . I am using shortcuts.js JS File for generating normally it is working for textarea/ any control if it is having the focus. from the below site. http://www.openjs.com/scripts/events/keyboard\_shortcuts/#keys Untitled Page shortcut.add("ctrl+shift+p", function () { document.getElementById('<%=Button1.ClientID%>').click(); } ,{ //'type':'keydown', //'propagate':false, //'target':document.getElementById('ifrm') //} ); function LoadFrame() { document.getElementById("ifrm").contentWindow.document.designMode = "On"; //Registering the keydown event // frames[0].document.onkeydown = function () { // keypressed=frames[0].event.keyCode; // if(keypressed==80) // { // ctrlPressed = true; // return false; // } // if(keypressed==17) // { // shiftpressed = true; // return false; // } // if(keypressed==16 && ctrlPressed && shiftpressed) // { // short() // ctrlPressed=false; // shiftpressed=false; // return true; // } // return true; // }; // But this not the Exact way .& this is time taking for events to fire atleast 3 times for all buttons to be pressed. }

    This is the code which i am using currently . I want to use the keyboard shortcuts, if iframe is having the focus. I request to give the suggestions/output without leaving the question unanswered. Regards, Sriram.

    ASP.NET question javascript com tutorial

  • how to add a new row to datagridview at runtime.
    V VB 8 0

    Hi , at runtime i want to add a new row and from the datatable i want to put those values in to the grid . In datatabel i have 1 ,2,3,4 i have to make changes to these no.s and assign YES NO like that . How can i do these things??

    Visual Basic question css tutorial

  • How to Check the internal file content to upload only PDF files using upload control.
    V VB 8 0

    Hi CP, I am using upload control in asp.net . in that i am uploading only .pdf files. In java script, i wrote the code to upload only pdf files. But user can change the extension and upload the .txt or any files as pdf .This should not be done. How to check whether the file is PDF Only ? in vb.net If he changes the extension of any file and he can upload i have to display the message as "Please upload the original PDF Files" Thanks , Ram.

    ASP.NET csharp java asp-net tools

  • IFRAME problem in IE 7.0
    V VB 8 0

    Hi all , I am creating mail compose editor in web, but iframe is not working in mozilla and the other problem are spacing b/w lines i.e, text format (Heading, Paragraph, etc. and if i refresh the page the content is missing in IFRAME . but i found a workaround to do that . But the problem comes with and while selecting the <b>" text format"</b> like Paragraph ,Header1 ,2,3,4,5,6 Address . The sample appl for composing <a href="http://www.mozilla.org/editor/midasdemo/">http://www.mozilla.org/editor/midasdemo/</a>[<a href="http://www.mozilla.org/editor/midasdemo/" target="_blank" title="New Window">^</a>] if i copy the source and paste in a notepad with .html file name and opening it with InternetExpolrer 7.0 i am getting the spacing between lines if the format option as NORMAL . it is not consider the format as normal,considering a <p>. ANY WORKAROUND for spacing i.e.,<b> text format and content missing after refresh </b>? Thanks </p>

    ASP.NET html docker help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups