|
WindowState, I believe, is the property you want.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
open the properties of the page u want to maximize and set the property of "Window State" that is the very last property in the layout poperties if u are working with .Net 2000.
set the property to maximized
hope this helps.
|
|
|
|
|
Once again, thank you very much guys!
|
|
|
|
|
Hi,
I want to allow the user to right click on one or more files in the Explorer and then select a custom context menu entry like "Process with myProgram" (beside "Open", "SendTo" etc.).
I found out that it is quite easy to add such an entry for a Folder. To do this you just have to set up a new SZ entry in the System-Registry under "HKEY_CLASSES_ROOT -> Folder -> shell -> Process with myProgram -> Command" which contains the path to the program as value.
But that does not work with special file types. Does anybody have an idea how to do that?
Thanks in advance!
Alexander
P.S.: Working with Framework 1.1
|
|
|
|
|
This article Customize explorer's devious context menu[^] probably helps you.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thank you for this interesting article. I tried the test program and unfortunately it did not work (seems not to make an entry into the System-Registry).
But I´ll have a closer look into the code tomorrow.
|
|
|
|
|
Hi,
I have a small windows application that connects to the local directory and retrieves the list of users. Then, it is possible to display the data of the user by clicking on a button. I use LDAP://DomainName to connect and things "seem" to be working fine. I manage to get the different data of the user I select (name, country, address, email, phone etc...) however I am having a problem with the "memberof" property. For some users, I am able to retrieve the list of groups he belongs to but for other users the property returns an empty collection. I am using the following piece of code:
<br />
SearchResultCollection src = ds.FindAll();<br />
SearchResult sr = src[0];
ResultPropertyValueCollection memberOf = sr.Properties["memberOf"];
ResultPropertyValueCollection givenName = sr.Properties["givenName"];<br />
ResultPropertyValueCollection lastName = sr.Properties["sn"];<br />
ResultPropertyValueCollection email = sr.Properties["mail"];<br />
ResultPropertyValueCollection address = sr.Properties["homePostalAddress"];<br />
ResultPropertyValueCollection zip = sr.Properties["postalCode"];<br />
ResultPropertyValueCollection country = sr.Properties["co"];<br />
ResultPropertyValueCollection title = sr.Properties["title"];<br />
ResultPropertyValueCollection city = sr.Properties["l"];<br />
ResultPropertyValueCollection state = sr.Properties["st"];<br />
ResultPropertyValueCollection phone = sr.Properties["telephoneNumber"];<br />
ResultPropertyValueCollection otherPhone = sr.Properties["otherTelephone"];<br />
ResultPropertyValueCollection fax = sr.Properties["facsimileTelephoneNumber"];<br />
Then I filter the memberof collection like this:
<br />
foreach (object role in memberOf)<br />
{<br />
string[] roleItems = role.ToString().Split(',');<br />
foreach (string temp in roleItems)<br />
{<br />
int i = temp.IndexOf("CN=");<br />
if (i >= 0)
{<br />
listGroups.Items.Add(temp.Substring(3));<br />
}<br />
}<br />
}<br />
This will give me the group name. I have tried displaying the whole "role" string without parsing, I thought maybe my parsing was not complete, but I didn't get anything either.
I am new in Active Directory stuff and I have no idea if there is another way to do things.
Any help would be greatly appreciated.
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Greetings,
On a web page I have create several Gridviews dynamically as a result of a stored procedure.
The gridviews are building well and filled with data.
I also created the select and edit button on every gridview.
I also created several eventhandlers, delegates etc for these gridviews.
But what button's) I press on the grid, I never get into the subroutines I created for these purposes.
Do I also need to create something (a connection) for the dynamically created buttons and the events?
Thanks for every advice
Code:
public partial class Planning3 : System.Web.UI.Page
{
//Delegates ====================
//
//GridViewSelectEventHandler Delegate; Represents the method that handles the SelectedIndexChanging event of a GridView control.
public delegate void GridViewSelectEventHandler(Object sender, GridViewSelectEventArgs e);
//Gridview Rowcommand
public delegate void GridViewCommandEventHandler(Object sender, GridViewCommandEventArgs e);
//Delegates END ====================
private GridView CreateGridObject()
{
string stemp = "";
try
{
GridView GridViewObj = new GridView();
GridViewObj.ID = "Ellende";
GridViewObj.AutoGenerateColumns = false;
//GridView1.DataKeyNames = new string[] { "EmployeeID" };
GridViewObj.AllowPaging = true;
GridViewObj.AllowSorting = true;
GridViewObj.PageSize = 5;
//Select button
CommandField cfSelect = new CommandField();
cfSelect.ButtonType = ButtonType.Button;
cfSelect.ShowCancelButton = true;
cfSelect.ShowSelectButton = true;
GridViewObj.Columns.Add(cfSelect);
//Edit button
CommandField cfEdit = new CommandField();
cfEdit.ButtonType = ButtonType.Button;
cfEdit.ShowEditButton = true;
cfEdit.ShowCancelButton = true;
GridViewObj.Columns.Add(cfEdit);
//We need to add several eventhandlers
GridViewObj.RowCommand += new System.Web.UI.WebControls.GridViewCommandEventHandler(this.GridView1_RowCommand);
GridViewObj.SelectedIndexChanged += new EventHandler(this.GridView1_SelectedIndexChanged);
GridViewObj.SelectedIndexChanging += new System.Web.UI.WebControls.GridViewSelectEventHandler(this.GridView1_SelectedIndexChanging);
//Do I need to create a connection between the button and events?
BoundField bfRecID = new BoundField();
bfRecID.HeaderText = "RecID";
bfRecID.DataField = "RecID";
bfRecID.ReadOnly = true;
GridViewObj.Columns.Add(bfRecID);
BoundField bfUserID = new BoundField();
bfUserID.HeaderText = "UserID";
bfUserID.DataField = "UserID";
bfUserID.ReadOnly = true;
GridViewObj.Columns.Add(bfUserID);
BoundField bfGroupUserID = new BoundField();
bfGroupUserID.HeaderText = "GroupUserID";
bfGroupUserID.DataField = "GroupUserID";
bfGroupUserID.ReadOnly = true;
GridViewObj.Columns.Add(bfGroupUserID);
BoundField bfManagerID = new BoundField();
bfManagerID.HeaderText = "ManagerID";
bfManagerID.DataField = "ManagerID";
bfManagerID.ReadOnly = true;
GridViewObj.Columns.Add(bfManagerID);
BoundField bfManagerYN = new BoundField();
bfManagerYN.HeaderText = "ManagerYN";
bfManagerYN.DataField = "ManagerYN";
bfManagerYN.ReadOnly = true;
GridViewObj.Columns.Add(bfManagerYN);
BoundField bfName = new BoundField();
bfName.HeaderText = "Employee Name";
bfName.DataField = "Name";
bfName.ReadOnly = true;
GridViewObj.Columns.Add(bfName);
BoundField bfTask1 = new BoundField();
bfTask1.HeaderText = "Task1";
bfTask1.DataField = "Task1";
bfTask1.ReadOnly = false;
GridViewObj.Columns.Add(bfTask1);
BoundField bfTask2 = new BoundField();
bfTask2.HeaderText = "Task2";
bfTask2.DataField = "Task2";
bfTask2.ReadOnly = false;
GridViewObj.Columns.Add(bfTask2);
BoundField bfTask3 = new BoundField();
bfTask3.HeaderText = "Task3";
bfTask3.DataField = "Task3";
bfTask3.ReadOnly = false;
GridViewObj.Columns.Add(bfTask3);
BoundField bfTask4 = new BoundField();
bfTask4.HeaderText = "Task4";
bfTask4.DataField = "Task4";
bfTask4.ReadOnly = false;
GridViewObj.Columns.Add(bfTask4);
BoundField bfTask5 = new BoundField();
bfTask5.HeaderText = "Task5";
bfTask5.DataField = "Task5";
bfTask5.ReadOnly = false;
GridViewObj.Columns.Add(bfTask5);
BoundField bfTask6 = new BoundField();
bfTask6.HeaderText = "Task6";
bfTask6.DataField = "Task6";
bfTask6.ReadOnly = false;
GridViewObj.Columns.Add(bfTask6);
BoundField bfTask7 = new BoundField();
bfTask7.HeaderText = "Task7";
bfTask7.DataField = "Task7";
bfTask7.ReadOnly = false;
GridViewObj.Columns.Add(bfTask7);
BoundField bfTask8 = new BoundField();
bfTask8.HeaderText = "Task8";
bfTask8.DataField = "Task8";
bfTask8.ReadOnly = false;
GridViewObj.Columns.Add(bfTask8);
BoundField bfTask9 = new BoundField();
bfTask9.HeaderText = "Task9";
bfTask9.DataField = "Task9";
bfTask9.ReadOnly = false;
GridViewObj.Columns.Add(bfTask9);
BoundField bfTask10 = new BoundField();
bfTask10.HeaderText = "Task10";
bfTask10.DataField = "Task10";
bfTask10.ReadOnly = false;
GridViewObj.Columns.Add(bfTask10);
BoundField bfTask11 = new BoundField();
bfTask11.HeaderText = "Task11";
bfTask11.DataField = "Task11";
bfTask11.ReadOnly = false;
GridViewObj.Columns.Add(bfTask11);
BoundField bfTask12 = new BoundField();
bfTask12.HeaderText = "Task12";
bfTask12.DataField = "Task12";
bfTask12.ReadOnly = false;
GridViewObj.Columns.Add(bfTask12);
BoundField bfTask13 = new BoundField();
bfTask13.HeaderText = "Task13";
bfTask13.DataField = "Task13";
bfTask13.ReadOnly = false;
GridViewObj.Columns.Add(bfTask13);
BoundField bfTask14 = new BoundField();
bfTask14.HeaderText = "Task14";
bfTask14.DataField = "Task14";
bfTask14.ReadOnly = false;
GridViewObj.Columns.Add(bfTask14);
BoundField bfTask15 = new BoundField();
bfTask15.HeaderText = "Task15";
bfTask15.DataField = "Task15";
bfTask15.ReadOnly = false;
GridViewObj.Columns.Add(bfTask15);
//We need to add several eventhandlers
GridViewObj.RowCommand += new System.Web.UI.WebControls.GridViewCommandEventHandler(this.GridView1_RowCommand);
GridViewObj.SelectedIndexChanged += new EventHandler(this.GridView1_SelectedIndexChanged);
GridViewObj.SelectedIndexChanging += new System.Web.UI.WebControls.GridViewSelectEventHandler(this.GridView1_SelectedIndexChanging);
return GridViewObj;
}
catch (Exception err)
{
return null;
Loghandling.SchrijfNaarLogfile(false, "frmPlanning3.aspx", "AddGridviewToNewTable", 0, err.Message + " " + err.Source + " " + err.StackTrace.ToString() + " " + err.InnerException);
string strScherm = "frmPlanning3.aspx";
stemp = "frmError06.aspx?Scherm=" + strScherm;
Response.Redirect(stemp);
}
finally
{
}
}
Peter Bellen
bellenp@schneider.com
|
|
|
|
|
Hi fellows, You may have seen printing option, 2 sheets per page on Microsoft Word. Well, if not then these are the steps for what i am talking about are: File--->Print--->Properties. The thing that matters to me is that I have found the exact same options and layout for Print 2 Sheets Per page on Acrobat Reader software. Does microsoft provide those functionality or is it also built by Acrobat. I want to know if I can provide the smiliar options for my small application would be nice. I would appreciated your answers.
Thanks
|
|
|
|
|
Hello,
I've got a combobox that needs to provide the following choices:
choice1
choice2
choice3
I've also got a dataRow with some columns, one of them is called "choice".
I want to do two things, and I believe it is possible to do but I don't quite know how to set this up. First, I want to make the "choice" column update to the selection made in the combobox. Additionally, I want to update the combobox to display the current value in the "choice" column, as it might have changed via another source - assume that there are two displays both providing the same controls and both pointing at the same dataRow. I'm wanting to keep this combobox "in sync" with the choice currently in the dataRow. How do I do this?
Thanks,
Matt
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
For the datarow to change when you select something in the combobox, it's easy, just add some code to the ComboBox.SelectedIndexChanged event.
table.rows[x][y].value = comboBox1.Value
but to do it the other way around, you either have to use events too (f.e. DataTable.RowChanged...) or you can use a timer that checks the datasource for change and updates the combobox.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
|
I suppouse the datarow is in a datatable..
if you have a datatable then you can bind it using BindingSource.
set the DataSource of the BindingSource object to the table object.
then set the DataSource of the ComboBox object to the BindingSource object and the DataMember and DisplayMember to proper column names from the table.
<br />
someBindingSource = new BindingSource();<br />
<br />
someBindingSource.DataMember = "tableName";
someBindingSource.DataSource = someDataTable;
<br />
someComboBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", someBindingSource, "Column2name", true));<br />
someComboBox.DataSource = someBindingSource;<br />
someComboBox.DisplayMember = "Column1name";<br />
someComboBox.ValueMember = "Column2name";<br />
someComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;<br />
life is study!!!
|
|
|
|
|
hello
i'm working in VS C#.Net 2000 with platform 1.1.
i want to load some web pages into my application and i do not know how to do this. there is no web control in the version of VS i'm working with so what may i do to load the web pages.??
all replies are appreciated.
|
|
|
|
|
You may use the axWebBrowser control.
|
|
|
|
|
which is explained
here[^]
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
thank you
u just made my day
|
|
|
|
|
Hi,
I have an urgent issue with an activeX control I have written in .NET 1.1 based on the listview. When I run the control on .NET 2.0 there is very bad flickering whereas on .NET 1.1 there isn't any. I am updating the listview asynchronously using BeginUpdate/EndUpdate along with a separate class that gets the data in a separate thread. The listview is then updated using the BeginInvoke approach.
I have dissassembled the .NET 2.0 listview and found that for some reason on every item add it executes a control.invalidate() hence forcing a repaint. Therefore, this leads me to believe that there is no way to avoid the flickering.
Does anyone have any information on this as I am surprised that the listview could be released with this problem?Anyway, this also leads me to believe that to resolve my problem is to force the application to use .NET 1.1. However, my control is hosted as an activeX object in IE. Therefore, I cannot just use the IExpore.Exe.config file to force IE to use of .NET 1.1 framework for obvious reasons. Therefore, my second question is.
Is it possible to configure an assembly to use a specific .NET framework version?My third question is.
If I am constrained with using an executable (having my own app domain) so that I can use my own config file to force the .NET framework version. Is it possible to host my activeX.exe in IE withing the <object> tags as I am now with my activeX control?I hope you understand my post and hope someone out there can help.
Many thanks in advance
|
|
|
|
|
I have the similar issue, if had get solution plz post here,
I have developed a web application using DevExpress componet. Most of the controls used in the application are DevExpress Component.
I use ActiveX object (which also use DevExpress Component to develop it) onside splitter pan.
My Problem is when I click any component(image,button, dataGrid Row) to do something/to fire respective event and mouse over on splitter bar then the activeX object kept inside splitter pan is flicker horribly and the flickering stops when mouse out from the component.
But when the splitter pan is collapsed and the activeX object is hidden then every click action on the page works fine.
What is the problem???
Thanks
Sharad Subedi
|
|
|
|
|
I'm trying to limit my app to a single running instance. The article I'm using to do it only works on win2k or higher, but not NT4. Is there a way to create a global mutex in NT4 to do this, or will I need to find an alternate implementation?
http://www.codeproject.com/csharp/singleinstance.asp?df=100&forumid=16026&exp=0&select=994563#__comments[^]
-- modified at 9:39 Friday 23rd March, 2007
Just did a bit of testing and it turned out I got the wrong understanding from the comment. The "global\" was only for aesthetic reasons and not needed to make the mutex visible system wide.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
I am developing a small time point of sale for a supermarket,but have no background with the different peripherals,like the bar code scanner and the receipt printers.
After creating the forms for submission and retrieval of data,calculate discounts and stuff.
How do i go about to work with the bar code scanner and reader and the receipt printers.
I need someone to point me in the right direcion.may be some links to read.
Cheers
Gibson
|
|
|
|
|
You should probably get your hands on the hardware and go from there. At my company all the barcode readers just work like keyboards (they type everything they scan, so the TextBox that has to contain the value has to be active, or something similar), and our labelwriters work with Crystal Reports, that generates barcodes.
goodluck
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Thanks for ur quick responce joon,
Butta please help me throw more light on what u r saying,how do i implement What you just said above into my application.
cheers
Gibson
|
|
|
|
|
Barcode scanners:
- not difficult at all, just think of it as a keyboard that types the values you scan really quickly (instantly). Most of them work this way. The only thing you need to do is
1. buy one
2. make your application so that the values are entered into the correct input fields
Label writers:
- usually work just like printers, just with a lot more options. To know everything I'd suggest
1. buying one
2. read up on crystal reports, or other reporting methods (crystal reports ships free with Visual Studio)
3. read some articles from CP: Barcode .NET Control[^]
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
For the barcode scanners part: you don't need to buy one.
Most barcode scanner really behave as a keyboard. In fact you plug it into a PS2 port with the keyboard. I used Intermec [^]scanners, they are very reliable. All you need to know the type
of the barcode that will be in use (mostly it is EAN-13).
As for the receipt printers[^]: they behave like normal printers with smaller paper size.
|
|
|
|