|
Hello,
I think the "DefaultValue" Attribute is what you are looking for.
If it's equal to the designtime setting, it will not generate code for this property.
Be aware that the property has to be initialized correct.
Hope it helps!
All the best,
Martin
|
|
|
|
|
I’m using a Visio drawing control in C# application.
I wanted to know, how to select a particular Visio shape form the drawing.
Thanks in advance …
Asit.
Asit
-- modified at 2:17 Thursday 10th May, 2007:
|
|
|
|
|
hi,
am currently working on a purchasing system project...using c# and MySql.can somebody send me an article about this project...
thank you guys, hoping for your reply...
regards
jing
|
|
|
|
|
balanjingot wrote: can somebody send me an article about this project
Your joking, right? If you have no idea how a purchasing system works, you have to get with the customer and find out, and very specifically. Your code is going to model the process of purchasing. Without knowing how one works, you're pretty much not going to be able to do this project at all.
|
|
|
|
|
Wow....
I'd guess this was homework, not a paid assignment. Who would trust someone to write their financial system, and not take the time to explain how it should work ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The really scary part is he said he was already working on it. I guess he didn't get very far...
|
|
|
|
|
balanjingot wrote: can somebody send me an article about this project...
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I think u r making a project which is client specific not a generic software that everyone can use.. so it's better for u to arrange some meetings with your client and get a better understanding how the perform their tasks...
and then according to your understandings and with the acceptance of your client u can make your software using RAD process
hope i clear my point of view to u.
|
|
|
|
|
hi,
thanks, i accept all your comments and reactions positively...
actually, i have been working on it, you're right am working on a specific client.
what i mean on the article that am asking for are example codes, screenshots just for supplementary purposes...
ok?
regards
jing
|
|
|
|
|
Have a look at open source CRM projects at SourceForge .NET
|
|
|
|
|
thanks buddy...
regards
jing
|
|
|
|
|
I am getting an error at run time on this line of code
newDayIndex.InnerXml = index.ToString();
here is how i'm doing all the xml code
XmlTextReader reader = new XmlTextReader(C_strFileName);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
reader.Close();
XmlNode oldIndex;
XmlElement root = doc.DocumentElement;
oldIndex = root.SelectSingleNode("/config/Days_Index");
XmlElement newDayIndex = doc.CreateElement("Days_Index");
newDayIndex.InnerXml = index.ToString();
root.ReplaceChild(newDayIndex, oldIndex);
doc.Save(C_strFileName);
|
|
|
|
|
What error are you getting and what line causes it?
Side note: try doc.Load(C_strFileName);
|
|
|
|
|
This is the line the error is in now
root.ReplaceChild(newDayIndex, oldIndex);
The Error message is a NULL reference Exception now after changing my doc.Load to what you suggested
|
|
|
|
|
Well you don't test for null after
oldIndex = root.SelectSingleNode("/config/Days_Index");
|
|
|
|
|
I realize that but if i check for null that does not fix my problem that just fixes the run time error, I need to figure out why it is not finding Days_Index in my XML file
|
|
|
|
|
Oh, so you know it's not finding Days_Index, why didn't you say that?
Could you post a snippet of the XML file and repost the code as it stands now?
P.S. Just a guess, in "/config/Days_Index" , should config be capitalized?
|
|
|
|
|
i'm new to silverlight, in new i mean i have never even used it. before i go through the trouble of learning it i need to know:
i (currently) use flash and java, connected through an xmlsocket for a desktop app. i need to be able to do the same in silverlight c#.
can silverlight connect to a c# class that implements an xmlsocket type connection, and can the data be sent back to silverlight?
can silverlight be run as a standalone application in a player like flash? or is it only browser based at the moment?
rather have something you don't need, than need something you don't have
|
|
|
|
|
silverlight is WPF/E, right ? So, it's a framework on top of C#. Silverlight is a cut down version of WPF, WPF writes complete apps. I can't see how it could be more than trivial to create an app that is a viewer, even if it's just a web browser control.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi!
my problem is that i try to input string containing ' char into filter statement which causes an System.Data.SyntaxErrorException is thrown..
<br />
string str1 = "aaaa";<br />
string str1 = "aa'aa";<br />
<br />
bs.Filter = string.Format("val1 like '{1}' and val2 like '{2}'", str1, str2);<br />
outcome would be: bs.Filter = "val1 like 'aaaa' and val2 like 'aa'aa'";
thanks for any help!!!
life is study!!!
|
|
|
|
|
1. string.Format("val1 like '{1}' and val2 like '{2}'", str1, str2);
Should be string.Format("val1 like '{0}' and val2 like '{1}'", str1, str2);
2. aa'aa should be aa''aa becuase filter behaves same way as a stored procedure would behave.
|
|
|
|
|
hi
i want to bind my treeView to my database,for show Hierarchy data, how to do ?
thanks
|
|
|
|
|
I don't think you can, but I've never tried to.
I simply make a bunch of queries and populate the TreeView the hard way, but part of that is due to the complexity of the data.
|
|
|
|
|
I have an event that needs to occur every time a file containing records is imported, I keep getting an exception at this line:
OnImportFile(this, new ImportFileEventArgs(fi.Length, i, fi[i].Name));
The exception is "Object reference not set to an instance of an object."
I have check to make sure none of my variables are Null, I don't know what the deal is. Suggestions Please?
J.Perez
|
|
|
|
|
Justin Perez wrote: I have check to make sure none of my variables are Null, I don't know what the deal is.
You just explained what the deal is, then you tell us you don't know what the deal is.
Perhaps you are not explaining yourself very well.
Justin Perez wrote: OnImportFile(this, new ImportFileEventArgs(fi.Length, i, fi[i].Name));
TIP: Don't put all this stuff in one line of code. It makes the code difficult to read, and difficult to debug.
Change it to:
int length = fi.Length;
FIClassName currentFI = fi[i];
string fiName = currentFI.Name;
ImportFileEventArgs(length, i, fiName);
That makes it a lot easier to debug and step through and see where all the values are and how it is being built up.
|
|
|
|