|
Hi akkram
i think u can't directlly.
but you can create custom datagrid view from the base gridw view.
if you want to get sample source code from the Apress.com
thanks
|
|
|
|
|
Hi,
Ive written a small app which runs in the system tray and runs calls from a web service on a timer much like a windows service. I'm using C# Express so i had to write this as a windows application.
Everything is working great.
Only problem is that users are not allowed to exit this application.
Only way to kill the app is by killing the process in task manager.
Anyway if the user tries to shutdown his PC it just doesn't shutdown until the process of the app has been killed.
Anyone have a reason as why this is happening?
Thanks
|
|
|
|
|
what method you are calling to close your application?
try
Application.Exit()
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks for your response.
The thing is im not calling anything to close the app as the app needs to run all the time unless the pc shuts down.
So basically once the user shuts down the pc my app needs to somehow know that the pc is shutting down so it can exit itself.
But another question is why doesn't windows kill the process because its trying to shutdown?
Thanks
|
|
|
|
|
|
Thanks alot this looks exactly what im looking for.
Will put it to the test
|
|
|
|
|
Hallo...
Are there any possibilities to use PropertyGrid only as "View" ?
That means, the propertyGrid cannot be edited.
Thanks...
|
|
|
|
|
How about setting the Enabled property to false?
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
If I set enabled=false, I cannot expand the tree anymore.
|
|
|
|
|
After a bit of Googling, this article seems to mention something that sounds like what you want.
Here.[^]
Scroll down to "Using Attributes in PropertyGrid". I have never really used a PropertyGrid before so can't really help you much more than that.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
You can mark properties as readonly using the ReadOnlyAttribute.
|
|
|
|
|
Hello,
if a commercial product is an option for you, only Smart PropertyGrid will give you the flexibility of choosing a disabled mode for the PropertyGrid. By descending order of "disabled" importance:
1. It can be completely disabled (nothing is actionable, not even the scrollbar).
2. It can be completely disabled (nothing is actionable except the +/- signs and it is scrollable).
3. It can be disabled with the properties still selectable and scrollable.
4. It can minimally be disabled with the property values selectable so that you can copy their value.
The PropertyGrid doesn't handle a direct way to disable everything. You would have to set a hardcoded Readonly attribute on your properties or to publish dynamically a Readonly attribute for your properties with a TypeConverter or Type Descriptor... not very easy for a simple requirement...
Best regards,
Nicolas Cadilhac @ VisualHint
Smart PropertyGrid.Net
Microsoft PropertyGrid Resource List
Free PropertyGrid for MFC
Smart FieldPackEditor.Net / DateTimePicker
|
|
|
|
|
hello,
I am having a listView control with two columns. I want to insert some data first in column 0 and then in coulmn 1. The each column data is not related to other column(means not a subitem of any item).
How can i fill all related data to column 0 in first loop and then in Column 1 of a ListView control?
Also, I want to provide only column separator line in ListView, How to do it?
Thanks.
|
|
|
|
|
You can refer to columns of a listView just like an array:
myListView.Columns[0].Text = "This is the first Column";
Would set the column's header to the above text.
For further info about ListView's other properties, see this article.[^]
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Hello Friends,
I want to save text in a image format it may be JPG or BMP
I have three labels at form now what i want that whatever written of these three labels will save in a single image.
like
''''''''''''''''''''''''''''''''''
Hello-------Label1
Dikshant----Label2
Hi----------Label3
''''''''''''''''''''''''''''''''''
These three labels are in this form so please tell me how can i save these three labels data in a single image...
|
|
|
|
|
Use the DrawToBitmap method of the form to draw the form on a Bitmap object. You can then use the Save method of the Bitmap object to save it in the file format you like.
If you want less than the entire form, put the controls in a Panel , and use the DrawToBitmap method of the Panel .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello sir,
Thanks for Answering my Question....
As i am new in C#.NET can you please send me a sample code so i can easily understood..
Thanks in Advance
|
|
|
|
|
The code is basically:
using (Bitmap b = new Bitmap(form1.Width, form1.Height)) {
DrawToBitmap(b, new Rectangle(0, 0, form1.Width, form1.Height));
b.Save(fileName, ImageFormat.Png);
}
You can check the parameters to use in the documentation:
MSDN Library[^]
Tip: search for drawtobitmap method or bitmap class.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Create an instance of the bitmap class, and draw on it the text and then use Bitmap.Save
|
|
|
|
|
I have an application which use update application block 2.0 to update. Everything works fine on the staging server. But when i move my update package on to the production server. I got error : The requested URL does not exist on the server. when applying an update.
Below is the detail i cut from the error log:
Summary for :
======================================
--> MachineName: WAXIANGZ
--> TimeStamp: 2008-2-22 7:36:11
--> FullName: Microsoft.Practices.EnterpriseLibrary.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
--> AppDomainName: EMSWindowsClient.exe
--> WindowsIdentity: ASIAPACIFIC\waxiangz
Exception Information Details:
======================================
Exception Type: Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloadErrorException
Code: -2145844844
Context: 5
ContextDescription: The error occurred while the remote file was being processed.
Message: The requested URL does not exist on the server.
Protocol: http
LocalFileName: C:\Program Files\HPInvent\EMS\UAB\downloader\{215E1AD7-9ABA-432f-A952-24BABA556850}\5e4b3b14-30a5-47a5-bdcc-7a0fc173c3ac\updaterconfiguration.config1
RemoteFileName: http://g2w0293.austin.hp.com/EMSUpdateTest/config/updaterconfiguration.config1
TargetSite: Void LogAndThrowException(System.String, System.Exception)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Updater
StackTrace Information Details:
======================================
at Microsoft.ApplicationBlocks.Updater.Logger.LogAndThrowException(String message, Exception ex)
at Microsoft.ApplicationBlocks.Updater.Logger.LogAndThrowException(Exception ex)
at Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloader.OnJobError(UpdaterTask task, IBackgroundCopyJob pJob, IBackgroundCopyError pError, Exception ex)
at Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloader.WaitForDownload(UpdaterTask task, IBackgroundCopyJob backgroundCopyJob, TimeSpan maxWaitTime)
at Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloader.Download(UpdaterTask task, TimeSpan maxWaitTime)
Any one have ideas???
|
|
|
|
|
And sometimes got error: The job is not making headway. The server may be misconfigured. Background Intelligent Transfer Service (BITS) will try again later.
|
|
|
|
|
The error code under BitsDownloadErrorException code is 0x80190194 in hex. Windows error codes are defined in WinError.h (which you can find under vc\PlatformSDK\include under Visual Studio's install folder, if you installed the C++ tools). Error codes are grouped into 'facilities' to allow codes to be allocated independently. The 'facility' part is the second byte of four, here it's 0x19 = 25 decimal. Facility number 25, according to WinError.h is FACILITY_HTTP, so it's an error defined by the WinHttp APIs.
I can't find where this is actually used, but the last 16 bits are always the specific error. 0x194 hex = 404 decimal, which is of course the 'not found' HTTP status code.
Assuming that you've copied the files to the right location, I'd check that your web server is configured to send that type of file. IIS 6.0 only sends files that it knows the MIME type for, in contrast to earlier versions. The Updater Application Block 2.0 FAQ mentions this and how to fix the issue at http://msdn2.microsoft.com/en-us/library/ms978569.aspx#updaterfaq_deploytopic5[^].
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
|
Hi,
I want to make some simple OCR actions using C#.
All I want is a DLL. I'll give him an image, it will return a string.
Can you give me such dll please?
Thanks
|
|
|
|
|
OCR is not trivial. Atalasoft have a commercial library, I don't know of any others.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|