User Profile
Collapse
-
I need to add that some of the tab stops are radio buttons I have grouped. -
windows forms & tab stops
I have a tab control on a windows form. I moved a bunch of stuff from one tab to another and then rearranged it but for the life of me, I can't get the tab stops to set. In the past I go to view -> tab order and then just click through the order I want. It's not working like that. What am I missing? -
-
Linked combo boxes (windows forms)
I have 2 combo boxes I want to tie together. Right now I have
C1.DisplayMembe r = "field1"
C1.DisplayValue = "field2
C2.DisplayMembe r = "field2"
C2.DisplayValue = "field1"
My thoughts were when they pick from one, it can change the other without a database hit and vice versa. I tried on selected index changed but it seems to be getting the value before the change.... -
Crystal Reports Error
I have a VS2005 project in my machine that creates a couple of crystal reports. My husband has the same project on his machine and we share it via source safe.
In the past I was developing on my XP machine and he was on Vista. Since upgrading me to Vista he can no longer run reports. We aren't sure what change on his machine, nothing comes to mind. But he cann't run reports anymore. He gets:
System.TypeInit ializationExcep tion... -
separate configs?
I'm looking to have my application accept a command line argument to specify if the user wants to use the training system or the live system. What is best practive for the db connection string?
Should I store 2 in the config and set the connection string globally based off the command line?
Or can I have 2 config files and switch which I read from?
Help is appreciated! -
Nested Repeater in a Datalist
I am nesting repeater in a datalist. I have done the relation thing in VB but now I'm trying it in C#.
<asp:Repeater id="rptCompetit or" runat="server" DataSource='<%# Container.DataI tem.Row.GetChil dRows("Division Relation") %>'>
But I get the error
Error 9 'object' does not contain a definition for 'Row' C:\Data\Website s\USKAPoints\To pTenRankedMembe rsOnly.aspx... -
IIS website limit
Someone said tehy read in some sharepoint documentation that IIS 6.0 has a limit of 64 websites allowed. Is this true? I can't find any documentation to back this up.
Thanks! -
Calling MDI Parent Function
I found
DirectCast(Me.M diParent, FormMdiParent). MyMethodInFormM diParent()
as an exabple of how to call a function in the parent from the child. I can't for the life of me figure this out in c#. Can anyone help?
All my Function does is hide items on the toolbar. The function returns nothing (i.e. void). -
c# checked list box help
Ok I fill a CheckedListBox this way
clbRoles.DataSo urce = objSecurity.Ret urnRoleList();
clbRoles.Displa yMember = "RoleName";
clbRoles.ValueM ember = "RoleID";
#1 Issue: I want to select certain items in those list for roles the user already has. I tried the following but the last part doesn't work. How do I get the ID of the item as I am... -
Login Form then MDI form
Is this not possible? I had my app all running nice, then I addd a login form that comes up first NOT inside the MDI, just by itself. Then I had the login form open the MDI form and the MDI opens and closes and bam, the app is no longer playing.
Is this not possible? Do I have to make my Login form inside the mdi? Then how do I prevent them from going to a menu item until they do the login stuff?
Thanks in advance!... -
To be more explicit, I want to know if I can store their user ID in a way that I can get to it from every form? I need to store their userid every time something is written to the database on every form.
Do I have to pass it to each form or is there a way I can store it for the entire app and retrieve it from anywhere?...Leave a comment:
-
I want to pull it from a login window and the database. Some may not be on a domain or have a user name to track. But if I log them in via a form and comparing against the database, how can I store that user ID and the fact that they are logged in?Leave a comment:
-
keeping track of user in a Windows App
I know in ASP.NET, I can use the User.Identity to keep track of the logged in user. How can I accomplish the same task with a windows app short of passing the id to each form.
Thank you in advance! -
foreach (DataRow row in dtData.Rows)
{
node = tvOffender.Node s.Add(row["Name"].ToString());
foreach (DataRow row2 in dtData2.Rows)
{
child = node.Nodes.Add( row2["RegistrationID "].ToString(), row2["Name"].ToString());
}
}
...Leave a comment:
-
-
-
...Code:// fill the tree node foreach (DataRow row in dtData.Rows) { node = tvOffender.Nodes.Add(row["OffenderName"].ToString()); //get subs daData2 = new OleDbDataAdapter("SELECT LastName + ', ' + FirstName + ' ' + MiddleName + ' (' + convert(varchar(10), InsertDateTime, 101) + ')' AS Name FROM RegistrationLeave a comment:
-
TreeView
I built a treeview from a datatable on a windows form, but I am not understanding fully. I could not find anywhere to tell it what the id was going to be. My now I am showing has an associated ID. How do I assign this ID no the child nodes and then how do I pull out the id of the child node they clicked on?
Any help would be much appreciated.
- Lisa -
No activity results to display
Show More
Leave a comment: