|
|
Is there a .NET framework equivalent of lists, vectors, maps, etc. in the C++ standard library?
Thanks,
--Jordan
|
|
|
|
|
There are quite a lot of different collections, like ArrayList, HashTable, Queue, SortedList, Stack, HybridDictionary, ListDictionary, OrderedDictionary, StringCollection, StringDIctionary, etc., and base classes to easily make specialized collections yourself.
If you use framework 2.0 you also have strongly typed collections like List<T>, Dictionary<T,T>, LinkedList<T>, Queue<T>, SortedDictionary<T>, SortedList<T,T>, Stack<T>, etc.
---
b { font-weight: normal; }
|
|
|
|
|
I have an MDI Parent form with some toolbars docked to all four sides. I found the MDIClient control in its Controls collections, then I removed it and replaced it with a SplitContainer, placing the MDIClient control in Panel1. In Panel2, I placed another control. The SplitContainer is oriented so that Panel1 is above Panel2, so it appears as though the MDIClient control is now above the control in Panel2 (just like VS2005 appears with one form docked at the bottom).
My problem is this:
The SplitContainer appears to be partially hidden by the toolbars that were already on the MDI Parent form.
Any suggestions/ideas???
|
|
|
|
|
Dear snickel65:
Using other gadgets I have the same problem!
(I have three gadget from North to South;
in order to allow the South-est to resize properly
I attempted to use SplitContainer but it does not
work.)
If you find solution, please let me know.
Regards.
|
|
|
|
|
Hello everyone...
Im trying to create an installation wizard for an application that i have written, I know that it could be done using the "Setup n Deployment" project in VS dot net..
All i require to do is, on click of the install wizard icon(that i create using VS DOT NET), a .reg file(that i have created using regedit)should be invoked that will create a button on the IE browser.
can i make this happen?
IS there any installation wizard creation manual/doc/tutorial available?
Pls help me...
Regards
Annie (Jo)
|
|
|
|
|
If you're using VS 2003 it isn't too hard, but if you've upgraded to VS 2005 you can use the Publish feature to create the installation.
Try this link if you're using VS 2005:
[^]
Lost in the vast sea of .NET
|
|
|
|
|
|
Using Microsoft Visual C++ .NET (2003)
I put three "GroupBox" into a Form.
Each GroupBox contains three items,
(ProgressBar, CheckedListBox, ListBox)
and the items are Anchored to the four sides
of the GroupBox. The Items are do resize properly (I think.)
I would like to have the three GroupBox as three
equally sized columns but can not achieve that via Anchoring.
What would be the proper way to size
dynamically the GroupBox to occupy one third of the
window for any window size?
(I hope the items will still resize properly inside
the GroupBox.)
Thanks for any guidance/example.
|
|
|
|
|
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."
|
|
|
|