|
I just figured out a way to do this:
<br />
bmpCanvas = new Bitmap(320, 240, PixelFormat.Format32bppArgb);<br />
Graphics g = Graphics.FromImage(bmpCanvas);<br />
g.Clear(Color.White);<br />
g.FillRectangle(new SolidBrush(Color.Red), 0, 0, 200, 200);<br />
g.FillEllipse(new SolidBrush(Color.FromArgb(255, 0, 0, 0)), 0, 0, 200, 200);<br />
g.Dispose();<br />
bmpCanvas.MakeTransparent(Color.FromArgb(255, 0, 0, 0));<br />
The ellipse is an "erased" region and considered transparent.
I tried using Color.Transparent instead of Color.FromArgb(255, 0, 0, 0) but had no luck.
NOTE: The MakeTransparent(...) call has to be made every time you erase a region.
Enjoy,
David
|
|
|
|
|
David, Great thanks for help
|
|
|
|
|
Can anyone tell me the command line arguments to get the J# Redistrubutable to install silently?
I have tried using /q but I still get all the UI prompts for installation.
"#APPPATH\SupportFiles\JSharp\vjredist.exe" /q
Your Help Would be greatly appreciated
Paul
|
|
|
|
|
Can I install .net SDK v2.0.50727 and continue using Visual Studio 2005 Beta 2 IDE ?
|
|
|
|
|
I doubt it. Don't know until you try though!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
predragzakisevic wrote: Can I install .net SDK v2.0.50727 and continue using Visual Studio 2005 Beta 2 IDE ?
No, while trying to install .net SDK v2.0.50727 you get an errormessage.
Just use the Express Edition to try .net 2.0. If you want to develop conplex applications buy the VS05
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
I'm just starting out with VSTO in Excel, and I've run across a small problem. I have two list objects, once of which I want to remain unchangable and one of which I need to be able to edit/modify. In addition, I do not want the user to add anything outside of the two list objects(there will be some labels, but that's it).
In sheet1.cs, I have:
listNotChangable.SetDataBinding()
listChangable.SetDataBindgin()
//that fills the lists.
//I then try
this.Protection.AllowEditRanges.Add("Changable", listChangable.Range, missing);
this.Protect(missing, missing, etc...)
Now, this works. The only cells I can modify are those in the changable range, but I cannot extend that range, and I can also not use any drag/drop or copy/paste features on the sheet, I can only direcly modify individual cells themselves.
So my question is: Is there a separate way to lock everything outside a listbox from being changed, but leave the inside of a listbox as if it were on a new excel spreadsheet, so I can drag/drop, copy ranges, etc.
Any ideas on where to look? I'm using Carter/Lippert's Visual Studio Tools for Office as a reference tool/guide, so pointing me to chapters there(if you have it) will work.
-- modified at 14:01 Friday 2nd December, 2005
|
|
|
|
|
hi ,
i am antony,i am developing a project in vb.net,i need a coding to convert text to speech and how to send the message from one system to another system by finding the ip address,kindly send the coding to finish our project& help us in this regard.
|
|
|
|
|
You lazy SOB. There are a ton of examples in the Microsoft Speech SDK if you have even bothered to look at it and even more with a quick google.
You dont want help, you just want someone to do your work for you. Well, you wont get that here.
If you think my response is a bit blunt why dont you actually read the forums to see
a. How a properly asked question gets a reply
b. Why we get so pissed off with the amount of arseholes like you who just want someone to do it for them.
Jon
|
|
|
|
|
And this is the diplomatic response.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
And, Quite a Nice Diplomatic Reply in that;)
And, That first post also looked a lot like some application form:P
Yuvi Panda T (Simply Yuvi)
|
|
|
|
|
Hello,
On my web server I have Word 2003, and I would like to dynamically generate a Word doc and save it to the server, and return a link to the client so he/she can download it.
However, my cient only has Word 2000, but VSTO requires Word 2003. Once I generate the Word 2003 doc, can I save it as a Word 2000 version, so that older versions of Word on my clients can read it?
Thanks in advance for any feedback, advice and/or help you can give.
Cheers,
Kris.
|
|
|
|
|
Hello,
I'm fairly new to .NET, so please bear with me.
I'm having a little problem with a couple of nested forms and how user input is extracted from them. Currently I have two classes (say, ClassA and ClassB) and two forms (ClassAForm and ClassBForm, for example). ClassA, which has a private instance of ClassB, is a control and is set to display a ClassAForm when clicked. ClassAForm has a button that displays a ClassBForm when clicked. Since ClassBForm was instantiated inside ClassAForm, which in turn was instantiated inside ClassA, ClassA has no access to ClassBForm's data... How would I go about solving this?
|
|
|
|
|
Will chaining a getter work for you?
class ClassA
{
ClassAForm caf;
void SomeMethod()
{
Console.WriteLIne(caf.ValueFromB);
}
}
class ClassAForm
{
ClassBForm cbf;
int ValueFromB
{
get { return cbf.Value; }
}
}
Or you could have a property in ClassAForm that returns ClassBForm itself, but it kindof breaks the encapsulation aspect.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I have an ATL Server Web Service (SOAP & HTTP), using session-state managament per client Session Variables which are COM Objects (VB6 ActiveX dll multi-thread ) casted to Variant(IDispatch) in order to set the Variable. With multiple clients I'm having several thread issues (which I don't have (obviously) using the same management with ASP .NET WebService) and really don't know how thread-safe operations (if that's the case) are made on an ATL Server WebService. So if u have some tips or examples about this type of ATL Server Web Service implementation/use (couldn't find any) let me know.
Thanks
|
|
|
|
|
Hello CodeProject!
when i write larger classes, for example when i add new event handlers (from winforms), properties, and functions over a period of time, its very hard and time consuming to keep the code clean and group all the member variables, constructors, methods, properties together in clear regions. Further, even if i try to keep the grouping i am missing some kind of sorting inside the regions which would be even more time consuming to apply, so i just let it unsorted...
Do you know a hidden feature, or maybe an AddOn or extra tool which would sort your code, for example, put all member variables to the top, then continue with all constructors, and so on, and afterwards, it could sort by access, and/or alphabetically?
Regards,
Thomas
|
|
|
|
|
Hi;
I need to develop a COM Add-Ins for Outlook 2003 with VS .NET 2003.
My current configuration is the target configuration with VS .NET 2003 and Outlook 2003. It works very well !!
Problem is : I need to send my target configuration and transfer the development soluton on a new pc. This new PC is equipped with VS.Net 2003 and Outlook 2002 (and not Outlook 2003).
the .MSI of my add-ins works perfectly. the add-ins also works perfectly on the Outlook 2002.
BUT : I could not generate on that PC. The Microsoft Outlook 11.0 object library (V9.2) is not found.
My question is :
How to set the configuration of this new PC to be able to develop COM Add-ins for Outlook 2003 ?(Is a copy of the library is enough ?)
Many thanks for your help
Frédéric
Frédéric
|
|
|
|
|
I'm a newby to mobile development and was needing a hand figuring out how to load images into a pictureBox control at runtime, I had originally solved the problem using an imageList but decided the constraint of having a uniform size for each image in the list was not even close to ideal.
Thanks a bundle in advance for your help.
B
|
|
|
|
|
Hi everyone,
So I thought to myself today that I should try to develop my first Smartphone app, just for fun. I have had an Orange SPV C500 for about 6 months now, and I really missed a stopwatch application (I wanted something simple and easy to use, without all the graphic stuff all other stopwatch apps seems to have).
I have downloaded and installed Smartphone 2003 SDK, so now I'm able to target Smartphone 2003 based devices in my Visual Studio 2003. I have created my simple stopwatch application, and quickly ran into the first issue.
Once I start the stopwatch, I save the DateTime.Now into a StartTime variable, and then I update the display every 100 milliseconds. To update the display, I calculate TimeSpan ts=DateTime.Now.Subtract(this.StartTime) and then use String.Format to output the value.
The issue: The Milliseconds property of TimeSpan is always zero!
Does this mean that the .NET Compact Framework doesn't support milliseconds when working with DateTime/TimeSpan? Or am I doing something wrong? When I use the same code in a Windows Forms application, it works fine (including the milliseconds). But the behavior is the same (no milliseconds) in smartphone emulator as well as in the real device (SPV C500). Even the DateTime.Ticks seems to always advance by 1 second.
Anyone got any ideas?
Rado
PS: Are there any good communities/forums dedicated to smartphone development? I mean, there is of course the CodeProject for generic C#/C++ development, or www.asp.net for ASP.NET, but I couldn't find anything like that for smartphones.
Radoslav Bielik
www.neomyz.com/poll [^] - Get your own web poll
www.neomyz.com/rss [^] - RSS Web Reader - latest news for your site
www.neomyz.com/games [^] - Add a small game to your website
|
|
|
|
|
It's supported, at least in the documentation it says it is. I would guess that the hardware doesn't support milliseconds when returning the time.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: It's supported, at least in the documentation it says it is. I would guess that the hardware doesn't support milliseconds when returning the time.
Thank you for your response, I was afraid noone would reply!
Do you think it isn't supported on the Smartphone 2003 platform as a whole? Or only the specific device (Orange SPV C500)?
I started testing on the emulator, which is a part of Smartphone 2003 SDK, and when I noticed I don't get milliseconds, I've tried it on the real device with the same results.
Thanks,
Rado
Radoslav Bielik
www.neomyz.com/poll [^] - Get your own web poll
www.neomyz.com/rss [^] - RSS Web Reader - latest news for your site
www.neomyz.com/games [^] - Add a small game to your website
|
|
|
|
|
I have no idea, but if I had to guess, I think it would be the SmartPhone platform that lacks the support for it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hallo,
I'm working on some sort of server/client communication right now. To keep the server (a Windows service) as responsive as possible, I'm looking for a way of connectionless communication. There are four problems/requirements:
1.) All data has to arrive contemporary at the client, because it's used for a (almost) realtime graphical presentation (delay < 100ms).
2.) The data transferred from the server to the client consists of very small chunks (10 bytes + a one byte identifier) each, which obviously is the main problem. Unfortunately there is no (practical) way to group that data into larger packets.
3.) The amount of data can get very high at peak times (up to 5000 packets = 55000 Bytes a second).
4.) A reliable communication is not needed. It's ok if not all data arrives at the client as long as the paket loss doesn't get too high (again 1 packet/100ms minimum).
I've tried several solutions (please don't laugh) and measured the maximum speed, here are the results:
- Windows Message Queues (~20 KByte/s)
- Asynchronous Remoting calls (< 5 KByte/s)
- UdpClient class (~30 KByte/s)
- Self-made managed lower-level socket layer (~120 KByte/s)
As you can see the sockets solution fits my need speed-wise. Unfortunately it eats up 100% CPU power just for the communication which obviously isn't what I'm looking for.
I understand that the small packet size is my problem (sending packets of > 1000 bytes increases the speed enormously, but I can't do that => fixed third party interface). Is there any recommended solution for transporting a lot of packets but each with very small amounts of data? I can't find anything about that topic, so any help would be highly appreciated.
Thanks!
-- modified at 16:32 Monday 28th November, 2005
|
|
|
|
|
Are both the source and destination process on the same machine? If not why not put something in between on the far (source) machine that takes data as fast as I can get it and create larger packets to send across to your receiving process? Treat it kind of like a jitter buffer. have the intermediate process just store up enough data to make a larger packet and not send anything until it is full then send and start buffering another package.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Oops... seems like the e-mail notification does not work (I didn't receive a message after you replied).
Thanks for your answer. I more or less already did what you said. Unfortunately there were strict limitations that didn't let me build larger packets (the client almost needs new information instantly), but with three pieces put together to one packet performance is very good now (and also the CPU load dropped). Thanks again for your help!
|
|
|
|
|