|
You have asked this 4 times now...
Just load the font and look at the metrics provided but the Font/FontFamily class...
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
You are going to get no help in the future doing what you are doing.
Blog link to be reinstated at a later date.
|
|
|
|
|
can anyone help me to understand the Difference between asynchronous and synchronous function with small code snippet.
Thanks
tbhattacharjee
|
|
|
|
|
asynchronous[^]
synchronous/synchronization[^]
No code snippet required really, an async function will normally return immediately and continue doing it's thing afterwards (on a seperate thread?) so the current thread is not blocked. A sync function will return at the end of the function, so the current thread is blocked while the function is running.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
The main diffrence in Sync and Async function is "In Sync function: one has to wait till the function returnsthe control after exececution.In Async once one send the call to function one has not wait for the result during this one can do another task,when function execution gets completed it returns the value." For more see the link
http://msdn.microsoft.com/en-us/magazine/cc301332.aspx[^]
Cheers!!
Brij
|
|
|
|
|
well not much, but if is synchronous starts a work and after finished stars the next one, if is asynchronous can start many at same time.
If is asynchronous will not be stuck somehere and deals many calls at same time. (needed in chat applications)
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
|
There is no esay way that I know of, all you can do is write some code to pad each field to the required size - or pad the columns in your select to the required size.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I have managed to resolve this. See below.
StreamWriter sfw = new StreamWriter(@"W:\CTS Product\Mobile_Email_Updates\mob_email_" + DateTime.Today.ToString("ddMMyyyyhhmm") + ".txt", false);
DataTable dt = m_dtMobEmail;
foreach (DataRow dr in dt.Rows)
{
if (dr["Exported"].ToString() == "0")
{
sfw.WriteLine(dr["HolderRef"].ToString() + dr["DateConf"].ToString() + dr["MobileNum"].ToString().PadRight(20) +
dr["EmailAdd"].ToString().PadRight(80) + dr["Comms"].ToString() + dr["Confirmed"].ToString() + dr["Via"].ToString() +
dr["DateConf"].ToString());
}
}
sfw.Close();
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
I'd like to include a list of values in my app.config file that has no specific length.
I don't want to use "Setting 1" "Setting 2" etc. for obvious reasons.
I could define a type that wraps a List<string> for example and use this as the type for a custom section...
However this seems a little over the top. I am also dealing with a distributed system that has various components, and so I would like to avoid having to make that type available to in all of them.
Does anybody know a lightweight way of achieving this that is already part of the framework / System.Configuration namespace?
Thanks
|
|
|
|
|
I use a settings datatable based on an XML file, easy to maintain, easy to manage and you have complete control of it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Thanks for the suggestion.
Unfortuantely using a database is not really viable for this particular problem, as some of the components involved are deployed at customers' premises. I don't want to add the complexity of deploying a database engine etc.
Thanks,
Rob.
|
|
|
|
|
Ahhh...
I've just re-read your post. Properly this time
Do you think it is possible to use a datatable as a Type for a custom config section?
The solution is quite committed to using app.config and System.Configuration. I wouldn't want to have to have a second xml file containing the serialised datatable - so I'd need to get it into app.config somehow...
Thanks again,
Rob.
|
|
|
|
|
LINQ to XML would work, and you could write/read your own file without worrying about messing up or dealing with multiple app.config files.
I'd probably create a class lib project that you can use in multiple assemblies. Shouldn't be too hard to come up with something usable and flexible.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks for all your suggestions.
I have decided on the following:
Declare a section in app.config ilke this:
<section name="LogMessageReceiverConfig" type="RealTimeDelivery.Common.Logging.LogMessageReceiverConfigHandler, LogMessageReceiver"/>
The section then utilised like this:
<SecondaryIdentifiersSect>
<setting name="aaa" serializeAs="String">
<value>a1</value>
</setting>
<setting name="bbb" serializeAs="String">
<value>b1</value>
</setting>
<setting name="ccc" serializeAs="String">
<value>c1</value>
</setting>
</SecondaryIdentifiersSect>
and then accessed in code like this:
System.Configuration.ClientSettingsSection sect = (System.Configuration.ClientSettingsSection)System.Configuration.ConfigurationManager.GetSection("SecondaryIdentifiersSect");
foreach (System.Configuration.SettingElement e in sect.Settings)
{
System.Diagnostics.Debug.WriteLine(e.Name);
System.Diagnostics.Debug.WriteLine(e.Value.ValueXml.InnerText);
}
|
|
|
|
|
hello
i need a complete sample project that deployed with uml and c# .exactly i need an oop base c# project source.i searched the web but did not find a suitable one.I NEED IT JUST FOR LEARNING .
thanks in advanced.
modified on Wednesday, October 1, 2008 4:31 PM
|
|
|
|
|
Good luck, I think you are going to need it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Is this HOmework? A little bit of effort won't kill you. Try first and see what you come up with. If you get stuc along the way then somebody here will be more than happy to help but people here don't take kindly to guys looking for somebody to do their homework for them.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
NO THIS IS NOT a homework .i just need it for learning .
|
|
|
|
|
In which case you need the alternative site, rentacoder.com where people provide complete solutions - for a price
The alternative is to do your own homework.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I need a million dollars. Do your own work jack***.
Blog link to be reinstated at a later date.
|
|
|
|
|
Easy, download a sample from codeproject, theres plenty here about all subjects.
Good Luck
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
I am encrypting the web.config using RSA technique, and using aspnet_regiis command to do this. I successfully encrypted the <connectionstrings> and <appsettings> tags. However I got the following error while encrypting the <sessionstate> tag:-
The configuration section 'sessionState' was not found.
Failed!
The command that I used is:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis <br />
-pe "sessionState" -app "/LiveOne" -prov "LOProvider"
Kindly tell me a successful way to do this.
|
|
|
|
|
Encryption is used to encrypt sections - not individual tags. Why you would want to encrypt the sessionState tag is beyond me.
|
|
|
|
|
Hi,
can anyone tell me the c# way to get the log4net root logger?
background:
there's a dll wich executes any code specified via xml (dest. assembly path, dest. method, etc.). within this dll, log4net is correctly configured and works fine.
now i want to use the same logger from any of my dest. dlls. calling LogManager.GetRepository() and navigating through some public and private fields via visual studio tells that both appenders (configured in base dll) are available. But how to access them?
|
|
|
|