|
.NET Framework from Microsoft can only be used in Windows.
If you want to used .NET Framework in Linux, then
you must go to Mono Project.
|
|
|
|
|
Mahmood Ilyas wrote: is Microsoft.Net is Plateform independent
It was designed to be platform independent, but Microsoft only provides a runtime for Windows. Look at Mono or Portable.NET for for alternative platforms.
|
|
|
|
|
I have a textbox on a toolstrip that is being displayed on my windows taskbar as a band object (essentially http://www.codeproject.com/csharp/BandObjects20.asp).
I have installed a global keyboard hook, and can respond to key events.
Is it possible to globally shift the focus to my textbox in response to a key event? Can anyone point me to any information, preferably c# but any code is fine, regarding this?
Using FindForm() returns null, so I can't call Activate() on it, and calling Focus() on the band object does not do anything. Calling Focus() on my textbox does indeed change the focus within the band object, but my input is still sent to the active window.
Cheers,
Xavier
|
|
|
|
|
Hi guys,
I've got a pictureBox in my program and need to get the path of the image it holds. I know I can get the Image with myPictureBox.Image but I cannot get the address of this image. I tried to save the address string to this image's propertyItem[].Value but cannot convert from string to byte[]...
Is there any idea how I can get any Image's address(path) string ?
.:: Something is Wrong ::.
|
|
|
|
|
hi
put the path of the image after load in the tag property of the picturebox.
i.e. myPictureBox.Tag = "path of the image";
|
|
|
|
|
it works, thx a lot ..
everyday I learn some nice trick from here thx guys..
.:: Something is Wrong ::.
|
|
|
|
|
Hi,
how to wrap a COM object so it can be used in .NET. I have to interface the .NET appln with hardware using Sax Comm. Tool.Do you have any idea. Please share it with me..
|
|
|
|
|
Have you looked into Microsoft's COM Interop? It's designed to allow two way interoperability between COM and .NET.
|
|
|
|
|
Read about the tlbimp[^] tool. It generates a wrapper around the COM object, that is callable from any .NET language.
|
|
|
|
|
Hi!
I hv to fix the image button & label box into the Datagrid.,
In that imgbtn & lblbox i hv to display dynamic values retrieves frm
DB., I am using c# coding how can we do this one..?
T.Prabu
|
|
|
|
|
Hi,
ASP.NET Datagrid has an event known as ItemDataBound event. Basically this event will get fired when each row is binding to the datagrid.
So for displaying the image button and label, you can itemtemplate of the datagrid and for databinding to these controls, you can use ItemDataBound event
The syntax of ItemDataBound event is given below
private void YourDataGridName_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
//Here you should get the dynamic data from Database/file system etc. and bind to the controls
}
--Rakheesh
|
|
|
|
|
Hi all,
we have a singleton class which has some functions used to do testing a harware.
Our main Exe will create an object for that singleton class(which opens Com1 port and communicate with hardware). so the Exe will do communication test with hardware it is working well. We are using one testing tool (teststand)(a COM EXE)to do various testing with hardware, Testing tool provided some class libraries to execute test profiles . Main exe will use these libraries to execute tests when the user clicks Testbutton. after that testing tool(teststand) try to create an object for that singleton but it returns new object not the existing one which is created by EXE. So it throwing me exeception "Com1 port access denied." (since we created object for signleton class @ very first in EXE)
My question is Since that testing tool runs in a separate Appdoamin will the singlton class create separate object for different appdomain? if so is there any solution to reslove this?
Hope i clearly explained my probs.
Thanks in advance
Srini
|
|
|
|
|
The library is loaded separately for each application, so you can't share a singleton between applications.
---
b { font-weight: normal; }
|
|
|
|
|
I need convert byte[] to system.Drawing.Image
This code Download Image from URI , i need put image in pictureBox after Downloaded .
WebDownload webDL = new WebDownload();
byte[] downloadedData = webDL.Download(DownloadUrl, ProgressCallback );
CompleteCallback( downloadedData );
ImageDisplay ds = new ImageDisplay();
ds.pictureBox1.Image = (Image)downloadedData;
help me ...
-- modified at 2:00 Wednesday 9th August, 2006
|
|
|
|
|
How about this:
byte[] data = new byte[5] {1, 2, 3, 4, 5};
MemoryStream memoryStream = new MemoryStream(data);
Image img = Image.FromStream(memoryStream);
|
|
|
|
|
thank you Man , I love you
|
|
|
|
|
hi all ,
there are 4 field (name , family name , ave , stNumber )in my table . for this , in my form(form1) I've 4 CheckBox Control . I want to take a report whenever the user select one or two or ... of them . for example , if the user checked CheckBox1(for the name field ) and CheckBox2(for the family field) , In outpout report show , name and family . how can i dot with crystal report ?
plz help me .
s_mostafa_h
|
|
|
|
|
my table?
if you user datagrid,maybe it's easy to do
|
|
|
|
|
can you more explain or give a sample or ...
regards,
|
|
|
|
|
rainfeet: if you user datagrid,maybe it's easy to do
How ?
-- modified at 8:06 Wednesday 9th August, 2006
s_mostafa_h
|
|
|
|
|
Hi all,
I had SQL Server 2005 EXPRESS installed in my Computer (WIN XP) and I have just got SQL SERVER 2005 Enterprize edition. Now, I wanted to install SQL ENTERPRIZE but I got message that, a SQL Server instance is running so .etc.. and failed. So My point is, I want to develop Windows application using SQL Server Express 2005 so that it is easy to ship and free to distribute. But I want to have SQL Server Enterprize for Web Development purpose and other reasearch work. Is it not possible to keep both of them at the same time ?
AND .. CAN I USE SQLEXPRESS WITH VISUAL STUDIO 2005 PROFESSIONAL ?
Thanks
EMRAN
-- modified at 23:34 Tuesday 8th August, 2006
|
|
|
|
|
Hello
emran834 wrote: Is it not possible to keep both of them at the same time ?
As far as I know it's possible. You can install multiple SQL servers on a single machine using different instance names. Maye you should post the whole error message. And of course I don't think I have to remind you that you should close Visual studio and/or any other program using SQL server.
emran834 wrote: CAN I USE SQLEXPRESS WITH VISUAL STUDIO 2005 PROFESSIONAL ?
Sure!! Why not?? I do it all the time
Regards
|
|
|
|
|
how to retrieve motherboard serial number of own machine?
|
|
|
|
|
That depends on if the manufacturer provided WMI classes to supply this information. Most don't. On top of that, the information has to be provided by the motherboard. Again, most don't provide this.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello
Retrieving such information can not be done using C# usually. You'll have to either use interrupts - eg. INT21H- or access BIOS directly. Both of which requires good knowledge of assembly language, and a hardware background. Also if it's possible in one motherboard, it could be not in another, ie. it's a hardware specific procedure with quite some variations.
Regards
|
|
|
|