|
Short question, so a short answer: No its not supported by the framework.
You could try using Web Services, but its not adviced.
|
|
|
|
|
Anyone have code for a simple app to test if a computer has dot net framework or not?
Anyone know of one that runs straight from a browser?
Thanks,
RABB17
|
|
|
|
|
|
Hi,
I'm having problem that I don't know how to get a text from an active text editing area of another program. For example,
I want to run a program in background.
When a user open some application (eg. NotePad) and type whatever, I want my program to know what's typed. Or if he open Microsoft Word and do that, I want the same feature.
I'm trying this to make a input method which need contextual inputs.
I know it can be done with monitoring keystrokes but it will be problem if user opened the document or paste from somewhere...
Please help me.
Regards,
VOX
|
|
|
|
|
This can only be done though a combination of methods (depending on the target application). Examples would be:
SendMessage (Notepad etc)
COM (Word etc)
Direct memory mapping on other applications (this is NOT easy).
Basically what you are trying to do is something that could be SERIOUSLY misused, so do not expect applications making it easy for you - hopefully quite a lot of them will actively fight against you.
|
|
|
|
|
http://it-pedia.com/dotnet-framework1.htm
Excellent .NEt Information Resource
|
|
|
|
|
First, forums are not the right place for advertisement really.
Second, please stop copying stuff right out of Wikipedia and presenting it as your content. That is called plagiarism and is, aside from being illegal, just morally wrong.
We can let others decide:
One of your 'articles':
http://it-pedia.com/switches.htm[^]
From Wikipedia:
http://en.wikipedia.org/wiki/Network_switch[^]
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[^]
|
|
|
|
|
do you think it is my site, FYI it is not.
I just thought that it was good info. Before teaching me morals think thousand times.
|
|
|
|
|
Faraz Ahmed wrote: Before teaching me morals think thousand times.
Normally I would just let this lay as it stands but today I seem to be 'in a mood' so…
When you present information as 'good' IMHO you have the responsibility to validate the information as a whole. This includes making sure that the source is 'good'. A site that clearly plagiarizes information for it's own use is clearly NOT a good source. While the information may be valid it is tainted by the way it was delivered.
It took me all of 20 seconds to find out that article was a complete copy. One quick copy/paste into Google returned that hit on Wikipedia verbatim.
I guess I should have given you the benefit of the doubt that maybe you did not look as deep as I did, but then again, when presenting an information source as good you owe it to the communality to do your due-diligence as to the source.
If a book publisher sells a book that contains plagiaristic materials without doing their checking they can be held accountable in conjunction with the author. Again, due-diligence is key here.
For assuming you were the author intending to do the actual plagiarizing I apologize. But you still need to watch your sources. This is no better than being the one person caught forwarding a hoax email about a missing kid or people getting their organs stolen in their sleep. Do your homework just a bit before you pass out information.
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[^]
|
|
|
|
|
Does anyone know of a RADIUS authentication library for .NET? I don't think there is one inherently in the framework. I would think there is a third-party vendor out there that makes one though. Anyone heard of one?
|
|
|
|
|
I have a program that has several access database and one excel file stored in the bin folder. I am having trouble building a setup program that will work. Program runs fine, just wont open - read the access or excel files.
FastTaxi
|
|
|
|
|
I am trying to pInvoke into a very simple C++ dll I have created, from my C# winforms app. I start by creating a C++ dll using the VC8 wizard, and checking off "export symbols" as I want to call a basic function from C#. By default the wizard creates a sample function and exports it.
However when I run my C# app, it says it can't find an entry point for the function name I have defined in my DLLImport attribute. I have made sure that the dll is in the same directory as my C# executable. Incidentally, I can pInvoke fine into other system dlls, so what am I doing wrong?
|
|
|
|
|
Paste some C/C++ source code about the function and the C# [DllImport] method.
The problem is probably the fact that the exported function is decorated.
If you know nothing about C/C++, your in for some confusion.
David
|
|
|
|
|
I'm developing - simple graphics editor, that should be placed on the web-site.
It downloads the picture from the MSSQL server (i do this via WebService),
edits this picture (putting some lines, dots, whatever), and than uploads changes to server.
Since 2 part are ready, i have a terrible headache about the lastthing.
The problem is:
I draw primitives using Graphics, since this class don't know how to save the image drawn -
I have to use unmanaged code to save it (BitBlt and stuff).
Everything works ok, if it's standalone application - but i MUST use it as Applet,so there is a SecurityPermision
Exception is raised when i'm trying to do unmanaged code.
I tried to add the signature to the dll (sn -k), but somewhy IE doesn't want to load this applet.
As far as i know, if user adds my DLL's public key to the trusted list - i can do unmanaged code (where he should put it).
So the questions are:
a) How i can save the image with drawn primitives
(actually i need a stream to it, to upload to the server) using managed code
b) How should add sign a dll, to let IE show it
c) How should user add this to his trusted Assemblies list
Here are the source codes:
index.html
<object id="upload1" classid="IEControlv2.dll#IEControlv2.UserControl1" width="800" height="300" style="font-size:12;">
<param name="UserName" value="MyName" />
IEControlv2.cs (windows control)
new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert();
CreateBitmapFromGraphics(gr,1,1,100,100); <---unmanaged code, where exception is raised.
CodeAccessPermission.RevertAssert();
P.s. the .Net is 1.1 version
|
|
|
|
|
The only way to do what you want here without using your unmanaged DLL is to create a Bitmap object and draw to it.
Example:
<br />
private Bitmap bmpCanvas;<br />
<br />
OnLoad(...) { bmpCanvas = new Bitmap(this.ClientSize.Width, this.ClientSize.Height); }<br />
OnResize(...) { bmpCanvas = new Bitmap(this.ClientSize.Width, this.ClientSize.Height); }<br />
<br />
OnDrawRect(...) {<br />
Graphics g = Graphics.FromImage(bmpCanvas);<br />
g.DrawRectangle(...);<br />
g.Dispose();<br />
}<br />
<br />
OnPaint(object sender, PaintEventArgs pe) {<br />
pe.Graphics.DrawImage(bmpCanvas, 0, 0);<br />
}<br />
After this has been implemented you can start streaming fairly easily:
// Pre-Buffer alittle maybe:
MemoryStream stream = new MemoryStream(bmpCanvas.Width * cmpCanvas.Height * 3);
// Stream as PNG (loss-less and has good compression):
bmpCanvas.SaveImage(stream, ImageFormat.Png);
You can then call stream.GetBuffer() and use stream.Length to send the data.
You might want to ensure the user is complete and dispose of the Bitmap to reduce the memory footprint.
|
|
|
|
|
dnewmon, GREAT thanks - your solution killed few another rabbits
I have only one problem - Eraser tool.
So, assuming, i have the Bitmap - with the Transperent background.
I draw on this Bitmap primitives - i want to be able somehow to erase their parts.
Let's say i draw few lines,
DrawLine(pen,1,1,100,100);
DrawLine(pen,10,10,100,100);
and want them to dissapear in the Rectangle(90,90,10,10);
How can i do that?
Is the Bitmap::LockBits method relevant?
great 10x
|
|
|
|
|
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
|
|
|
|
|