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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Change alignment of winform title bar to center

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :Windows Application
Hi, How can I chaneg titlebar text alignment to center in winform (C#.Net). Regards, Shweta  

View Complete Post

More Related Resource Links

center alignment of web page


Hiiii Coders,

I have build a website . Now what i want is that it should be centralized according to resolution i.e.. on increasing resolution its margin from both sides should be equal.

Remember I have completely done with my website.

How can i get it done

plz provide some code snippet

thanx and regards 

Is it possible to change the title bar background and the font style on default template?



Is there any way to change the default top link /title bar picture and the fonts of the title without breaking anything in the layout/structure?

I have changed the theme to Obsedian and I would also like to change the picture of the title bar of this theme and also the font/style of the title, top link bar, menus..etc. Is there a way to do this?

Please note: I am using WSS 3.0 and I am not the Administrator of the sharepoint. I am only the site admin of some sites on this sharepoint. I can do some basic customization using SPD.

Basically, what I am trying to do is that I want to set up a sharepoint site, however I want to make it NOT look like a sharepoint site.Well I know this is possible, but for my case it might be just partially possible due to the limitation that I am not the Site collection admin and hence I do not have direct access to the server itself.

What I want is to hide most of the sharepoint links/menus/bars, etc and use my own buttons/hyperlinks etc .. for user to navigate on the sites.

Thanks in advance for your help/advices.



Change Text of Sharepoint Form Dialog title Bar

Hi, I am having Sharepoint 2010 RTM Trial on Windows Server 2008 SP2. I have published custom infopath form to sharepoint List. I have two views in that form, One is called AddItem and The other one is called EditItem. I have use the infopath rule to switch views depending on some condition and it is working fine. But when the view is switched to EditItem, I want to Customize the Title bar of Form Dialog to my custom text.... Can anybody have an answer ? Regards

How can I change the WPF window title bar size through Interop services

Hi all,      I want to use my custom title bar in my custom window. In that need a title bar with more height than default widow title bar height. How can I achieve this through window Interop services???? Thanks in Advance.. Suresh.

Page title with Register symbol change in Master page on postback


I have a below Page title in my master page

<title>My Test Application Name&reg;</title>

It renders Fine with Register symbol after the text "My Test Application Name" on start of the page but on any postback the title turn into My Test Application Name&reg;

Kindly let me know what can i do with minimal effort to fix this issue

How to change(handle) title bar's Close button in WPF?


First of all I want to say why I want to do that

I have UI app which display and send(update)data into SQL Store Procedure<!-- [if gte mso 9]>starts I open a window and does nothing but to close it by clicking title bar's Close button still application send data to SQL SP.

If necessary I can add the windows code

thank you for advance.

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?

How to change the page(aspx) title from Usercontrol(ascx) the inside the page(aspx) (asp.net 1.1) ??




I have user control(ascx) inside  the page(aspx) and from the code behind of that user control How can I change the page(aspx) title??


Note : Please my Question about asp.net 1.1


And thanks with my best regarding


Programmatically change DisplayName/ Title for custom content type


I've created a custom content type with the following code.

if (currentWeb.ContentTypes["My Content Type"] == null)
  var myContentType =
    new SPContentType(currentWeb.AvailableContentTypes[new SPContentTypeId("0x01")],
              currentWeb.ContentTypes, "My Content Type");


After that I add this content type to a generic list. If I now click on "New element" on my list ribbon I can add a new item with displayname "My Content Type". How can I change this value as I want to name my content types like "xxx content type" but don't want to see "xxx content type" in the "New element" action.

I expected the name of the content type to be some kind of internal and I'm looking for something to be change the displayname or title to be able to display something different. If I didn't made myself clear, I'll try to be more explicit. Thanks in advance.

Change Top Nav "Home" Link without changing site title?


Is it possible to change the top navigation bar "home" link (i.e. the selected top-left navigation item) without changing the site's title?

This is for a site configured with the Global Navigation set to: "Display the navigation items below the current site".

So, for example, if the site is called "Team Site", then the top-left navigation link will be called "Team Site". I would like to change the navigation link text, but keep the site title.

Visual Web Parts - programmatically change Web Part Title not working



I have four custom made Web Parts (based on the Visual Web Part template) that show a filtered set of data from various lists. These work just fine on my front page (which is a Publishing enabled page/site). Each Web Part has some functionality for setting a date filter on the set of data. Now, on every load I generate a string which tells what the current filter is (default filter, custom set date filter +++) and set this string to the Web Part's Title. This text then shows up in the Web Part's header. All this works just fine on the front page.
However, I also have a few sub sites that are based on either the Blank Site or a Team Site and on these sites setting the Web Part's Title property doesn't work. Well, it works, but doesn't get rendered. If I do a "Edit page" or go to one of the Web Part's properties, all the Web Parts' headers get updated to the correct text. But, the next time I load the page, it's back to some old value. 

I dont' get it! Does anyone know what might be causing this?


How to change the display name for LinkTitle or Title field in a Custom List programatically


We have a requirement, where we need to create a list from "Custom List" Template, through a console application.
But we need to change the Display Name of the column named "Title" created by default to something else say "CategoryName". We do not want to remove the column but only change its display name, so that the column with name "CategoryName"still has a hyperlink and ECB menu attached to it..

The same can be done by going to list settings and changing the name of the Title column, but I am not able to figure out how to do it progrmatically.


"Title"].Title = "Some Other Name";
CustomListName.Fields["LinkTitle"].Title = "Some Other Name"

How to change Feature Title Dynmically?



I have one issue in sharepoint 2007. I created feature as site Administrator level ex(MySite) . When i click that feature it's redirecting to \_layouts\Abc.aspx page. On that page contining "Ok" Button. In button click event i want to change  my feature title "Mysite" to "AnilSite".

Please help me how to develope this feature.




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.

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