|
Override OnResize and put your logic in there. I would dock one to the right, one to the left and on to fill. Then in OnResize (and on startup probably) I would set the width of the left to one third of the from, the same with the right one and the fillled one in the middlte should automatically occupy the last third.
|
|
|
|
|
Thank you Mr. Rohde.
Will try.
|
|
|
|
|
To Samoan.
VS 2005 doesn't know what it is and so wont allow me to manually add it (with the correct lettering "sm-WS".
What options do I have left apart from rolling it by hand ? More to the point were can I dig this information up. Everywhere seems to offer wonderful tips on localisation for supported languages, but not a whisper for developing for unsupported languages.
Any links greatly appreciated.
|
|
|
|
|
Hi,
I have a composite control that inherits from WebControl. The purpose of this control is to encapsulate a lengthy form that will be used throughout my application. The composite control renders as 10 textboxes and 2 datagrids. I build the datagrids dynamically:
private void LoadLicenseUsersDataGrid()
{
TemplateColumn firstNameColumn = new TemplateColumn();
firstNameColumn.ItemTemplate = new CreateItemTemplateTextBox("FirstName", "txtFirstName", false);
firstNameColumn.HeaderText = "First Name";
TemplateColumn lastNameColumn = new TemplateColumn();
lastNameColumn.ItemTemplate = new CreateItemTemplateTextBox("LastName", "txtLastName", false);
lastNameColumn.HeaderText = "Last Name";
TemplateColumn emailColumn = new TemplateColumn();
emailColumn.ItemTemplate = new CreateItemTemplateTextBox("Email", "txtEmail", false);
emailColumn.HeaderText = "Email";
BoundColumn BoundColumn = new BoundColumn();
BoundColumn.DataField = "ID";
BoundColumn.Visible = false;
this.dgLicenseUsers.Columns.Add(BoundColumn);
this.dgLicenseUsers.Columns.Add(firstNameColumn);
this.dgLicenseUsers.Columns.Add(lastNameColumn);
this.dgLicenseUsers.Columns.Add(emailColumn);
int intLicenseCount = 0;
DataTable dtLicenseUsers = this.objTechnicalQuestionairre.LicenseUserCollection.Copy();
dtLicenseUsers.PrimaryKey = null;
dtLicenseUsers.Columns["ID"].AllowDBNull = true;
DataRow drRow = null;
foreach(DataRow drAccessTypeRow in this.objTechnicalQuestionairre.AccessTypeCollection.Rows)
{
intLicenseCount += (int)drAccessTypeRow["NumberOfLicenses"];
dtLicenseUsers.Columns.Add(drAccessTypeRow["AccessCode"].ToString());
TemplateColumn accessColumn = new TemplateColumn();
accessColumn.ItemTemplate = new CreateItemTemplateCheckBox("chkAccess" + drAccessTypeRow["AccessCode"].ToString(), "", false);
accessColumn.HeaderText = drAccessTypeRow["AccessCode"].ToString();
this.dgLicenseUsers.Columns.Add(accessColumn);
}
int j = dtLicenseUsers.Rows.Count;
if (j < 10)
{
j = 10;
for (int i = 0; i < j; i++)
{
drRow = dtLicenseUsers.NewRow();
dtLicenseUsers.Rows.Add(drRow);
}
}
else
{
for (int i = 0; i < j % 10; i++)
{
drRow = dtLicenseUsers.NewRow();
dtLicenseUsers.Rows.Add(drRow);
}
}
this.dgLicenseUsers.DataSource = dtLicenseUsers;
this.dgLicenseUsers.DataBind();
}
Note: I prefill the datagrid with 10 blank rows that the user will be able to fill in.
The form renders perfectly but if I type text into the 3 columns of the datagrid, which are textboxes, and postback I am not sure how to capture the typed text. I call the above function in Render so I understand that each time the form renders the control is regenerated. So how do I only render the datagrid on PageLoad so that the typed text is available to me on each postback? Does my control have to implement IPostBackDataHandler?
|
|
|
|
|
Well, many of us have had the same problem.
The Only Way I know to do this in code Behind is adding a column to do the Edit, Update .... in the code behind of the UpdateCommand.
Have a look to the Sample
<br />
private void DataGrid1_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)<br />
{<br />
dst.CategoriesRow Category = this.dst1.Categories.FindByCategoryID ( this.DataGrid1.DataKeys [ e.Item.ItemIndex ] );<br />
<br />
Category.CategoryName = e.Item.Cells [ 1 ].Text;<br />
Category.Description = e.Item.Cells [ 2 ].Text;<br />
Category.CategoryName = e.Item.Cells [ 3 ].Text;<br />
<br />
BindData ();
}<br />
Regards
Ricardo Casquete
|
|
|
|
|
Hi, I've instantiated a .net dll class in a windows application (winapp1), now I'd like to set a property of its by referencing it from another application (winapp2). In plain English, how can I get a .net dll object running in another application and change its state from my application?
Thanks in advance
Giovanni
|
|
|
|
|
|
I have got VS 2003 with framework 1.1
I want to install framework 2.0
If i only install the framework 2.0 will it work with VS-2003.
|
|
|
|
|
You can not build 2.0 assemblys with VS 2003.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
In .net remoting,how to call the interface what's the style
"http(s)://thd address of ip//service/thenameofmethod.do?¶m1=#####¶m2=#####",
if you hava a idea about it ,tell me ,thanks a lot !
|
|
|
|
|
Hi
Was just wondering if anyone else out there has tried this before...
Basic problem is that I need the currently logged in user's name (ie. the username he used to get into his workstation). Anonymous login has to be allowed, but if the user is logged into the domain, I want his name.
This is to enable seamless login for users using a web app. Security isn't an issue here (yet...), and the app is internal use only, but I do need the user's (domain) login name. Nothing more.
If you know linux; my environment is probably similar to the following:
* Domain controller: Linux; OpenLDAP
* IIS on Windows 2003 Server
* Linux desktops with Firefox
(This should provide a parallel if you're more familiar with Linux than Mac - answers to this might get me closer to the goal).
But the actual environment:
* Domain controller on Mac OS X 10.4 server (running LDAPv3; based on OpenLDAP, I believe)
* IIS running on Windows 2003 Server
* Mac desktops (OS X worstations) - users working off Firefox and Safari
Question is how to get the user's currently logged-in domain username, through a web app.
Thanks and regards
ehuysamer
|
|
|
|
|
i ask a question a bout the identification of hardware (getting serial numbers manufactureres models types )
under linux OS and if it is possile to use .framework or any thing like that in linux OS
am
|
|
|
|
|
|
Can anybody tell me the issues involve in compiling a .net project(of c#)distributedly?
sam
|
|
|
|
|
can anyone help me regarding how to retrieve data from sharepoint SQL Db through any of the sharepoint service.
I am having admin right in my machine but it's not the server where sharepoint has been installed. so can i write a c# application to access sharepoint services
anvar sadath
|
|
|
|
|
I've heard C# converts easily to C++ for Mac, but I haven't found anything where I could learn more on this. Does anyone have any knowledge of existing converters/issues/sites with info/etc.
Much appreciation!
RABB17
"C#ly, don't wear SUN-glasses."
|
|
|
|
|
Rabbit17 wrote: I've heard C# converts easily to C++ for Mac
LOL - seriously ?
I would imagine that conversion to Java would be *possible*, but I don't see any reason that C# would port to C++ on the Mac or the PC easily. For starters, C# is full of libraries that C++ does not offer.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have created a windows form application in Visual J# and on this application I have a tabcontrol. The problem I am having is that I have a "richtextbox" on one of the tabs(Tab B) and when I receive information in Tab B and i click on it, The entire form freezes(bascically it does nor respond and the program crashes). I have realised that if I have Tab B open before the message is received, I receive that message and everything is fine. Is there anyone that can solve this problem?????
p.s. Thanks in advance to all responses.
dipset_dave
|
|
|
|
|
Should work fine; can you provide the code for this?
|
|
|
|
|
I want to deploy .net framework with my vb.net windows application if it is not exist on the target machine
so how to do this?
what tools do i need?
Regards,
Maher Abu Zer
|
|
|
|
|
Hello,
You can let the installer to download it from internet, or you can include it in the installation project (the project if that it will add 10 Mb. to your installation file), here you have the details:
HOW TO: Distribute the .NET Framework with a Visual Studio .NET Deployment Project
http://support.microsoft.com/default.aspx?scid=kb;en-us;324733
/// -----------------------
Braulio Díez
http://www.bdiez.com
/// -----------------------
|
|
|
|
|
Hi,
I'm currently working on a user control which can scroll its contents. For this I'm using a ScrollableControl. When disabling it the scrollbars don't appear disabled (although they cannot be modified). Does anyone know a way to make them look disabled?
|
|
|
|
|
Not sure I get you. How to scroll bars look when disabled?
I never noticed before.
My Blog[^] FFRF[^]
|
|
|
|
|
No. I know how the look (they get some sort of greyed out). But when I set the Enabled property of my control (which inherits from ScrollableControl) to false the scrollbars still appear enabled (although not reacting to clicks).
|
|
|
|
|
hi
i have a problem i have one windows service which i am installing from one other exe(in process.start simply using cmd.exe and installutil) now i want to combine these both exes into one for deployment.
see tell me how i will use path for the windows service when i will embedd it into the one whole exe(in cmd.exe installutil)
shan
|
|
|
|