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...
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...
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...
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...
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.
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
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...
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...
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...
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...
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...
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?
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...
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)...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.