|
|
Marc Clifton wrote:
I smell a short article.
Good idea. There will also be a BitmapButton in the GUI Library.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Marc Clifton wrote:
It makes your GUI's look pretty.
To make it more precise, it enables version 6.0 of the common controls library. This version is themes aware so it will make use any XP themes enabled on the end system.
Marc Clifton wrote:
However, also notive that the tab pages have white tabs and grey backgrounds for their body.
That is a bug in .NET WinForms, I can't remember if it was fixed in 1.1 or not though. This article, http://www.codeproject.com/cs/miscctrl/themedtabpage.asp[^]
describes the fix for it.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
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.
http://www.binarymission.co.uk/[^]
"...if you don't want to hear things that piss you off don't piss off other people. SIMPLE." - Steven Hicks This signature was created by "Code Project Quoter".
|
|
|
|
|
I'll have the article submitted in about 30 minutes.
Marc
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"
|
|
|
|
|
Got it..
Man...that's quick...
"...if you don't want to hear things that piss you off don't piss off other people. SIMPLE." - Steven Hicks This signature was created by "Code Project Quoter".
|
|
|
|
|
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.
<code>
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
Try
'download file
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
System.IO.Directory.CreateDirectory("C:\ofac")
End If
l_oStream = New FileStream("C:\ofac\t11sdall.exe", FileMode.Create, FileAccess.Write)
l_oBW = New BinaryWriter(l_oStream)
l_oBW.Write(bFile)
</code>
Thanks for any help here!
Jordan
|
|
|
|
|
|
VB. Wrong forum.
If you have help in C# that works too.
Thanks,
Jordan
|
|
|
|
|
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 input;
int count = 0;
while ((input = re.Read()) != 0)
{
//do something
}
re.Close();
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.
TLC 7748 94210 467-4284 17:17 00:00:35 $00.00
TLC 7654 94209 530-1586 17:17 00:01:10 $00.00
* IN 7640 94212 803-793-7266 7640 17:16 00:02:58 $00.00
IN 7653 94215 7653 17:19 00:00:12 $00.00
IN 2500 94212 7748 17:20 00:00:06 $00.00
Thanks muchly,
BrewCrew
|
|
|
|
|
I guess this question must be too stupid or obvious to elicit a reply. Can anyone suggest a newbie message board that might be more appropriate?
One more thing, the file is prefilled with nulls so I can't just read till EOF.
|
|
|
|
|
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
Thanks for any help guys.
/I need a signature I guess
|
|
|
|
|
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..
-Lucas
|
|
|
|
|
Yes, yes, I know I could do that. But that would require a pop3 server, which I don't want to install or use. The Microsoft SMTP Service doesn't support pop3 as far as I know.
/I need a signature I guess
|
|
|
|
|
Hello again Gurus,
How can you tell which row is being selected when the user:
1) Click on the row-header or
2) Click any where or any cell of a row
Thanks Gurus
Khang Nguyen
|
|
|
|
|
hello,
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.
ASIM
Asim
|
|
|
|
|
not sure if this is the sort of thing you want :
VbCode:
<font color="#0000FF">private</font> <font color="blue">void</font> Form1_Load(<font color="blue">object</font> sender, System.EventArgs e) <br> { <br> <font color="#0000FF">object</font> objNull=<font color="#0000FF">null</font>; <br> brWeb.Navigate("about:some text in a browser!", <font color="#0000FF">ref</font> objNull, <font color="#0000FF">ref</font> objNull, <font color="#0000FF">ref</font> objNull, <font color="#0000FF">ref</font> objNull); <br> } <br> <br> <font color="#0000FF">private</font> <font color="blue">void</font> button7_Click(<font color="blue">object</font> sender, System.EventArgs e) <br> { <br> <br> mshtml.IHTMLDocument2 Document; <br> <font color="blue">object</font> source = brWeb.Document; <br> Document =(mshtml.IHTMLDocument2)source; <br> <font color="#0000FF">string</font> s=Document.activeElement.innerHTML; <br> Document.designMode="On"; <br> Document.write(s.Replace("browser", "WEBBROWSER!")); <br> Document.designMode="Off"; <br> } <br>
hope it helps
Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br> Select Case</font> twins<br> <font color="blue">Case</font> "Gender" <br> <font color="blue">Return</font> "Two Girls" <br> <font color="blue">End Select <br> End Function</font> <br>
|
|
|
|
|
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.
<br />
[DllImport("Gdi32.dll")]<br />
private static extern int GetPixel(IntPtr Handler,int x,int y);<br />
[DllImport("user32.dll")]<br />
private static extern IntPtr GetDesktopWindow();<br />
[DllImport("user32.dll")]<br />
private static extern IntPtr GetWindowDC(int Pointer);<br />
[DllImport("user32.dll")]<br />
private static extern IntPtr ReleaseDC(IntPtr hWnd,IntPtr hdc);<br />
<br />
<br />
int j = CheckPixel(100,100);<br />
int jm =Convert.ToInt32(j);<br />
Color c = Color.FromArgb(jm);<br />
MessageBox.Show(c.ToString());<br />
<br />
<br />
private int CheckPixel(int x,int y)<br />
{<br />
IntPtr DC = GetWindowDC(GetDesktopWindow().ToInt32());<br />
int jm = GetPixel(DC,x,y);<br />
ReleaseDC(GetDesktopWindow(),DC);<br />
return jm;<br />
}<br />
<br />
Thanks for your time.
Jesse M
The Code Project Is Your Friend...
|
|
|
|
|
Quote from MSDN:
"GetPixel:
The GetPixel function retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates. "
This seems to imply that the Alpha value is undefined when returned from GetPixel . It seems as though the Alpha is always zero, but then the docs don't say that so you can't trust it.
I haven't been able to locate how to get the alpha value though
-Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
hello,
here is the scenario, for my problem.
how can i use IIS installed on another machine in a networked environment, i.e. IIS is not installed on my system.
i am just to create an asp.net application.
ASIM NAZIR
Asim
|
|
|
|
|
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
Post best viewed with lynx
|
|
|
|
|
Hi,
Could anyone tell me how can I add image(icon / jpg...)in subItems of ListView?
e.g. I want to add one icon at Item[1].SubItems[7] ..
what is the way for doing that?
Thanks a lot
|
|
|
|
|
What is the C# equivalent of CMap?
I do not need super lookup speed but fast would be nice. A short example would be very cool, but a hint on what to look up would be perfectly cool.
Thanks

|
|
|
|
|
Try System.Collections.Hashtable
|
|
|
|
|
Dear gurus,
Does anyone know how to set column widths of DataGrid? I only see
dataGrid.ColumnHeadersVisible property.
Thanks in advance,
Khang Nguyen

|
|
|
|