.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

RoundedCornersExtenders, change border width?

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :ASP.Net

Is it possible, either through layout tricks, or modifying the roundedCorners.js file, to change the default border width of the roundedCornersExtender?  I would like to make the border a little thicker than the default 1px width.

I have read a few people who have tried to do this but no one could seem to come up with anything, and most of the posts were several years old, so I wanted to check back and see if anyone knows if this is possible?

Thanks in advance!

View Complete Post

More Related Resource Links

How to change the size (width) of scorecard columns in Dashboard Designer?

Is there any way to change the size (width) of scorecard columns in Dashboard Designer?

How to change background or border brush color of an element while it has template in xaml?

Dear all, I want to change some style property of one element in code behind while that element already had a data template in xaml. as an example this is a code for my window: <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300" Loaded="Window_Loaded"> <Window.Resources> <Style x:Key="ButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <ControlTemplate.Resources> <Storyboard x:Key="OnMouseEnter1"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.1"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Story

How to change a Left Navigation width in sharepoint

Hello,   Any body help me out how to change or modify the width of left navigation..   thank you  

Change dimensions of image if width exceeds certain amount


(In a different post  I asked about how to access an Image control held in a FormView template. This topic has been mixed into it, so I thought I would start a fresh post only about this problem.)

I would like to perform a simple check to ascertain the width of an image. If it exceeds a certain dimension I would like to give the image a width property. I understand this doesn't not affect file size, just dimensions, but it is for presentation purposes. I'm still learning VB, but the code below is what I have tried so far:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim LargeImage As Image = DirectCast(FormView1.FindControl("Image1"), Image)

        Dim Width As Integer
        Width = LargeImage.Width.Value

        If Width > 560 Then
            LargeImage.Width = Unit.Pixel(560)
        End If

    End Sub


Thanks in advance,


Change form width ???


With this code I can change the width of a panel til the width of the form - the useable part of the form !

  public partial class Form1 : Form
    public Form1()

    private void Form1_Load(object sender, EventArgs e)
      Panel aPanel = new Panel();
      aPanel.BorderStyle = BorderStyle.FixedSingle;
      aPanel.Width = ClientSize.Width;

How can I do it the other way around = set the form width to the width of a panel ?

It seems like the ClientSize.Width is READ ONLY !

I can use

this.Width = aPanel.Width + 8;

but what is this spooky 8 ????


Best regards KSor, Denmark

Change Site.Master width in CSS


Hi, I'm all new to ASP.NET but not to CSS/HTML.

I created a new WebApplication in Visual Studio 2010. In the CSS document (Site.css) it says:

    width: 960px;
    background-color: #fff;
    margin: 20px auto 0px auto;
    border: 1px solid #496077;

And the first div tag in the Site.Master file is:

<div class="page">

If I change that 960px to 400px for instance, it does not change the width of my document. Even if I write 0px it does not "recognize" the change.


Listbox border change padding



In snoop I have noticed that the Listbox has a Border child node with a padding="1,1,1,1" (valuesource is parentTemplate).

How can I change this padding to 0?

Here is the wpf code:

     ItemsSource="{Binding AlarmItems}"
     ScrollViewer.VerticalScrollBarVisibility="Disabled" >               

how do I change BORDER COLOR for a TEXTBOX (and any other winform control) in a windforms app in VB

Does anyone have the VB code to change  border colors for winform controls such as a textbox?

Change the width of the TextBox at runtime depending on it's MaxLength


I know the MaxLength of the TextBox and depending on that I want to change width of the textbox at runtime.

WPF: how to change groupbox border color in a special case?


our application include several groupbox. so we define general style for the groundbox as following:

<BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
 <Style x:Key="GeneralGroupBoxStyle" TargetType="{x:Type GroupBox}">
  <Setter Property="BorderThickness" Value="2"/>
  <Setter Property="Template">
      <ControlTemplate TargetType="{x:Type GroupBox}">
        <Grid SnapsToDevicePixels="true">
            <ColumnDefinition Width="6"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="6"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="6"/>
            <ContentPresenter Grid.ColumnSpan="2" 
                Margin="{TemplateBinding Padding}" 
                Grid.Row="2" SnapsToDev

How to change border color of GroupBox in C#.NET?


     I need  to change the Border color of a Groupbox In C#.NET. How can i change it ?

Thanks in advance,

How do you change the width of a multiple line of text box on a custom list form?




I have a custom list that has been added using SharePoint Designer to a web part page as a custom list form (Insert - SharePoint controls.)

The list has many single lines of text and one multiple line of text.

The multiple line of text is too wide - I need to make it narrower but how?





Multibinding fails to change Button.width


I have a button, and want to change it's width by binding it to some properties (for example to make it double size of it's parent canvas)

so in my xaml i declare button:

<Button Height="55" Name="button22" Content="123">
 <MultiBinding Converter="{StaticResource xamlWidthMC}">
  <Binding ElementName="canvas2" Path="Width" />
  <Binding ElementName="canvas2" Path="Width" />

 and declare it's IMultiValueConverter

<Window x:Class="WpfApplication1.MainWindow"

How to Localize Windows Forms and Change the Language at Runtime

Localization is the process of customizing your application to a particular language, culture or locale. Visual Studio provides support for localizing Windows Forms with much ease. In this article, we will see how to localize windows forms and give the user the ability to change to his preferred language at runtime.
When you run a localized application, the appearance is determined by two culture values. The UICulture property is used to specify which resource files will be loaded for the form. The Culture property, on the other hand, determines how strings such as dates, numerals, and currency amounts are formatted.
Let us see the steps required to create a localized form. You can then expand this example and adopt the same approach for the rest of the forms in your project

Selected to change the background color of the page



As this site, http://www.borfin.com.tr/genel/Default.aspx, How can I change the background color selected pages.

Bug: Does not change column type from nvarchar to ntext


Scenario: If you create a table with a column of type nvarchar, populate it with some content and try to modify it using the WebMatrix editor, from nvarchar to ntext, it does not display any error message or warning that this is not possible. It silently saves and reverts the change, back to nvarchar. Wasted some hours on this issue as I thought my column was ntext, but in fact was still nvarchar.

Expected behavior: It should change to ntext, or if SQL CE doesn't support that, it should notify the user that no change was applied.

How to change the default page base class?


I've tried setting the <pages pageBaseType="DynamicWebPage" /> value in web.config, but when I response.write out the page type, I'm still getting Microsoft.WebPages.WebPage.

I'm simply trying to sub-class WebPage and add some additional functionality such as a dynamic PageData dictionary similar to Phil Haack's dynamic ViewData dictionary.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend