Ramy Mahrous 401 Postaholic Featured Poster

Give me your code "that loops for threads and kills them"

Ramy Mahrous 401 Postaholic Featured Poster

Sure, feel free to ask :)

Ramy Mahrous 401 Postaholic Featured Poster

Terminate the thread once it finishes its work, don't wait to loop on the threads and Kill them...

Ramy Mahrous 401 Postaholic Featured Poster

You need to make the grid movable, because of being a control you can take a look at http://fci-h.blogspot.com/2008/05/how-to-make-your-controls-moveable.html and add modify it to be applied on run time controls

Ramy Mahrous 401 Postaholic Featured Poster

Due to accessibility to controls event handler, you can modify it to public.

Ramy Mahrous 401 Postaholic Featured Poster

All in all it's control, and any control has Anchor property which helps you resize the control corresponding to form size.

Ramy Mahrous 401 Postaholic Featured Poster

Read about ADO.NET in http://msdn.com

Ramy Mahrous 401 Postaholic Featured Poster

BegineInvoke takes to arguments and seems you send just one argument.
1- Send Method name without "( )"
2- If the method is parameterless pass empty array of object new object[] {}

Ramy Mahrous 401 Postaholic Featured Poster

Copy the exception raised...

Ramy Mahrous 401 Postaholic Featured Poster

Use Invoke, I think you don't consider Asynchrony to use BeginInvoke and EndInvoke..
I think you don't need an example to include your code in method!

Ramy Mahrous 401 Postaholic Featured Poster

Are you sure you using correct database?

Ramy Mahrous 401 Postaholic Featured Poster

You can create your method and enclose this code inside Image1.Left = Image1.Left + 1 then invoke it.

Ramy Mahrous 401 Postaholic Featured Poster

You don't have column "UserName"

Ramy Mahrous 401 Postaholic Featured Poster

You're welcome, I'm happy you solved your problem, please mark it as solved.

Ramy Mahrous 401 Postaholic Featured Poster

I attached the images, I hope it clarifies...

ddanbe commented: Very intructive! This man knows what he his doing! +4
Ramy Mahrous 401 Postaholic Featured Poster

Look, my friend Danny, they're different
Array of Array == one-to-many, imagine every cell in the above array has all cells in the below array..
I know, I can describe it but I'll draw it for you...

Ramy Mahrous 401 Postaholic Featured Poster

oooh. I thought you did, take your time, best of luck!

Ramy Mahrous 401 Postaholic Featured Poster

Very great :) please mark this thread as solved.

Ramy Mahrous 401 Postaholic Featured Poster
Ramy Mahrous 401 Postaholic Featured Poster

First of all your database design isn't correct, or you've another opinion? discuss that with me..
I don't need to waste time in writing SQL Statement on invalid database design, your query isn't hard plus I don't know why you used distinct in your solution as you just need the first time the user took the exam!!

Ramy Mahrous 401 Postaholic Featured Poster

haaaa, give me your tryings friend :)

Ramy Mahrous 401 Postaholic Featured Poster

Mark it as solved please!

Ramy Mahrous 401 Postaholic Featured Poster

I can't do that, never ever!!! I was seriously suggesting, some time I don't find RENAME but F2 works! I'll see it myself and be back!

Ramy Mahrous 401 Postaholic Featured Poster

F2 doesn't work?

Ramy Mahrous 401 Postaholic Featured Poster

My friend it's not related to MS SQL Server :) it's about how can you play with the datetime value returned from SQL Server, as SQL Server returns the value, the problem is over here, and you can post this question to ASP.NET forum, you'd get fast response there.
Best of luck!

Ramy Mahrous 401 Postaholic Featured Poster

Did you read mine?

Ramy Mahrous 401 Postaholic Featured Poster

3D array in C# is double[ , , ] sales; Read in arrays in C#

Ramy Mahrous 401 Postaholic Featured Poster

Yes my friend if it's blank so we can't convert blank value to double!!
If the textbox value is blank don't perform CDbl(string)!!
I've dropped a lot of radio buttons and run. The form drawn and no radio button being selected.

Ramy Mahrous 401 Postaholic Featured Poster

I get a conversion from string "" to type 'Double"

How can you convert this " " to double ?? you should before conversion check if the textbox contains non-text value.

to the beginning of the program but the radio button was still selected. I then moved them to the constructor and it didn't have any effect, the first radio button was still pre-selected.

