Ramy Mahrous 401 Postaholic Featured Poster

C# on MSDN: http://msdn2.microsoft.com/en-us/vcsharp/default.aspx

pictureBox1.Image = Properties.Resources.[image name];
Ramy Mahrous 401 Postaholic Featured Poster

it is limited to layout options

Ramy Mahrous 401 Postaholic Featured Poster

However, the <Extra Data> needs to be ignored and the cells "blacked out" if the ForeignKey occurs more than once in TableB

It should be occur more than once in table b as the relationship is 1-to-many!!
I think you must support me with inputs and output..

Ramy Mahrous 401 Postaholic Featured Poster

I'll read your question again but can you please provide us with sample input and the output, it'd help me

Ramy Mahrous 401 Postaholic Featured Poster

mmmm, working in real life applications will lead you to use in common matlab librabries and may be in front end c# form, I don't know software vendor has written image processing libraries like matlab!! their lgorithms is fast may be you found some faster than them, try to comapre in that time but all in all don't re-write something aleardy made.

Ramy Mahrous 401 Postaholic Featured Poster

If you need a project to learn, search on projects developed by Visual Studio Database Edtion.
Develop phonebook application, go deeply db-design...

Ramy Mahrous 401 Postaholic Featured Poster

Please just copy the lines give errors not all your application!!! and provide us with exception\error raised!!

Ramy Mahrous 401 Postaholic Featured Poster

To get object type

Program p = new Program();
Console.WriteLine(p.GetType().Name);//prints Program

To get object base type

Program p = new Program();
Console.WriteLine(p.GetType().BaseType.Name);//prints Object (the base class of Program class)

To compare between two objects you just need to use string.Compare....

Ramy Mahrous 401 Postaholic Featured Poster
public new void show()
{
....
}
Ramy Mahrous 401 Postaholic Featured Poster

In form properties you will find property called "Accept button" set it to the button you need to be pressed if user press "Enter"

majestic0110 commented: Thanks for the help +1
Ramy Mahrous 401 Postaholic Featured Poster

Has IDMAT duplicated values?!

Ramy Mahrous 401 Postaholic Featured Poster

Sorry for being late as I was in Army last two days..

SELECT     Category_1.Name
FROM         Category LEFT OUTER JOIN
                      Category AS Category_1 ON Category.ID = Category_1.ParentID
WHERE     (Category_1.ParentID = 1)
Ramy Mahrous 401 Postaholic Featured Poster
SELECT     dbo.Category.Name, dbo.Category.ID
FROM         dbo.Category LEFT OUTER JOIN
                      dbo.Category AS Category_1 ON dbo.Category.ID = Category_1.ParentID
WHERE     (Category_1.ParentID IS NULL)
Ramy Mahrous 401 Postaholic Featured Poster

define your users and from user properties define "User mapping" to set and remove some privilages

Ramy Mahrous 401 Postaholic Featured Poster
Naruse commented: thx +1
Ramy Mahrous 401 Postaholic Featured Poster

If you want to create UDF in source code and save this UDF in your SQL Server, just use SMO library to help you regards this.

To add reference to SMO
Project->Add reference->Microsoft.SqlServer.Smo

Ramy Mahrous 401 Postaholic Featured Poster

You can deal with UDF from VB.NET as you use it in SQL Server, ADO.NET helps you, but please tell me do you want to pass parameters to UDF or return the value of UDF.

Ramy Mahrous 401 Postaholic Featured Poster

Developers just don't look at methods documentation!!
Round method returns the rounded number that's your problem, friend!

double d = 1000.0 / 3000.0;
d = Math.Round(d, 2);
Console.WriteLine(d);
SiPexTBC commented: Thanks. +1
Ramy Mahrous 401 Postaholic Featured Poster

Use replication

Ramy Mahrous 401 Postaholic Featured Poster

I don't think so, just copy your question and paste it in a new thread there :)

Ramy Mahrous 401 Postaholic Featured Poster

Enum is better.

Ramy Mahrous 401 Postaholic Featured Poster

Why this "and utype =@type" in your select statement??!!!! you want to filter selected user by utype ??! as you don't know his\her type at all

what you need to modify is to add new column in user table and select userID and uType using user name AND password!

Assign user object ID property with id returned from DB and also uType property (enum).

before calling a method check uType to authorize the current user.

P.S: DataReader.Read() doesn't take any arguments!! to loop for many records (and you don't need that in your case) use while loop

like

while(reader.Read())
{
///some sort of code goes here!
}
Ramy Mahrous 401 Postaholic Featured Poster

Yes, because every class needs references, those references information saved in project setting file (XML file) and this file contains a lot of information needed to compile\run class(es).

Ramy Mahrous 401 Postaholic Featured Poster

Kindly, move your thread to ASP.NET forum http://www.daniweb.com/forums/forum18.html to get quick help!

