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
A

abyclassic

@abyclassic
About
Posts
23
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Create custom shaped buttons in WPF
    A abyclassic

    Hello Abhinav, Thanks for the reply. If you noticed my query, i am already making some custom shaped button. The actual requirement is about alignment of the controls, close to each other. Any control in .NET has a rectangular shape. We can see a rectangular shape around any control while adding to the UI. My question is regarding avoiding this rectangular shape. This alignment can be done by adding 2 of such buttons in a canvas or a single cell in a datagrid, by making the controls ovelapping each other (not the graphical area, only the transparent rectangular part of the control). But, if i need to add them in such a way in stack panel or any other container which adds controls next to each other, the second control is added only after the transparent rectangular part of the control. So, i am lloking for an option to change the underlying rectangular layout, whcih is not visible at run time. Is there any way to achieve this?

    Best Regards, Abhilash

    C# wpf csharp css database

  • Create custom shaped buttons in WPF
    A abyclassic

    Hello, I need to create a custom shaped button which looks like a forward arrow. Three or four of such buttons are to be placed next to each other in such a way that the tip of the first button is just near the tail of the next button I have made a style for the button using polygon in .xaml & assigned this style to the button. Now, if i add this button to a form, i can see this button in the desired style. But, still the button has the rectangular shape, which is not visible as the borders & remaining area are transparent. So, the button occupies a rectangular area on the form irrespective of the style which i created. Because of this, i cannot keep the forward shaped butons next to each other, as close as desired. Here, for the tip of one forward button to come near the tail of the next button, the rectangular area of the buttons must overlap, which is not correct. Is there any way to remove the rectangular area of the button & make it exactly to occupy the desired shape as specified by the style. The .xaml file for my code is given below

        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="{x:Type Button}">
        				<Grid>
                            <Polygon Fill="{TemplateBinding Background}"  Points="10,10 80,10 120,45 80,75 10,75 45,45" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
        					<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
        				</Grid>
        				<ControlTemplate.Triggers>
        					<Trigger Property="IsFocused" Value="True"/>
        					<Trigger Property="IsDefaulted" Value="True"/>
        					<Trigger Property="IsMouseOver" Value="True"/>
        					<Trigger Property="IsPressed" Value="True"/>
        					<Trigger Property="IsEnabled" Value="False"/>
        				</ControlTemplate.Triggers>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        
        <Button Style="{DynamicResource P
    
    C# wpf csharp css database

  • Automatically resize the controls based on screen resolution in C# application
    A abyclassic

    Thank you for the reply. Using the splitter box we can have only 2 splitters. right? I feel tablepanel layout may be a better option. Still, i have to check if the requirement can be met fully using it. Because, as per the requirement, we must not simply increase the size of the controls based on the screen resolution. We must keep the alignment & size (may be a proportionate increase in size is ok). Ideally, the look must be similar to what happens if we change the resolution & see in our desktop. ie, still all the icons in desktop are proportional & no area is simply empty. Is there any other way to achieve the same.

    C# csharp

  • Automatically resize the controls based on screen resolution in C# application
    A abyclassic

    Hi guys, How can we adjust the size of our individual controls & the main section (eg: group box in which our individual controls are placed), based on the screen resolution. ie, We develop an application in 1024*768 resolution. In the GUI, we have one or two group-boxes. Each group-box have different control which are added at run time. Now, if the user opens the application in 1024*768 resolution, all the controls are neatly positioned. But, if the user uses a different resolution, the size of the controls are not proportional. How can we achieve the proportional re-size of all the individual controls irrespective of the screen resolution Best Regards, Abhilash Chandran

    C# csharp

  • properties of user controls
    A abyclassic

    Hi. thank you for the information. i will try that.. But the 3rd requirement is slightly different than wht u have mentioned. I will make it more clear. For eg: i am making a user control. I adds a property called MyColor to it, which accepts a color as the value. Now, when i uses this control in allications, the properties window for the control displays the MyColor property When the user clicks to select the value for the myColor prperty, the color pallate must be prompted to the user from where he can select the color, like the color pallates displayed to select the color for BackColor property. is there any method to achieve it. Kindly help me Best Regards, Abhilash Chandran

    Windows Forms csharp question visual-studio winforms design

  • Add & delete properties for user controls
    A abyclassic

    Dear All, I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am facing 3 problems: 1.In this control, i wants to remove some of the properties which are available by default to the controls. These properties must be removed from the 'Properties window' of the usercontrol. Also the user must not be able to set these properties using code. I am able to remove the properties from the 'Properties window' by inheriting a class from the System.Windows.Forms.Design.ScrollableControlDesigner & removing the properties by overriding the PreFilterProperties function as show below: protected override void PreFilterProperties(System.Collections.IDictionary properties) { properties.Remove("BackColor"); } But, doing so, this property is available to be set from the code. How can i remove this property fully? 2.I wants to create a property for the control which has sub properties, like the 'Location' property of a button, which has sub properties as 'X, Y & Locked'. My new property for the control must have some subproperties like this. How can i achieve this? 3.I wants to add a property to the user control which allows the user to select a color. When the user selects this property, it must display the same options which are displayed for selecting the color for the satndard properties like 'BackColor'. Then the user must be able to select the required color from these options & the value must be stored in that specific property. Kindly help me to acheieve the above scenarios Best Regards, Abhilash Chandran

    Visual Studio csharp question visual-studio winforms design

  • Properties for user controls
    A abyclassic

    Dear All, I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am facing 3 problems: 1.In this control, i wants to remove some of the properties which are available by default to the controls. These properties must be removed from the 'Properties window' of the usercontrol. Also the user must not be able to set these properties using code. I am able to remove the properties from the 'Properties window' by inheriting a class from the System.Windows.Forms.Design.ScrollableControlDesigner & removing the properties by overriding the PreFilterProperties function as show below: protected override void PreFilterProperties(System.Collections.IDictionary properties) { properties.Remove("BackColor"); } But, doing so, this property is available to be set from the code. How can i remove this property fully? 2.I wants to create a property for the control which has sub properties, like the 'Location' property of a button, which has sub properties as 'X, Y & Locked'. My new property for the control must have some subproperties like this. How can i achieve this? 3.I wants to add a property to the user control which allows the user to select a color. When the user selects this property, it must display the same options which are displayed for selecting the color for the satndard properties like 'BackColor'. Then the user must be able to select the required color from these options & the value must be stored in that specific property. Kindly help me to acheieve the above scenarios Best Regards, Abhilash Chandran

    IT & Infrastructure csharp question visual-studio winforms design

  • properties of user controls
    A abyclassic

    Dear All, I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am facing 3 problems: 1.In this control, i wants to remove some of the properties which are available by default to the controls. These properties must be removed from the 'Properties window' of the usercontrol. Also the user must not be able to set these properties using code. I am able to remove the properties from the 'Properties window' by inheriting a class from the System.Windows.Forms.Design.ScrollableControlDesigner & removing the properties by overriding the PreFilterProperties function as show below: protected override void PreFilterProperties(System.Collections.IDictionary properties) { properties.Remove("BackColor"); } But, doing so, this property is available to be set from the code. How can i remove this property fully? 2.I wants to create a property for the control which has sub properties, like the 'Location' property of a button, which has sub properties as 'X, Y & Locked'. My new property for the control must have some subproperties like this. How can i achieve this? 3.I wants to add a property to the user control which allows the user to select a color. When the user selects this property, it must display the same options which are displayed for selecting the color for the satndard properties like 'BackColor'. Then the user must be able to select the required color from these options & the value must be stored in that specific property. Kindly help me to acheieve the above scenarios Best Regards, Abhilash Chandran

    Windows Forms csharp question visual-studio winforms design

  • Adding & Removing properties of user controls
    A abyclassic

    Dear All, I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am facing 3 problems: 1.In this control, i wants to remove some of the properties which are available by default to the controls. These properties must be removed from the 'Properties window' of the usercontrol. Also the user must not be able to set these properties using code. I am able to remove the properties from the 'Properties window' by inheriting a class from the System.Windows.Forms.Design.ScrollableControlDesigner & removing the properties by overriding the PreFilterProperties function as show below: protected override void PreFilterProperties(System.Collections.IDictionary properties) { properties.Remove("BackColor"); } But, doing so, this property is available to be set from the code. How can i remove this property fully? 2.I wants to create a property for the control which has sub properties, like the 'Location' property of a button, which has sub properties as 'X, Y & Locked'. My new property for the control must have some subproperties like this. How can i achieve this? 3.I wants to add a property to the user control which allows the user to select a color. When the user selects this property, it must display the same options which are displayed for selecting the color for the satndard properties like 'BackColor'. Then the user must be able to select the required color from these options & the value must be stored in that specific property. Kindly help me to acheieve the above scenarios Best Regards, Abhilash Chandran

    Windows Forms csharp question visual-studio winforms design

  • how to enable & disable USB ports from .NET applications?
    A abyclassic

    Thank you for ur reply. But, my requirement is slightly different. My application has to run on a system in which the USB ports are disabled by the system administrator. From my application i have to enable the USB drive, so that only a particular USB device must be able to use the USB drive. My application uses this USB device & finally when the application finishes using the USB device, i have to disable the USB drive again from the application. All the above actions i have to perform in a non adminisrator login. If you have any information regarding the same, plz let me know Best Regards, Abhilash

    C# csharp dotnet tutorial question

  • How to enable & disable USB ports from .NET applications?
    A abyclassic

    Dear All, i have developed a desktop based application using C#.NET, which require access to some USB based devices. I have to use this application on target PCs in which the USB port is disabled by the system administrator. From the application, i wants to enable & disable the USB drives programatically, so that no other application can use the USB ports, as per configured by the system administrator. ie, enable the USB port before the application require access to the USB port it & disable it after the use. I need to achieve the same when the application is running in a login, who doesn't have administrative rights. Is it possible to achieve the same using .NET framework? Do any one knows how to implement the same. If so, please inform me. Best Regards, Abhilash Chandran

    .NET (Core and Framework) csharp dotnet tutorial question

  • How to enable & disable USB ports from .NET applications?
    A abyclassic

    Dear All, i have developed a desktop based application using C#.NET, which require access to some USB based devices. I have to use this application on target PCs in which the USB port is disabled by the system administrator. From the application, i wants to enable & disable the USB drives programatically, so that no other application can use the USB ports, as per configured by the system administrator. ie, enable the USB port before the application require access to the USB port it & disable it after the use. I need to achieve the same when the application is running in a login, who doesn't have administrative rights. Is it possible to achieve the same using .NET framework? Do any one knows how to implement the same. If so, please inform me. Best Regards, Abhilash Chandran

    Windows Forms csharp dotnet tutorial question

  • how to enable & disable USB ports from .NET applications?
    A abyclassic

    Dear All, i have developed a desktop based application using C#.NET, which require access to some USB based devices. I have to use this application on target PCs in which the USB port is disabled by the system administrator. From the application, i wants to enable & disable the USB drives programatically, so that no other application can use the USB ports, as per configured by the system administrator. ie, enable the USB port before the application require access to the USB port it & disable it after the use. I need to achieve the same when the application is running in a login, who doesn't have administrative rights. Is it possible to achieve the same using .NET framework? Do any one knows how to implement the same. If so, please inform me. Best Regards, Abhilash Chandran

    C# csharp dotnet tutorial question

  • multilingual applications
    A abyclassic

    thanks for ur suggestion.. but how to check it? & is it possible to make textbox, messagebox & menu items to support unicode? a per my observation, they are acting as notepad. not supporting rich text. i copied the same special chaacters in txt & rtf files. In rtf file, the characters are displayed pefectly. But, in txt file, they are displayed as squares, same as in textbox, messagebox & menu items.

    C# csharp visual-studio help tutorial learning

  • multilingual applications using C#.net
    A abyclassic

    Dear all, i have developed a multilingual application using C#.NET in VS.NET 2003. Here i am using the resource files to get the required data based on the selected Culture. The display details are perfect for labels, buttons, richtext boxes etc... But, in the text boxes, messages boxes, Display name of the form & menu names only squares are displayed for some special characters based on the selected culture. Did anyone face the same problem. Kindly guide me to achieve the same so that i can display the details based on the selected languages/cultures in all the controls Best regards, Abhilash

    Visual Studio csharp visual-studio help tutorial learning

  • Multilingual applications using C#.net
    A abyclassic

    Dear all, i have developed a multilingual application using C#.NET in VS.NET 2003. Here i am using the resource files to get the required data based on the selected Culture. The display details are perfect for labels, buttons, richtext boxes etc... But, in the text boxes, messages boxes, Display name of the form & menu names only squares are displayed for some special characters based on the selected culture. Did anyone face the same problem. Kindly guide me to achieve the same so that i can display the details based on the selected languages/cultures in all the controls Best regards, Abhilash

    .NET (Core and Framework) csharp visual-studio help tutorial learning

  • multilingual applications
    A abyclassic

    Dear all, i have developed a multilingual application using C#.NET in VS.NET 2003. Here i am using the resource files to get the required data based on the selected Culture. The display details are perfect for labels, buttons, richtext boxes etc... But, in the text boxes, messages boxes, Display name of the form & menu names only squares are displayed for some special characters based on the selected culture. Did anyone face the same problem. Kindly guide me to achieve the same so that i can display the details based on the selected languages/cultures in all the controls Best regards, Abhilash

    C# csharp visual-studio help tutorial learning

  • Programatically enable & disable USB drives using C#
    A abyclassic

    Dear All, i have developed a desktop based application using C#.NET. In this application, i wants to enable & disable the USB drives programatically. ie, enable the USB port before the application starts using it & disable it after the use. I need to achieve the same when the application is running in a login, who doesn't have administrative rights. Is it possible to achieve the same using .NET framework? Do any one knows how to implement this. If so, please inform me. Best Regards, Abhilash Chandran

    C# csharp dotnet tutorial question

  • can we use .net dlls in win32 applicatiuons
    A abyclassic

    i tried creating the tlb of the dll. The is created, But again the application gives the same exception. Whether we have to include this tlb also in the delphi(pascal) application? How can i acheieve that. At present i am declaring the functions in the dll in application & using it. Also, when we deploy the application & install it in a target PC, whether it will take care of the registration of the dll in the target PC also. Means, when we run the setup of the application, it must handle all the issues. If i go for a COM+ component, whether i can achieve the same? Thanks & Regards, Abhilash

    C# csharp delphi data-structures tutorial question

  • use .NET dlls(C#) in win32 applications
    A abyclassic

    Dear all, i have developed a dll using C# & Visual Studio 2002. I wants to use this dll in win32 applications, developed using pascal & Delphi. Is it possible. When i tried, i got EAccessViolation exception while calling the functions of the dll. Kindly suggest me the steps for the same. Is it possible to use a COM+ object in win32 application? My requirement is as follows.. When i install the application in a target PC, witout any manual registration of the Component, the application must work properly. Means, once we run the setup of the application, it must take care of all the issues. Thanks & Regards, Abhilash

    Article Writing csharp delphi visual-studio com 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