C# on MSDN: http://msdn2.microsoft.com/en-us/vcsharp/default.aspx
pictureBox1.Image = Properties.Resources.[image name];
C# on MSDN: http://msdn2.microsoft.com/en-us/vcsharp/default.aspx
pictureBox1.Image = Properties.Resources.[image name];
it is limited to layout options
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..
I'll read your question again but can you please provide us with sample input and the output, it'd help me
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.
If you need a project to learn, search on projects developed by Visual Studio Database Edtion.
Develop phonebook application, go deeply db-design...
Please just copy the lines give errors not all your application!!! and provide us with exception\error raised!!
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....
public new void show()
{
....
}
In form properties you will find property called "Accept button" set it to the button you need to be pressed if user press "Enter"
Has IDMAT duplicated values?!
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)
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)
define your users and from user properties define "User mapping" to set and remove some privilages
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
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.
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);
Use replication
I don't think so, just copy your question and paste it in a new thread there :)
Enum is better.
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!
}
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).
Kindly, move your thread to ASP.NET forum http://www.daniweb.com/forums/forum18.html to get quick help!
add new column in your user table to identify the user type, sure you can't do that using just username and password!!!
No flag needed, he must put a foreign key in UserTable to identity UserType (Admin or User)
About session, I didn't notice :$
In UserClass define UserType enumerator and assign it a value (came from database userTable) indicates it as an admin or user
No, you're working on Class Library project, go to project properties and change Output Type to Windows Application.
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);
Catch the exception using "OleDbException" not generic Exception and reply me with exception message, I could help you.
Hello PoovenM again :)
From project properties, change Output type to Class Library
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....
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;
.....
You should answer with "true" or "false" to avoid exception raising...
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.
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 :)
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 :)
it's not returning more than object it's passing object by reference!!
ShellExecute hWnd, "explore", "C:\whatever", _
vbNullString, vbNullString, SW_SHOWNORMAL
I got it from http://vb-helper.com/howto_shellexecute.html
you can't return more than object with different data type
but may use yield it may help you.
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.
I though that you condition on the value of userGuess, that's not known in the compile time. so the warnings came from.
initialize userGuess = 0
I think _r0ckbaer answered you!!
I didn't see your code, but I can't say except debug it!!
remove the double quotes
UPDATE Customers SET stud_name='+stdName+' WHERE stud_ID='45698'
Regular expressions would help
System.Text.RegularExpressions;
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();
}
I didn't use this API before, check its documentation for further help, anything about unmanaged dll, ask and I'll help you
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.