|
Thanks, I can find this using a downloaded version of visual C# express but I really wanted to use Visual Studio.Net 2003.
I have installed .Net 2.0 but I cannot find the IO.Ports in the 'Customise Toolbox' dialog in Visual Stidio.
I think my question should have been 'How do I make Visual Studio 2003' use .net 2.0.
Thanks for your help.
Garry.
|
|
|
|
|
|
Thanks for your help, it looks conclusive that it can't be done.
|
|
|
|
|
This is a VB.Net sentence,How to realize in c#?
PHDObject = CreateObject("VisualPHD.Data")
|
|
|
|
|
|
PHDObject = Activator.CreateInstance(Type.GetType("VisualPHD.Data"));
|
|
|
|
|
hey guys,
i need to beable to interact with the CodeBase database from my C# application. please tell me its easy and tell me its free?
Regards
|
|
|
|
|
:-DI want to draw a select rectangle use mouseEvents in panel,with some drawings already existing.
At first I used MouseDown ,MouseMove and MouseUp events to draw this rectangle with solide pen,however on MouseMoveEvent,when I use a pen(with backColor)to erase the last rectangle MouseMoveEvent generated,the existing drawings are erased too.then ,I used invalidate(),but the drawings flashed.
All I want is just draw a rectangle with a Dash pen and the existing drawings not flashing,just like the selecting rectangle in WinXP deskTop.
Thanks.
-- modified at 2:13 Wednesday 8th March, 2006
|
|
|
|
|
Try using double buffering, this will probably solve the flashing.
|
|
|
|
|
Thanks for your help.the problem has been solved;
Guided by your reply,I set the control's ControlStyles.UserPaint|ControlStyles.AllPaintingInWmPaint|ControlStyles.DoubleBuffer to be true.and it works.
|
|
|
|
|
If you use .NET 2.0 you can also use this.DoubleBuffered = true
|
|
|
|
|
hi guys, any one of you can tell me how can i made my software as a trial version, i dont how do i initiate to make it trail version, any one of you please guide me.
Thanx
Raheel Iqbal
-- modified at 1:36 Wednesday 8th March, 2006
|
|
|
|
|
Hello Raheel,
There is many way to make your software trial version.
1) Use registry key.
---> Here you se one of key value in registry releted to date. & decrease by one
each day releted to current day.
2)Generate a key & statically bind it to your code.
---> Here you can generate a key & do no store it anywhere but just give it within your program code. If user key is not by program then user get limied access of your software.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Can you send me the code please if you have cause i dont have a little bit idea about it im very thankful to you
Raheel Iqbal
|
|
|
|
|
Hello everyone,
I used to have my MS Access 2002 DataBase placed in my application folder and connect to it through an OLEDB connection. Everything worked fine.
Now I decided to create an ODBC DataSource and suddenly I'm not able to pass parameters to the SQL Query the way I used to with the OLEDB connection.
Here's a sample code of the SQL Query and C# code on my form:
FillByClienteDataNumero query:
SELECT Data, Cliente, Tipo, Número, Espécie, Lote, Análise, Preço
FROM qryALL1
WHERE (Cliente = ?) AND (Data >= ?) AND (Data <= ?) AND (Tipo = ?)
ORDER BY Data, Número
Form code:
private void btnSeekBA_Click(object sender, EventArgs e)
{
try
{
this.qryALL1TableAdapter.FillByClienteDataTipo(this.sascrDataSet.qryALL1, cbCliente.Text, new System.Nullable<system.datetime>(((System.DateTime)(System.Convert.ChangeType(DataIni.Text, typeof(System.DateTime))))), new System.Nullable<system.datetime>(((System.DateTime)(System.Convert.ChangeType(DataFin.Text, typeof(System.DateTime))))), "Boletim");
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
Any ideas why the above SQL query and code work with an OLEDB connection but not with an ODBC DataSource? Thanks a million!
JC.
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
Hi Guffa,
I get the following error message:
ERROR [HY104][Microsoft][Microsoft Access ODBC Driver]Invalid precision value
Thanks for your reply. Bye for now.
JC.
|
|
|
|
|
I need to write a .NET Windows Desktop app that interrogates the Windows Task Manager to see what processes are running. This is for a Internet Explorer based Kiosk. The app would check every few seconds to make sure that there is an instance of Internet Explorer running. This is in case that some user who comes to the kiosk terminates Internet Explorer. If Internet Explorer stops running the app would fire off a new instance of Internet Explorer.
How can I interrogate the Windows Task Manager in C#. Is there an API, or set of classes for that? Is there a better way to do this than what I am proposing?
Thanks!
Mark
|
|
|
|
|
You don't need to access Task Manager directly. Use the System.Diagnostics.Process class.
|
|
|
|
|
Ok heres what i'm trying to do:
I'm trying to make a class that will handle all the drawing of my sprites for my game i'm making. This class is dubbed "The SpriteEngine". What the sprite engine does is this: It holds everything that needs to be drawn in an Indexer and when the time comes to draw the stuff it draws each thing to a specific "Layer/Level/Surface" of the screen. There are multiple "Layers" to the screen. Once all the drawning to the layers is done it drawns all the "Layers" to a surface called "back" which is then flipped on to a surface called "front" which is displayed.
My problem is that i need to be able to make the each "Layers" dead space (or the space nothin was drawn on) invisible, so when i stack the layers on to the back surface you can see them all. I was attempting to do this with a ColorKey before, but i recently noticed i was drawning the "Layers" with a Draw cmd not a DrawFast cmd and i can't seem to find a Draw cmd Flag that will take into account a ColorKey?
If anyone has any better ideas on how to do this I would very much appreciate the input!
Note: I'm doing this layering thing so i won't always have to redraw the whole screen even though
only 1 thing changed
Thanks!
|
|
|
|
|
Hi,
I just wanted to get a general Idea about how to record sound with C#. I know you can record sound with DirectSound but as I see it, you can only record from the known Devices.
My problem is, that I want to record sound wich comes from other programs. These programs can be games or voice communication tools or simply everything that comes from your soundcard. It is even possible?
greets,
Alexander
-- modified at 20:05 Tuesday 7th March, 2006
|
|
|
|
|
Hello Alexander,
I donn't know why you want this but suggest you to visit here.
I hope it will fullfil your requirement.
Best of luck
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Hi!
If you select the stereo mixer output as recording device, you can record every sound that's being played, regardless of the application that produces the sound.
Check out the sound & multimedia control panel for a list of audio devices. The audio source used for recording can be selected from the recording volume control.
There are articles here on CP about recording sound via the WaveIn API and articles about the mixer interface. They should be very helpful.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Can call webservice before the form is unloaded(WebApplocation)? How to get the size of IE window?
|
|
|
|
|
I dl a project which contains 2 projects and Im able to run the application in Visual Studio Express but when I
attempt to view the Windows Form it prompts me a Warning.
Im not able to view or modify the form and all its goodies
because of this. The message Im getting claims
"The class Terminal can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again".
Can someone shed some light on this.
P.S. Im new to C# and Visual Studio.
Tks,
mangotj
|
|
|
|