|
I think that BinaryReader and BinaryWriter is what you are looking for.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello,
I am writing an application that enable user to create HTML files
but all his formatting choices are saved in a CSS file linked to his HTML file I'm writting this file by using the StreanWriter class but I don't know how to read a specific element to edit it when user changed his design.
Thanks.
Dad
|
|
|
|
|
Try using a regex to read the style from the CSS file.
|
|
|
|
|
HI,
i have several .mht files with hyper links connections
Like File1.mht has a hyper link to File2.mht
in my application there are :
1. Tree View - each node represents and load an .mht file
2. web Browser that shows that .mht
the think is that when i display File1.mht and press the hyper link to
File2.mht the web Browser shows no page can be displayed
any IDEA
Have Fun
Never forget it
|
|
|
|
|
Hi all,
I made a simple program to store wave and mp3 files with SQL Server and c#, Can I play the sound file directly from the database without creating the file to temporarily directory ....
I stored the file as binary in the database...
thanks
modified on Sunday, July 20, 2008 1:08 PM
|
|
|
|
|
|
sir , plz send the program code ..with this quote
|
|
|
|
|
Hello Forum
I am wondering what is the best way to automatically recalculate a value in a specific field.
I have on my form fields A and B these are bound to a MSSQL table and I have field C that is a result from A + B. is the way to recalculate field C to assign an on change event on fields A and B or there is another way where I can achieve this?
I am trying to avoid attaching an event on each field.
Thank you,
|
|
|
|
|
if you don't show field C in your form you don't require to raise events, other wise how you change the value of C?
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
|
Use INotifyPropertyChanged in your property fields, and react to the change. If you take a look for an article on binding by Paul Stovell on using databinding in Windows Forms then you can find an example suitable for your needs.
|
|
|
|
|
Hi gurus,
I would like to know how it is possible to insert in a combo box the text values of an enumeration object?
For example, consider the SymbolType enum object from ZedGraph.
I would like to browse the enumeration values and add them in a combo box in order to give to the user the possibility to select the symbol for the curve.
I hope my question is clear enough.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Use Enum.GetNames(typeof(SymbolType)) to get the names of the constants.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Ok that works great Thanks!
There is no spoon.
|
|
|
|
|
Check out this article[^].
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
I am looking for a hosting company to host ASP.net 2.o that support Dynamic Fonts and AJAX with no traffic tie ups. It will be great if someone can direct me ont this. Thanks in advance!
|
|
|
|
|
Hi All,
I have a datatable :
id name duration
01 001 00:10
02 002 00:20
03 003 00:10
As you can see, rows 0 and 2 have the same duration: 00:10
Now how can i make a algorimte to remove all those rows(except ONE of those rows) that has the same duration from my datatable ?
Thanx.
modified on Sunday, July 20, 2008 8:20 AM
|
|
|
|
|
Hi,
perhaps the easiest way is to sort your datatable by duration using Select method and then iterate the results and delete the duplicate durations.
Hope this helps,
Mika
|
|
|
|
|
Group by duration and use min(id) to get one of the records to keep, and use having to get the ones where count(*) > 1. Now join this result in a delete on the table, and specify the ones where id is different and duration is the same.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have made a project in which i have generated a report with the help of data in the database. Now I need to print the report but I don't know how to include and print a *.doc extension file through the project.Please help me......
|
|
|
|
|
1. save your report from database in temporary file and give extension .doc i.e: c:\temp\abcd.doc
2. call ShellExecute with parameter 'print' instead of 'open' (please read documentation about calling winapi method)
requirement : ms word
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Hi,
you don't really need ShellExecute and WinApi; the Process class and ProcessStartInfo.Verb offer
the required functionality.
|
|
|
|
|
thanks fyi
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Heyho SeeSharp PPL,
I have a question, for status connection:
private void button2_Click(object sender, EventArgs e)<br />
{<br />
string MyConString = "SERVER=" + WheRe + ";DATABASE=" + dB + ";UID=" + aCC + ";PASSWORD=" + Pw + ";";<br />
MySqlConnection connection = new MySqlConnection(MyConString);<br />
<br />
if (connection.State == ConnectionState.Closed)<br />
{<br />
string code = "Connection failed!";<br />
}<br />
else<br />
{<br />
string code = "Connection successful!";<br />
}<br />
<br />
<br />
System.Windows.Forms.MessageBox.Show(this, code);<br />
connection.Close();<br />
this.Close();<br />
}
How can i make the if statement to work it does show me anny errors.. and it doesnt work like i want it todo..
Anny one? =)
|
|
|
|
|
Hi,
Can't see any call to Open method so the connection will not be established. Try adding it before investigating connection state.
Also keep in mind that a connection has several possible states.
Mika
|
|
|
|