Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gib99
  • Order by date
  1. gib99

    using linq to get unique values

    Hello, I'm a complete newbie to linq. I'm trying to figure out how to get an array of objects out of another array of objects filtering by distinct fields. The source array consists of instances of a clsFileRecord class. It has these fields: bool Exists; string FolderPath; string FileName...
  2. gib99

    UserControl rendering before ready

    Hello, Please look at the three attachments above. The first one show what my form looks like before I click the Sync button in the bottom left corner. This looks fine. The second one shows what happens immediately after clicking the sync button. It shows the panel that's supposed to fill the...
  3. gib99

    manipulating controls across threads

    Hello, I'm trying to do some multithread using Invoke() in order to set the values of Window Form controls, and I need some help. The situation is this. I have a form on which there are many controls. There is a "connect" button on this form. When this button is clicked, it attempts to connect...
  4. gib99

    login not working

    Hello, We have a web app that uses a WCF service and uses Active Directories for authentication. We're have a problem with the login process which only occurs if the user enters the right username but wrong password. If this happens, the application just hangs in a state of limbo. It doesn't...
  5. gib99

    Creating two relations to the same datatable field

    Oh, I see. You're right. I was able to create two relations by changing the name of the first one and then linking the other FK to Course.ID. Thanks for the help.
  6. gib99

    Creating two relations to the same datatable field

    I attached a screen shot of the designer. It looks like it recognizes which is the foreign key and which is the primary key. http://files.engineering.com/getfile.aspx?folder=f390721d-4107-4803-8187-b37708473db9&file=courses.png
  7. gib99

    Creating two relations to the same datatable field

    Hello, I'm working in the dataset designer in Visual Studios 2012 and I would like to create two relations between two tables. The one table is the "Courses" table, and the other is the "CourseRelation" table. Basically, the CourseRelation table relates one course to another. So I want to...
  8. gib99

    Changing mapping in dataset

    I've recently changed the names of some of my columns in my database. I've updated my dataset in the Visual Studios designer to match those name. Yet I'm still finding lines like this in my XSD file: <Mapping SourceColumn="OldColumnName" DataSetColumn="NewColumnName" /> Also in my .Designer.cs...
  9. gib99

    making dataset table internal

    Hello, I created a DataSet in Visual Studios and I set its modifier property to internal (see attached). Yet the tables I create are still public. Why is this? Is there any way I can set the table access level to...
  10. gib99

    formatting decimals

    Hello, I'm trying to wrap my head around formatting decimals. I have a specification that needs to be met, and it's outlined as follows: I've read the following MSDN articles: http://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx...
  11. gib99

    GroupBox won't show up

    this" is the UserControl.
  12. gib99

    GroupBox won't show up

    Hello, I have a form with a UserControl inside it, and inside that UserControl is a GroupBox: Under certain conditions, I want to add another GroupBox below the first one. When those conditions are met, I add it dynamically as the following code snippet from the UserControl shows...
  13. gib99

    UserControl not fitting onto Form

    Thanks softhemc, Setting dockstyle to top worked.
  14. gib99

    How can I tell if resize is horizontal or vertical?

    Hello, I've got a UserControl responding to a resize event. In my resize event handler, how can I tell if the resize was horizontal, vertical, or both?
  15. gib99

    UserControl not fitting onto Form

    Hello, I'm having trouble getting my UserControl to fit snuggly in my panel. Here's a screen shot of what it looks like: The UserControl is in red and the panel I'm trying to fit it onto is in grey (the white is a ListBox in my UserControl). As you can see, it's going off the right edge of...
  16. gib99

    Can't add DataRow to DataTable

    Thanks Moregelen, I solved the problem by adding the row right after creating it. At first, I had this: DataRow row = myDataTable.NewRow(); row[1] = x; row[2] = y; row[3] = z; myDataTable.Rows.Add(row); But now I have this: DataRow row = myDataTable.NewRow(); myDataTable.Rows.Add(row)...
  17. gib99

    Can't add DataRow to DataTable

    Hello, I'm having trouble adding a DataRow to a DataTable. I create the DataRow like so: DataRow row = myDataTable.NewRow(); I add things to the row, then I try to add the row back to the table: myDataTable.Rows.Add(row); It tells me: "This row already belongs to this table." Ironically...
  18. gib99

    can't get by UAC even with signed certificate

    Hello, Sorry if this is the wrong place to post this. Please move it if it's inappropriate. I'm trying to write a program that can be run as an administrator but without the UAC prompt popping up. I'm thinking that creating a signed certificate to go with it is the answer. But I'm not sure how...
  19. gib99

    code thinks deleted stored procedure still exists

    Turned out I was creating them in the wrong database. Problem solved.
  20. gib99

    code thinks deleted stored procedure still exists

    Hello, I'm writing some code to create stored procedures in a database. In order to test it out, I deleted a stored procedure (right clicking in SQL Server 2008 and clicking on delete) and then ran my code to see if it would create it. My code looks like this: SqlCommand command = new...

Part and Inventory Search

Back
Top