|
Thank's for your suggestions,
the .chm file was generated on the local computer and shall be opened there also.
Thanks
Regards, Frank
|
|
|
|
|
You say you have tried lots, so it is difficult to know what to suggest.
However I have had this problem a few times and it has always been #2 from this[^] that has caused my problems. If you haven't already done so can I suggest that you google for problem with chm file blank contents, there are lots of hits.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi Henry,
there are realy some more suggestions to solve the problem. I will follow your links. Will see what will happen.
But i fear I can't deploy a .chm file with my application due to similar expected problems on the clients.
Isn't there a more reliable (local) help technology on the market than .chm ?
Thanks,
Regards, Frank
|
|
|
|
|
Hi,
I am using Windbg to analyze a crash that was created from managed code. I am loading SOS and mscorwks and using the !pe command. I can see the managed callstack, with module and function names but no source file and line number information. I can see this information for native crashes, but not for managed.
I don't know if it is the PDBs or something else. when I did lm, it says I have private pdb symbols for my managed app.
Any help is highly appreciated.
Thanks
Nachiket
|
|
|
|
|
All,
I am interested in developing servers like FTP, HTTP/HTTPS using Windows XP with IIS 5.1 version server. I have searched a lot on internet for pointers which will give me information for creating all these servers using C#, but everything went vain! . I would request this forums members to give some information on implementing all these 3 servers using C#.I appreciate your help
Thanks Rajesh
|
|
|
|
|
I turned on the autocomplete feature for a combobox on my form and set the autocompletesource to Listitems. It is a databound combobox. When the user selects an item using autocomplete, I don't get a value for selectedvalue, is this expected behavior? Do I have to write a Leave routine to match the text with the value from the combobox?
Shouldn't this behavior be automatic?
|
|
|
|
|
WinForms ComboBox es? I didn't see a SelectedValue property, but I did find a SelectedItem [^] that might help you out
I are Troll
|
|
|
|
|
Hello am adding days for a date Time object but it is not adding the valyes could any body know why, btw am checking the values in a watch they are not changing unless i change them there(Watch);
DateTime startDate = new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day);
DateTime endDate = new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day);
startDate.AddDays(-3);
endDate.AddDays(3);
DateTime x = new DateTime();
x=DateTime.Now;
x.AddDays(3);
|
|
|
|
|
DateTime is immutable. The AddDays function (and others) return a new DateTime, they don't alter the first one so you need
startDate = startDate.AddDays(-3);
etc...
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) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
DateTime x = new DateTime();
x=DateTime.Now;
Also, in the second line you throw away the DateTime created in the first line, so why create it?
Try:
DateTime x ;
x=DateTime.Now;
or
DateTime x=DateTime.Now;
|
|
|
|
|
I'm looking to ramp up in learning visual programming with C# for Windows and am wondering what are good resources, such as books or in-depth online breakthroughs. Any good suggestions?
|
|
|
|
|
what is your level of knowledge of C#, or let's say the level of programming knowledge?
|
|
|
|
|
I'm pretty familiar with C++ and have been working with programming languages for a long while. What I don't understand, and would love to grasp, is how program flow/interactions work with WinForms/WPF, which of the latter to use, and really how to see the whole picture of visual coding for Windows.
|
|
|
|
|
I would suggest Wrox publication books for C# and Winforms to begin with
|
|
|
|
|
hello guys, I want to create a csv file from xml document, can someone please point me on some article to see how is this done?
Thanks in advance, Laziale
|
|
|
|
|
|
<restaurants>
<Business name="someBusiness">
<Address>
<Street>someStreet</Street>
<City>Las Vegas</City>
<Zip>89169</Zip>
<State>NV</State>
</Address>
<Contact>
<ContactPerson>someCP</ContactPerson>
<PhoneNumber>(702) 889-5587</PhoneNumber>
<MantaWebsite>http:
</Contact>
</Business>
</restaurants>
thanks for helping me
|
|
|
|
|
The easiest way is to dump the xml into a dataset and enumerate throught the rows and write to file. Look at the code below.
public static void SaveXmlToFile(string xml, string output)
{
string seperator = ";";
DataSet ds = new DataSet();
DataTable bzTable = null;
DataTable adTable = null;
DataTable cntTable = null;
StringBuilder sb = new StringBuilder();
using (MemoryStream ms = new MemoryStream())
{
using (StreamWriter sw = new StreamWriter(ms))
{
sw.BaseStream.Seek(0, SeekOrigin.Begin);
sw.Write(xml);
sw.Flush();
sw.BaseStream.Seek(0, SeekOrigin.Begin);
ds.ReadXml(sw.BaseStream);
}
}
bzTable = ds.Tables["Business"];
adTable = ds.Tables["Address"];
cntTable = ds.Tables["Contact"];
foreach (DataRow bzRow in bzTable.Rows)
{
int curBzId = Convert.ToInt32(bzRow["Business_Id"]);
foreach (DataColumn bzCol in bzTable.Columns)
{
sb.Append(string.Format("{0}{1}", bzRow[bzCol].ToString(), seperator));
}
foreach (DataRow adRow in adTable.Select(string.Format("[Business_Id]={0}", curBzId)))
{
foreach (DataColumn adCol in adTable.Columns)
{
sb.Append(string.Format("{0}{1}", adRow[adCol].ToString(), seperator));
}
}
foreach (DataRow cntRow in cntTable.Select(string.Format("[Business_Id]={0}", curBzId)))
{
foreach (DataColumn cntCol in cntTable.Columns)
{
sb.Append(string.Format("{0}{1}", cntRow[cntCol].ToString(), seperator));
}
}
sb.Append(Environment.NewLine);
}
using (StreamWriter sw = new StreamWriter(output))
{
sw.BaseStream.Seek(0, SeekOrigin.Begin);
sw.Write(sb.ToString());
sw.Flush();
}
ds.Dispose();
bzTable.Dispose();
adTable.Dispose();
cntTable.Dispose();
}
|
|
|
|
|
thanks, that really helped me.
have a nice day, Laziale
|
|
|
|
|
I have done that with XSLT, but it's tricky.
I see you posted a snippet of XML, could you also post how you want the CSV to look?
|
|
|
|
|
Sorry for such question (I think it was earlier, but my problem is below):
I'm trying to find transparent controls and all I'd found are only ones, which background-transparent, but not on-control-transparent:
picture:
Transparent[^]
As you can see, usual button cannot be seen under glass transparent button.
|
|
|
|
|
it's because, in WinForm, transparency is faked by calling OnPaintBackground() of the parent from the child control.
There is no solution I'm afraid...
But it works like a charm in WPF if you must know!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
and is there any way to "inherit" form opacity?
on WPF, i know -\
|
|
|
|
|
In WPF all control are transparent.
This is made easy due to the fact that there is only one operating system Window/HWND object: the top level object (the form).
I.e. everything (save the top level window) is just a logical object not backed-up / constrained by any OS handle.
However the Windows OS does support Windows transparency, and so WPF can support it too.
There is a flag to set somewhere to have a transparent window. I haven't use it much so I forgot, but it's easy.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
flag somewhere, where not everyone can see?(
|
|
|
|