From RadioButton control properties, change Checked property to False.

Ramy Mahrous 401 Postaholic Featured Poster

1- .NET still supports calling to APIs through COM and adding reference to unmanaged libraries say user32.dll, kernel.dll, etc
2- Object browser in Visual Studio or some decompilers.

Ramy Mahrous 401 Postaholic Featured Poster

So, debug your code :) you'll see if Antenka got the solution or not.

Ramy Mahrous 401 Postaholic Featured Poster

You can just create a folder under the solution (Right click on the solution node then create folder then drag drop items) but take care you just add a reference to files which is mainly located in projects that's mean, you can't add file to this folder from project1 and call its methods in project2.

Ramy Mahrous 401 Postaholic Featured Poster

ooooh I got you.... but if you've the same functionality it's logical to deploy them as executable (e.g .dll) and refer to them from the projects need to use this logic..

Example
You've 10 projects should use some mathematical operations I do, I should deploy my operations in dll and refer to it from the 10 projects to use it and access it like you access .net library.
NOT to add code files of my operations in the 10 projects and use them, simply keep constancy in your mind, for sure in some stage you'll forget to update all files with the same operations or someone from your team needs the executable and they don't have time to read and compile the logic or keep this operations up-to-date with yours.

Ramy Mahrous 401 Postaholic Featured Poster

Don't know really!!! I don't do any custom code, it generates, I'm calling, everything is OK! if you don't have SQL SP2, and don't use Express edition of SQL Server, try to run your application as administrator...

Ramy Mahrous 401 Postaholic Featured Poster

I don't understand anything. do you need to merge the output of two projects to one file or what??

Ramy Mahrous 401 Postaholic Featured Poster
if (IsEmpty())
        {
            thisIsQ[tail] = insert;
            tail = Counter(tail);
        }

You've not IsEmpty method. or you mean Empty?

Ramy Mahrous 401 Postaholic Featured Poster

The last question, do you use VS 2008?

Ramy Mahrous 401 Postaholic Featured Poster

Didn't you "Add new data source" then lmlmlaa... and VS generates for you DataSet?? very strange really!!

Ramy Mahrous 401 Postaholic Featured Poster

It's also works with my defined insert query

BlogEngineDataSetTableAdapters.StudentTableAdapter tblStudent =
new trying.BlogEngineDataSetTableAdapters.StudentTableAdapter();
//BlogEngineDataSet dsMain = new BlogEngineDataSet();
tblStudent.InsertQuery(11, "d", "a", "a", DateTime.Now);

Try to take a variable from your table adapter then use its InsertQuery.
-Check TableAdapter properties that InsertCommand is not none.

Ramy Mahrous 401 Postaholic Featured Poster

What's newCycle datatype?
Look I tried that

BlogEngineDataSetTableAdapters.StudentTableAdapter s =
new rying.BlogEngineDataSetTableAdapters.StudentTableAdapter();
BlogEngineDataSet dsMain = new BlogEngineDataSet();
s.Insert(1000, "d", "a", "a", DateTime.Now);
//s.Update(dsMain.Student);
//dsMain.AcceptChanges();
Ramy Mahrous 401 Postaholic Featured Poster

Did you search on how to install windows service? and remove it from Services List?
Try this http://msdn.microsoft.com/en-us/library/sd8zc8ha(VS.80).aspx

Ramy Mahrous 401 Postaholic Featured Poster

Add reference to it... a commonly used terminology used in COM...

Ramy Mahrous 401 Postaholic Featured Poster

I am happy more than you because your problem solved :)
Please mark it as solved, and feel free to come here again to ask, and share your knowledge :)

Ramy Mahrous 401 Postaholic Featured Poster

Update SP2 on the server machine

Ramy Mahrous 401 Postaholic Featured Poster

So you need to install SP for x86, iff the server which SQL Server not client tools resides in is x86.
See SP2 help file for the instructions.

Ramy Mahrous 401 Postaholic Featured Poster

The SQL Server. Contact the administrator.

Ramy Mahrous 401 Postaholic Featured Poster

Try, be sure the SP2 is also x64

Ramy Mahrous 401 Postaholic Featured Poster

x86 or x64??

Ramy Mahrous 401 Postaholic Featured Poster

???

Ramy Mahrous 401 Postaholic Featured Poster

Keep me up-to-date...