Ramy Mahrous 401 Postaholic Featured Poster

add new column in your user table to identify the user type, sure you can't do that using just username and password!!!

Ramy Mahrous 401 Postaholic Featured Poster

No flag needed, he must put a foreign key in UserTable to identity UserType (Admin or User)
About session, I didn't notice :$

Ramy Mahrous 401 Postaholic Featured Poster

In UserClass define UserType enumerator and assign it a value (came from database userTable) indicates it as an admin or user

Ramy Mahrous 401 Postaholic Featured Poster

No, you're working on Class Library project, go to project properties and change Output Type to Windows Application.

Ramy Mahrous 401 Postaholic Featured Poster

You should write it like

SqlCommand selectCommand = new SqlCommand("SELECT product.productid, product.productname, product.price, product.description FROM product where product.productid = @productID", myConnection);

            selectCommand.Parameters.Add("@productID", SqlDbType.Int);

            selectCommand.Parameters[0].Value = int.Parse(Session["productid"].ToString());

            SqlDataAdapter adapterprice = new SqlDataAdapter(selectCommand);
Ramy Mahrous 401 Postaholic Featured Poster

Catch the exception using "OleDbException" not generic Exception and reply me with exception message, I could help you.

Ramy Mahrous 401 Postaholic Featured Poster

Hello PoovenM again :)

From project properties, change Output type to Class Library

PoovenM commented: You're my C# Hero! :D +2
Ramy Mahrous 401 Postaholic Featured Poster

Any class, interface, struct, enum or delegate is Type.

Your code is wrong as 'is' take a type not an instance; like

if (tag is WTTag) .....

Your logic isn't right as classList carries instances from one type so loop won't be useful as classList[0] like classList[1] like classList[2] like....

Ramy Mahrous 401 Postaholic Featured Poster

That's a type of reflection methods in JAVA, actually C# treats with System.Type not System.Class like

Type[] types = new Type[10];
types[0] = System.String;
types[1] = System.TextBox;
.....
Ramy Mahrous 401 Postaholic Featured Poster

You should answer with "true" or "false" to avoid exception raising...

Ramy Mahrous 401 Postaholic Featured Poster

You're the one who should say the business requirments and ask specific questions.. anyway you may need e-commerce, Enterprise Services (COM+ as common), and Databases.

Ramy Mahrous 401 Postaholic Featured Poster

Dear koketa;
Please ask direct question because no one will read all you wrote; ask for example I've exception in lmlma how to slove it, I can't nither read your code nor understand it. just go around this forum and see how people ask
Cheers :)

Ramy Mahrous 401 Postaholic Featured Poster

s/he didn't ask me to do something by anyway, s/he asked to return more than object I answered.
anyway thank you, sure I knew something new by your answer :)

Ramy Mahrous 401 Postaholic Featured Poster

it's not returning more than object it's passing object by reference!!

Ramy Mahrous 401 Postaholic Featured Poster
ShellExecute hWnd, "explore", "C:\whatever", _
    vbNullString, vbNullString, SW_SHOWNORMAL

I got it from http://vb-helper.com/howto_shellexecute.html

Ramy Mahrous 401 Postaholic Featured Poster

you can't return more than object with different data type
but may use yield it may help you.

Ramy Mahrous 401 Postaholic Featured Poster

and also you want to say for the compile time you've garbage value may = garbage value that's may do this warnings.
Hint: you should initialize your variables before using.

Ramy Mahrous 401 Postaholic Featured Poster

I though that you condition on the value of userGuess, that's not known in the compile time. so the warnings came from.

Ramy Mahrous 401 Postaholic Featured Poster

initialize userGuess = 0

Ramy Mahrous 401 Postaholic Featured Poster

I think _r0ckbaer answered you!!

Ramy Mahrous 401 Postaholic Featured Poster

I didn't see your code, but I can't say except debug it!!

Ramy Mahrous 401 Postaholic Featured Poster

remove the double quotes
UPDATE Customers SET stud_name='+stdName+' WHERE stud_ID='45698'

Ramy Mahrous 401 Postaholic Featured Poster

Regular expressions would help
System.Text.RegularExpressions;

Ramy Mahrous 401 Postaholic Featured Poster

No difference Nedwards,
Just enable your project to allow unsafe code (first reply) then in call your external method surround it by unsafe like

unsafe
{
uint* pointerOnUnsignedInteger;
}

another example if you have method retuerns a pointer on integer let's say its name "Foo" you can use it like

unsafe
{
int* p_integer = Foo();
}
Ramy Mahrous 401 Postaholic Featured Poster

I didn't use this API before, check its documentation for further help, anything about unmanaged dll, ask and I'll help you

Ramy Mahrous 401 Postaholic Featured Poster

u said "I beleive the method is returning a Uint32 or ulong data type and it requires a C++ pointer"
I told you how to use pointers in C#, ask a specific question to understand you well.