|
Hi!Nair,
Thank you for your good example.
I can learn something from this sample code.
So what about the upper two problems?
Thanks!
momer
|
|
|
|
|
can anybody guide me how I can access email account settings like pop3 server,smtp server email address which are stored in ms outlook through c# so far i am able to access default folder of outlook like contacts inbox notes etc.is there any way to access these entries.
Thanking You,
chintan
|
|
|
|
|
|
thank you sreejith..for your reply..but this article give information about the things which i have already done like accessing inbox,notes,contacts..I am still not able to access email account settings of outlook through c#.could you guide me bit more so that i can get the email account settings..
thanking you,
chintan
|
|
|
|
|
Hello,
I have been trying to convert a ulong into it's component bits.
Unfortunately there is no converstion operation, and using pointers this is not possible, since there is no pointer of size 1 bit.
I have also tried the BitArray operation, but this only allows for int32 size variables... so I converted my ulong into 2 ints. However the result was not correct.
Now I do not have any ideas how to proceed.
Could somebody pls help me?
|
|
|
|
|
A combination of masking and shifting will work. For example:
ulong ulValue = 0xF345612347892019UL;
ulong ulMask;
int iBitValue;
for ( int iBit = 0; iBit < 64; ++iBit )
{
ulMask = 1UL << iBit;
iBitValue = (int)((ulValue & ulMask) >> iBit);
System.Console.WriteLine( "Bit {0}: {1}", iBit, iBitValue );
}
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
How to add small pictures for a chat windows (emptions )by shortcut.Buzz type of utility. like this
Learner always
|
|
|
|
|
Hi guys,
just a quick question.
This is my first time ever using GDI+ and C# for graphical output.
I have a Windows Form with 3 Panels, one docked to the middle (center) and 2 docked to the bottom. I use these panels to render graphs and rulers.
If I resize my Window, everything seems to be ok, the panels have a new size (larger or smaller) and look alright. But if I try to draw my graph or render my text, the renderer seems to be only using the "old" width" and height, not the additional area provided by the resize.
Well, I could always prevent the window from being resized, but that is really no help
If you could give me any hints, i would be very grateful.
Cheers
Sebastian
|
|
|
|
|
Try to invalidate the panel after before maximizing from minimized state.
That is call panel.Invalidate() to invalidate the panel region when user choose maximized.
And get back to me if this answer don't serves you.
|
|
|
|
|
Try to invalidate the panel after before maximizing from minimized state.
That is call panel.Invalidate() to invalidate the panel region when user choose maximized.
And get back to me if this answer don't serves you.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Sorry, that did not work :/
Any other ideas?
Cheers
Sebs
|
|
|
|
|
I'm convinced that ScrollToCaret can be used for this, I'm just not sure what this "caret" thing is, but I'll probably figure it out now
|
|
|
|
|
By using AppendText instead of textbox.Text += newtext, it all works.
Thanks anyhow
|
|
|
|
|
Sometimes it's so simple
Too bad, this isn't mentioned on MSDN topic.
www.troschuetz.de
|
|
|
|
|
Yeah i found this method too. I guess the "caret" has something to do with the selection.
I'm sure with a few tries you will find out and make your code work
www.troschuetz.de
|
|
|
|
|
Yeah, that little "blinky" verticle line in a TextBox is the Caret. It call also be called the Insertion Point, Cursor, Blinky Thing, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
how do i convert a c++ declaration of a function like this
FT_STATUS FT_Read(FT_HANDLE, ftHandle, LPVOID IpBuffer, DWORD BytesRead,
LPDWORD BytesReturned)
where
ftHandle - Handle of the device to read.
lpBuffer - Pointer to the buffer that receives the data from the device.
BytesRead - Number of bytes to be read from the device.
BytesReturned - Pointer to a variable of type DWORD which receives the number of bytes read from the device.
to C#
|
|
|
|
|
[DllImport("mydllnamehere.dll")]
int FT_Read(IntPtr ftHandle, byte[] lpBuffer, uint BytesRead, out uint BytesReturned); That's a quick guess; I'm assuming FT_HANDLE is a typedef for void* . When calling it, you need to create the array of appropriate size first.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I have a read-only textbox (I tried a label first, but for some reason it converted my \n's to a [] (a box) sign) that I need to put some text into. It is basically a chat program.
The problem is when the textbox becomes full, and more text is entered, the text goes out of view. It looks like it just keeps filling with text, but the textbox isn't "big" enough. How can I make it always show the bottom line, autoscrolling downwards in a way, like MSN Messenger for exmaple.
Sorry for the spelling errors, I'm late for lunch
|
|
|
|
|
|
Thanks, looks like it's better than the textbox, but I still don't see how I can get it to always show the last line. It now shows a scrollbar AND accepts my \n's, but as new text is entered at the bottom of the previous texts, it only creates a scrollbar so you _can_ scroll down to view the new messages, it does not however do any "automatic down-scrolling" so the latest messages are always viewable.
Sorry if I am being a pain in the ass :P
|
|
|
|
|
What you got from the above thread is the right. Otherwise if you want to implient using normal text box then set the Multiline property of text box control to true.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I had multiline on, but it didn't allow me to set any autoscrolling on.
|
|
|
|
|
Set ScrollBars property of your textbox to vertical.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I am sorry, but I don't see how that helps me, unless you expect people to be willing to scroll down manually for each new message (plus every time the user types his own message).
Yes, I want (nad have) a scrollbar, that is however not what I needed help about
|
|
|
|