|
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.
|
|
|
|
|
Surely some phones also act similar to a Flash disk where it becomes an additional drive that can be read like any other?
Phi?
|
|
|
|
|
Based on the Sony Ericson interface, messages,mms, contacts and generally phone data are stored in the phone. On the extention memory card are stored files like images,themes, sounds and are interface as thought aw they were on a flash drive.
The problem is accessing images,sounds,contacts,messages,mms that are stored in the phone memory. That is the hard part i think.
Again based on Sony Ericson's interface only.
|
|
|
|
|
hello
i have a map in autocade and object in this map (for example a Circle) has an ID
i want to import this map to C# and access to objects and their IDs from C#
thank you
---afsaneh_sheykhbahaei@yahoo.com
|
|
|
|
|
PLease don't double post. Please use sensible headers.
If you have an autocad file, then you need to write the code to read the AutoCAD file format, then you need to write enough of AutoCAD to render the objects. Good luck.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Or look wheather autocad provides a com object collection to manipulate its objects and functionallity like office does.
|
|
|
|
|
hello
i have a map in autocade and object in this map (for example a Circle) has an ID
i want to import this map to VB.Net and access to objects and their IDs from VB.Net
thank you
---afsaneh_sheykhbahaei@yahoo.com
|
|
|
|
|
Hi CodeProject memebers,
I like SunClock pretty much and have wondered if there is any C# code project around, but failed.
However, I found a real nice site including source code etc.
http://avialle.free.fr/sunclock/
(SEE Crédits section especially)
Unfortunately, I am not skilled to tweak C,C++ source code and translate it to C#.net that I would like to see.
Since SunClock is very famous handy tool working on PCs, and so far, as long as I have investigated, no .net version exists, I think it's fascinating someone around here will create .net(preferably C#) version and share on this site.
Hope you guys are interested.
Best regards,
Ken
-- modified at 4:04 Wednesday 7th February, 2007
|
|
|
|
|
kenokabe00 wrote: I think it's fascinating someone around here will create .net(preferably C#) version and share on this site.
Why would you need a .net C# version?
|
|
|
|
|
Pravar,
Simply because C#.net is popular, and good thing we can share the project on VisualStudio.net 2005. Obviously, if there is C#.net version project, Vista Gadjet can also indlude Sunclock in the library.
|
|
|
|
|
kenokabe00 wrote: Simply because C#.net is popular
OK....
kenokabe00 wrote: good thing we can share the project on VisualStudio.net 2005
VS.NET does C++ just fine.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sounds to me like you've found yourself a learning project.
Russell
|
|
|
|
|
kenokabe00 wrote: Simply because C#.net is popular, and good thing we can share the project on VisualStudio.net 2005. Obviously, if there is C#.net version project, Vista Gadjet can also indlude Sunclock in the library.
Just me, or does it look like he wants to show the result off to someone else as hiw own work?
|
|
|
|