|
|
Escaping it with an \ didn't work, and .net tooltips don't have a UseMmemonic property.
In any case, the char after the & isn't being underlined.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Why did you try to escape it with a backslash?
---
b { font-weight: normal; }
|
|
|
|
|
There's no equivilant property in the 1.1 framework, and the slash is the normal escaping character.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
dan neely wrote: the slash is the normal escaping character.
No, the normal escaping character is the escape character. Hence the term "escaping".
Different environments use different escaping characters. HTML uses &, URL uses %. SQL string uses '.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Guffa wrote: Different environments use different escaping characters. HTML uses &, URL uses %. SQL string uses '.
Which SQL implementation uses the single quote as an escape character?
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
EricDV wrote: Which SQL implementation uses the single quote as an escape character?
Microsoft SQL Server and Microsoft Access does. MySQL uses backslash, but also allows apostrophe as escape character for the special case of escapeing an apostrophe.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Try setting the: ToolTip.StripAmpersands Property [^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I'm stuck with the 1.1 framework for legacy support, and that property is only available starting with the 2.0 framework. Unless there's a way to pinvoke my way to the equivilant at the win32 level I looks like I'm going to have to do something WTFesque and convert & to ampersand in the tooltip. It's an invalid char warning, so I can't substitute an alternate character in the text.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
i finsh work exe program with C# 2005 .Net 2.0
How can i make setup file to this progect
Palestine
|
|
|
|
|
Have you tried new Setup Project?
|
|
|
|
|
Hi,
I'm trying to serialize a class that has a table of items of another class. I need the output XML file to look like this:
<XmlSave name="Some name">
<Notes>Some notes</Notes>
<Items>
<Item Index="1"><elem>abc</elem></Item>
<Item Index="2"><elem>zzz</elem></Item>
</Items>
<Items>
<Item Index="100"><elem>ddd</elem></Item>
</Items>
</XmlSave>
I'm using the following classes:
public class Item
{
public Item()
{
}
[XmlAttribute("Index")]
public string index;
[XmlElement("elem")]
public string elem;
}
public class Items
{
public Item[] items;
}
public class XmlSave
{
public XmlSave()
{
}
[XmlAttribute("name")]
public string name;
[XmlElement("Notes")]
public string notes;
public Item[] items;
}
but this will generate additional nodes. I know it should be something really simple, but I just can't figure it out.. .
Anybody? pretty please?
thanks
|
|
|
|
|
hi,
you need to implement IXmlSerializable interface and handle xml writing/reading manually to override default serialization behaviour. have a look at
this msdn source
|
|
|
|
|
|
This[^] article may help.
/ravi
|
|
|
|
|
Hi guys,
Need some help with the registry please. I am saving my settings in the registry and I was wondering how I could check if the settings were saved.
i.e. If a certain string value exists and if it has any data in it.
Please help
sasa
|
|
|
|
|
What are you using to develop your app?
Programmer: A biological machine designed to convert caffeine into code.
Developer: A person who develops working systems by writing and using software.
[ ^]
|
|
|
|
|
|
What are you saving your settings in the registry for? It seems odd to me that you are saving them, but not reading them.
Start->Run->"regedit"->OK
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I am saving Database settings but when I rerun the application I want to check if the database settings are there and if not than I am trying to direct to the database settings form.....
sasa
|
|
|
|
|
using Microsoft.Win32;
...
private bool GetRegValues(string cregPath)
{
RegistryKey rkeyMachine = Registry.LocalMachine;
RegistryKey rkeySub = rkeyMachine.OpenSubKey(cregPath, RegistryKeyPermissionCheck.ReadSubTree);
if (rkeySub == null)
{
MessageBox.Show("The registry key " + cregPath + " could not be opened.", "Registry Problem");
return false;
}
else
{
string cValue = "";
try
{
foreach (string cvalueName in rkeySub.GetValueNames())
{
cValue = rkeySub.GetValue(cvalueName).ToString();
<code>
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "Error");
return false;
}
finally
{
if (rkeySub != null)
rkeySub.Close();
}
}
return true;
}
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Thank you for your help. I decided to use if((string)regkey.GetValue("Source")== null)
Appreciate your response.
sasa
|
|
|
|
|
Anybody know what the hell the point of this is? I hate to rant, but I'm getting just a BIT tired of NUnit not finding my config file, even though it's called DllFileName.dll.config. Turns out that the config file isn't being copied to some directory called the ShadowCopyCache. Any idea what this is, and how to turn it off?
Thanks all.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
Haven't dealt with that...for my server app with config file, my server unit test project just has a config file of its own copying the server's. Seems to work fine.
|
|
|
|
|
Yeah, it did for me up until today, too. It's weird. I've verified that my config file is named properly. It's just not getting copied to this so called ShadowCopyCache folder, and it's throwing NUnit off...
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|