|
hi all,
i have a datagridview view with 4 columns. (2 int32 and 2 double fields)
at bottom i want to add a new row and type 'TOTAL' in 1th and 3rd columns.
(2nd and 4th columns will contain total values.)
but since 1st and 2rd columns are int32 type, i cant insert some string ('TOTAL') in them.
is there a way to do this ?
help please ...
-- modified at 6:36 Monday 5th June, 2006
|
|
|
|
|
try using footers... i didnt test the solution.
rsankarindia
|
|
|
|
|
I want to add a reference to a dll created by vb6 but it always raise the following error when i try to add it:
this is not a valid assembly or com component. only assemblies with extension 'dll' and com components can be referenced. please make sure of that the file is accessible, and that it is a valid assembly or com component.
can you help ?
-- modified at 6:28 Monday 5th June, 2006
|
|
|
|
|
You can only add references to .NET assemblies. If you want to add a reference, you need to either write a Managed C++ wrapper around the VB6 dll or make the VB6 DLL a COM component.
In case you didn't know, you can always use P/Invoke to call functions in DLLs without referencing them when compiling. If you are calling only a few functions in the DLL, I'd suggest you use P/Invoke, as it is much simpler, especially if the functions don't pass around any complex data structures.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I want to use only 4 methods from this DLL. I think it is better for me to use P/Invoke. but could you plz send an example for P/Invoke ?
|
|
|
|
|
This is a code sample copied from pinvoke.net[^] for the standard MessageBox Win32 API function.
class XYZ
{
...
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern uint MessageBox(IntPtr hWnd, String text, String caption, uint type);
}
You can then use MessageBox just like any other static function in that class (XYZ.MessageBox(...) )
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
How can add property in TextBox, i have create a class it inherits from the textbox class.
public class Status: TextBox
{
private string _status;
private int _id;
//
// costruttore
//
public void ChangeStatus(int id, string sStatus)
{
_id = id;
_status = sStatus;
}
//
// costruttore
//
public void ChangeStatus(string sStatus)
{
_status = sStatus;
}
public string sStatus
{
get
{
return _status;
}
set
{
_status = value;
}
}
}
pietro.zizzo@gmail.com
|
|
|
|
|
Well, you've added a property to Status yourself, what exactly are you trying to do?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I have a pratical example for my application. I'm at the first notion of C#.
Pietro Zizzo
pietro.zizzo@gmail.com
|
|
|
|
|
Hello All,
I am writing a console based application using C# in which I want to implement a feature which could extract OLE objects from Word documents and then save it in DWG file format. The OLE objects exist in Word documents are in the form of AutoCAD Drawing i.e. once I double clicked the Object; the system opens it in AutoCAD.
Currently I have accessed the OLE object through “Word.InlineShape” object by using Word Interop API but couldn’t find any way to save it in AutoCAD supported DWG file format. Does any one have any idea how can I obtain a DWG file through the OLE object?
Although I have extracted the OLE object in a BMP file by using “Selection.EnhMetaFileBits” property but the requirement is to be saved in DWG file format. I’ll be grateful if any one could help.
Thanks in advance!
-Shehzad
|
|
|
|
|
Good day all
I would like to access a file and change its contents. how do i go about doing this. Please help
Kulile --- RSA
|
|
|
|
|
u can try
TextReader rd = new StreamReader("complete path of file to read");
string str = rd.ReadLine();
rahul
|
|
|
|
|
Use the File.Open method with FileAccess.ReadWrite.
---
b { font-weight: normal; }
|
|
|
|
|
Hi!
I'm not sure how to set landscape format in chrystal report.do you know any free Chrystal Report manual? Cause in portret mode you can hardly fit info you want to display. Just didn't find a way to do it. Is there any better reporting service for .NET currently?
Thanx!
Ante
|
|
|
|
|
*shameless plug*
The best reporting engine for WinForms is ... see my sig
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
Thanx, I'm gonna try that. But if you know any manual for Chryistal Reports, please let me know. I already have few done projects that I only need to fix chry reports.
One more, thanx a lot!
Ante
|
|
|
|
|
Hi,
I want to display a cmyk image in a pictureBox, but this image is displayed with of bad colors.
How to display a cmyk image with the good colors?
Please help me.
GaZoLINE SPEED
|
|
|
|
|
Hi,
I am getting Cryptographic Exception while calling FlushFinalBlock method of CryptoStream after decrypting a buffer. Here is my code that decrypts the buffer....
DESCryptoServiceProvider des=new DESCryptoServiceProvider();
des.BlockSize=blockSize;
des.Key=kDESKey;
des.KeySize=64;
des.Padding=PaddingMode.PKCS7;
des.Mode=CipherMode.ECB;
ICryptoTransform cryptoTransform=des.CreateDecryptor();
MemoryStream mem=new MemoryStream();
CryptoStream cryptoStream=new CryptoStream
mem,cryptoTransform,CryptoStreamMode.Write);
byte[] outputBuffer=new byte[cipherTextBytes.Length];
cryptoStream.Write
(cipherTextBytes,0,cipherTextBytes.Length);
cryptoStream.FlushFinalBlock();
outputBuffer=mem.ToArray();
cryptoStream.Close();
mem.Close();
return removeLength(outputBuffer);
As soon as i call FlushFinalBlock it throws Cryptgraphic exception with message BadData. Please help me to solve this problem...
Wasif Ehsan.
|
|
|
|
|
Hi,
I want to detect different objects with in an image using C# sharp.Then i will pick req object only from the image after applying pattern matching. So plz gide me for that and also indicate some libaray if there in C# Sharp for objects finding
|
|
|
|
|
Hi,
To deploy an asp.net 2.0 site onto the live machine, should it have IIS as well as .net 2.0 framework?
Does this mean that I have to instal VS2005 on the LIVE machine first before deployment?
Basically what should be installed on the LIVE machine please?
Thanks
|
|
|
|
|
hi,
ofcourse you need iis,its not nessary to install VS2005. you can download net framework 2.0 redistributable and install in live machine.
if the live machine has autoupdate on for windows update,it will be there.
you can verify it in IIS properties.
good luck
Where there is a will,there is a way.
|
|
|
|
|
how to assing data to a DataTable. plz help me.
|
|
|
|
|
what do you want to do exactly ??
Tamimi - Code
|
|
|
|
|
want to put values in a datatable.
|
|
|
|
|
Use following syntax
DataTable.Rows[index].Columns[name/index]=value;
If you need more guidance, feel free to reply again
Wasif Ehsan
|
|
|
|