|
You got it all wrong.
Please read a database tutorial.
Just a hint. Someone must execute the desired sql command , don't you think?
Its just as you have written
int a="Hello World";
the you just happen to have for text an a sql command.
Read the db tutorial.
|
|
|
|
|
How to do the implementation of interfaces (written using .Net) between front and Back Office applications.
Kindly assit me ASAP as i have the Client Interview On this.
Thanks and Regards
Naveen Kumar S
Naveen
|
|
|
|
|
use implements keyword and mention the interface name you name want to implement for that class
class a implements interface a, interface b
...
...
*make sure all the methods of the implemented interfaces have been defined
Gautham
|
|
|
|
|
class a : b { ... }
"implements" is Java !
Luc Pattyn
|
|
|
|
|
Hi Friend!
From table 'dashboardlogin', i want an int type value : 'dashboardid' of a particlar row(suppose where userid =101), into a variable suppose 'str', so that i can display that variable in a function :
funEntrylogin(str, tb_id.Text, tb_pswd.Text, DateTime.Now, DateTime.Now);
Is this possible?
Can some1 plz help on it.
Thank you.
nekshan.
|
|
|
|
|
select @str=dashboardid from dashboardlogin where userid=101
Gautham
|
|
|
|
|
Will this get value dashboardid into variable 'str'?
int str = "select dashboardid from dashboardlogin where userid=101";
dashboardid is 'int' type in database.
but i have error if i use this:
Cannot implicitly convert type 'string' to 'int'.
do i need to add any other code also for getting its data into variable 'str'?
plz reply
thank you.
nekshan.
|
|
|
|
|
nekshan,
your variable str should also be the same type of the column, here your coulmn datatype is int, so declare @str int and try.
Check whether the dashboardid datatype in your table!!!
Gautham
|
|
|
|
|
Hi,
In am developing windows mobile 5.0 application using VS2005 C#.NET Compact framework(2.0).Is it support to treeview.Backcolour or not?..If not supporting any other alternate source?..Please tell me..
Thanks in Advance
Bye
|
|
|
|
|
can u plz tell me how to make the treenodes collapse on a single click. I want to make a menu based on a tree view in a C# 2.0 windows Application. so the problem is that it need double click to collapse a tree node. In the after select event I tried to puit the statement e.Node.Collapse(); but it doesnt seem to be giving the result I want so can u help me?
thanks alot
Rocky
|
|
|
|
|
maybe Expand() or ExpandAll() ?!
VirtualVoid.NET
|
|
|
|
|
Hmm try this... For collapse use CollapseAll() And for expand use
ExpandAll() method e.g TreeView1.CollapseAll()
Q@!$3r
|
|
|
|
|
hmm alright.. I'll chk out what that does, just wondering whats the difference b/w collapse and expand
thanks alot
Rocky
|
|
|
|
|
Hy
I have a remote application and I need to send to server an object who is a window control, and I can't do that.
If i send to server a string, it's works
Can tell how can I send an object like a window control to a server for my application?
The server know to serialize and deserialize.
10x
|
|
|
|
|
My object has a List<Color> property that I want the user to be able to edit. I was presenting all the object's properties in a PropertyGrid and this was working fine. I've since decided that I no longer need the user to see the other properties; only the List<Color>. So there's no longer a need for a propertygrid.
Anyone have any ideas how I could perhaps use the Collection Editor at runtime, outside of the propertygrid, or some other method of presenting the color collection to the user for editing without having to implement my own dialog.
Thanks
|
|
|
|
|
hi
you can hide properties in the propertygrid with the Browsable attribute set tu false.
example:
[System.ComponentModel.Browsable(false)]
public int MyProperty
{
get {return myProperty;}
set {myProperty = value;}
}
|
|
|
|
|
Hello,
I have a problem when using MS Visual Studios 2005 build in DataSet Designer. In my App I want to work with two related tables, one Parent and one Child table.
ParentTable
-----------
ParentID (pk)
ParentName
ChildTable
-----------
ChildID (pk)
ChildName
ParentID (fk)
When I do this the old fashion way (not using the designer), I have no problem accessing the Child records related to the Parent record im working with. Here's the working code:
DataRelation parentChildRelation;
DataColumn colMaster;
DataColumn colDetail;
colMaster = parentChildDataSet.Tables["Parent"].Columns["ParentID"];
colDetail = parentChildDataSet.Tables["Child"].Columns["ParentID"];
parentChildRelation = new DataRelation("parentChildRelation", colMaster, colDetail);
parentChildDataSet.Relations.Add(parentChildRelation);
Now i can access the relation using
parentRow.GetChildRows(relation, DataRowVersion.Default);
But when I do the same thing but using the DataSet designer (adding the two tableadapters for the Parent and Child table and adding a relation between them from the DataSet Toolbox) I can't access the relation in my code.
I have looked in the Designer.cs and it adds the code for the relation:
this.relationParent_Child = new System.Data.DataRelation("Parent_Child", new System.Data.DataColumn[] {
this.tableParent.ParentIDColumn}, new System.Data.DataColumn[] {
this.tableChild.ParentIDColumn}, false);
this.Relations.Add(this.relationParent_Child);
But still a call like this: parentTable.ChildRelations; ends up empty..
Anyone have any idea why?
/Thanks - Martin
|
|
|
|
|
Hi all,
Can anyone provide me with good link to learn classes for window based programming. Well i know the concept of it but finding difficulty when i try to implement it.
I couldn't find any good link for that.
I would be glad if someone help me out in this.
Thanks
|
|
|
|
|
Classes are not only for window based programming as you call it.
Classes are one of the tools to implement what is generally known as object oriented programming.
Look it up on google.
Generally OOP is mastered with expierence for me.
|
|
|
|
|
yeh i know this. The reason i asked for window based is because i want to create a windows based application. So even few simple things matters a lot in that.
Well i have googled but not getting any good material for it. There are just a simple examples of classes, i need some good examples.
But still ill try and search in google....
Thanks
|
|
|
|
|
You wouldn't learn completely until you make some small demo programs. I belive that will help you to clear any confussion and your concepts. Apply, what you know and goes on from there.
|
|
|
|
|
Dear all,
I am trying to clear the cache in webbrowser control, I have used the sample code given in the MSDN. But it is clearing the whole cache.. How to clear the known cache entry..i.e i know the URL entry that needs to be removed from cache. the problem is iam directing Webbrowser control to change password screen when user presses ChangePwd button, once he logged in to page, every time when user clicks chnage pwd button it shows the Change Pwd page, instead of login page.
I tried one more solution, like everytime i am diposing the webbrowser control and loading it again, but that also doesn't clear the cache. but if you open the same URL in IE it is going correctly(mean login page instead of change pwd page)
Thanks
Srini
|
|
|
|
|
My own application and My own extension-how to add these in Registry?
|
|
|
|
|
Hi Guys,
I'm breaking my head over this one. I'm hoping someone can point me in the right direction.
What I want to achieve is quite simple. I want to develop an app written in C# that will simply extract MMS from a phone connected with a cable to the PC and store those MMS as images/sounds etc in a specific folder on the PC.
Can anyone please advise me on how I could achieve this and what phones should I be looking at. I tried my Nokia 9500, but the MMS messages are not stored in folders on the phone that are accessible through standard .net objects.
Cheers
Andre
Phi?
|
|
|
|
|
From what i have seen in my K750I you must utilize to phones At command set.
Remember those we had on our serial port modems? For my K750 there is a 400 page at command set, which i think i similar to all phones.
Good Luck if I am right.
|
|
|
|