Marc Clifton wrote: I can't believe there isn't a BitmapButton control on CP
The CP UGLY Project should look at current controls(MFC) available in CP and convert them to .NET controls.
Few weeks back I was looking for same control and I was surprised by no BitmapButton control at CP. Thought of developing my own but I own VS.NET 2002 standard version.(which is missing lot of wizards) So I gave up the idea.
After googling for sometime I found this company which has some good controls and they are inexpensive too. But no BitmapButton control yet.
I'll have the article submitted in about 30 minutes.
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"
I am trying to build a web service that downloads a file to my local directory.
I have the basics here but I just cannot get it to work, anybody know of any examples on this. Here is my code so far.
Dim l_oWR As WebRequest
Dim l_oWebResp As WebResponse
Dim l_oBR As BinaryReader
Dim l_oBW As BinaryWriter
Dim l_oStream As Stream
Dim bFile() As Byte
Dim l_iCnt As Long
Dim l_dtNow As DateTime = DateTime.Now
Dim l_sDir As String = l_dtNow.ToString("MMddyyyy")
Dim l_oDir As Directory
Dim l_sFile As String
Dim l_sCnnStr As String
l_oWR = HttpWebRequest.Create("http://www.abc.com/abc.exe")
l_oWebResp = l_oWR.GetResponse()
l_oBR = New BinaryReader(l_oWebResp.GetResponseStream(), Encoding.ASCII)
l_iCnt = l_oWebResp.ContentLength
bFile = l_oBR.ReadBytes(CType(l_iCnt, Integer))
If Not System.IO.Directory.Exists("C:\ofac") Then
l_oStream = New FileStream("C:\ofac\t11sdall.exe", FileMode.Create, FileAccess.Write)
l_oBW = New BinaryWriter(l_oStream)
As a newbie C# project, I'm trying to read a file consisting of phonelog data that was generated by my PBX and format it to be easy to do reporting. It's a binary file with each record separated by a null character (hex 00), and each record is 80 bytes long. I'd appreciate a little nudge in the right direction to get me started. The code below will let me look at the integer representation of each character, but what I really want to do is read each record in until end of file.
StreamReader re = File.OpenText("C:\\smdrdata.rec");
int count = 0;
while ((input = re.Read()) != 0)
Here's an example of the file data, sort of. I don't know how to show the nulls. I can email the actual file if anyone is kind enough to help.
Several years ago, I wrote a service in VB6 on Windows NT 4 that used the local Microsoft SMTP to send and receive mail messages between two applications.
For that I used the "CDO for NTS 1.2" COM library, which has been replaced by newer CDO (CDOSYS, CDOEX etc.) components.
Has anyone tried to send mail to the local SMTP Service and read the mail messages in the drop directory from a C# (or other .NET) program? I cannot find any methods in the newer CDO COM components go "log into" the local SMTP service as I could in the old CDO for NTS component.
I know I can send mail through the local SMTP service with the .NET SmtpMail class, and I guess I could listen for incoming *.eml files in the SMTP Drop directory and parse that mail myself, but if there's a proper way to do it I'd like to know
I may be professing my own ignorance..but you could always write a POP3 Mail client. RFC 1939 should help ya out with knowing what to do..it may be alot easier and proper to do this, versus some hack that would monitor a directory..
i want to change an html text field's value , programaically.
i am using mshtl object library with web browser control.
now, i have problem in setting the value in a text filed.
can someone help me.
Iam trying to get the pixel of a area in a screen of my program (for collison detection) the API call (GetPixel) seems to work..and it returns a int that i use with Color.FromArgb(int) (i think thats it) anyways when i try to convert the int i get back the color but...it doesnt convert correctly.....the A(alpha) of the color is always 0. Is there something i need to do before i try to convert the int ? Here is the code i use.
privatestaticexternint GetPixel(IntPtr Handler,int x,int y);<br />
privatestaticexternIntPtr GetDesktopWindow();<br />
privatestaticexternIntPtr GetWindowDC(int Pointer);<br />
privatestaticexternIntPtr ReleaseDC(IntPtr hWnd,IntPtr hdc);<br />
//Use a method Called check pixel (overloads Int X, Int Y)<br />
int j = CheckPixel(100,100);<br />
int jm =Convert.ToInt32(j);<br />
Color c = Color.FromArgb(jm);<br />
//method CheckPixel<br />
privateint CheckPixel(int x,int y)<br />
IntPtr DC = GetWindowDC(GetDesktopWindow().ToInt32());<br />
int jm = GetPixel(DC,x,y);<br />
//<br />//<br />
//<br />return jm;<br />
If I am understanding what you are asking you need to have FrontPage extensions and ASP.NET installed on the remote machine. However I don't know how firewalling works through this.
Matt Newman Sonork: 100:11179
"Two things have come out of Berkley, Unix and Acid, we do not belive this to be a coincidence" Linux sucks twice as fast and 10 times more reliably, and since you have the source, it's your fault. -Ca1v1n