|
strText = strText.Replace(Microsoft.VisualBasic.ControlChars.Cr, Microsoft.VisualBasic.ControlChars.CrLF)
"People who never make mistakes, never do anything."
My blog
http://toddsnotsoamazinglife.blogspot.com/
|
|
|
|
|
|
YES! ReadToEnd() worked! Thanks you all!
Darth_Sulfur (Sulfurik)
http://www.SulfurSoft.tk
ftp://tsfc.ath.cx
http://tsfc.ath.cx
hotline://tsfc.ath.cx
|
|
|
|
|
I need to generate Excel Reports using Pre-Created Excel Template.
Data is fetched from the databse. Does any one know any managed open source tool
to achieve this? All help is appreciated.
|
|
|
|
|
Hi there!
I made an application that needs to give the number of UDP packets that pass in port 1024.
The program is the following
while(received_data != 0)
{
received_data = exp.udpclient.ReceiveFrom(exp.udpbuffer, 0, exp.udpbuffer.Length, SocketFlags.None, ref exp.udpep);
count++;
}
This program work fine in Windows, but the problem is that using ethereal I found that windows don´t receive all the packets that the server send. In Linux, ethereal receives all the packets that the server send. But my program running in mono, don´t receive all the packets =/
Anyone can help me to find a solution for this?!
The problem of performance is in mono, or is ReceiveFrom from the socket?!!
Thank you.
I hope to hear you soon.
|
|
|
|
|
|
UDP is a connectionless protocol. There is no gaurantee that any client will receive all the packetssent by any particular sender...basically UDP is just send and pray...
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Hi,
I have various reports Designed in Crystal Report and would like to embbed those reports in a Aspx Page. How will I do it, do I have to use Crystalreportviewer Control or how will this work when I add crystal report to my existing Aspx Project. Help highly appreciated.
Thanks,
|
|
|
|
|
Yes you have to use the crystalreportviewer, i have tested reports build in crystal reports 8 i jus add them to the solution, make a little change (like moving a text) and save it, then i link it to the viewer, if you dont see it, you might have to download a patch from crysal.
Carlos Sánchez Pérez
Mathesis Consultores
Cd. Obregon Sonora Mexico
carlos@mathesis.com.mx
|
|
|
|
|
Anyone know how I can access S.M.A.R.T. information about my disk drive using .Net?
And how to enable it by code?
Thanks a lot,
Bernardo Heynemann
Lead Architect at CoreTech.com.br
Bernardo Heynemann
Lead Developer / Architect for Core Tech Brazil
|
|
|
|
|
Is there is any way to handle events of different types by one function.
For example I want to handle events of EventHandler type and my custom events with single function that have different number of parameters or have no parameters.
|
|
|
|
|
You can add a handler to several different events, but if you need to determine where the event came from or what type of event it was, you have to check the values of the sender and eventargs parameters sent to the event handler.
An event handler has to be declared with the exact parameters as the eventhandler delegate, e.g. with the sender and eventargs parameters. From the event handler you can then call any methods you wish in your code.
---
b { font-weight: normal; }
|
|
|
|
|
The Problem is that I cannot use only eventhandler delegate. I am using Infragistics controls and
For example i cannot add same function to Button.Click and
Infragistics.Win.UltraWinEditors.UltraTextEditor.EditorButtonClick because it has type EditorButtonEventHandler.
Maybe there is any way to handle such event using reflection?
|
|
|
|
|
You need at least one event handler for each type of delegate.
The event basically uses a reference to the handler to call it, and if the parameters that the handler accepts does not match the parameters that the event sends, you would mess upp the stack.
Maybe you could add a event handler reference of the wrong type to the event using reflection, but that would probably just crash the application.
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
Is there a way to convert string from a text box to a float?
Thank you
|
|
|
|
|
Convert.ToSingle(stringVal)
Kevin
|
|
|
|
|
float.Parse(myTextBox.Text);
|
|
|
|
|
Unless you specifically need the data type float, use the data type double for floating point operations. The cpu only uses two data types internally, integer and double, any other data type has to be converted before the cpu can do any calculations with them.
double MyValue = double.Parse(MyTextBox.Text);
---
b { font-weight: normal; }
|
|
|
|
|
When i bring up a message box with a yes / no option, how do i make it do different things depending on the reply.
Eg. "Exit" - user
"Are you sure?" - Messagebox with yes / no
"No" - user
continue running the app and dont close.
|
|
|
|
|
|
I've loaded a bitmap in memory, now i would write over (in GDI) text, and rotate it before apply to the bitmap.
how?
|
|
|
|
|
Hi,
See the Graphics.FromImage() method. You can then used the returned Graphics object to draw text on the Bitmap.
Regards,
-Adam.
|
|
|
|
|
I want to find analogue to this function in C#...
I want to draw line on the image with inversed colors... Like when you selecting the area in Photoshop... or drawing new shape in other editors..
|
|
|
|
|
Hello
You can use DrawReversibleFrame and DrawReversibleLine methods of System.Windows.Forms.ControlPaint class for drawing selection regions or lines.
But, if you need SetROP2 function, you will need to interop it. [^]
Andrew
|
|
|
|
|
hi all,
I need to use 2 colors to root nodes and child nodes in a treeview.
How can I suceed this?
thanks in advance.
|
|
|
|