|
Hello,
There are a few articles on CP about in-place editing of ListViews and DataGrids.
This one[^]is a very good example and is easy to use. You can use any control that you want to edit a subitem of you grid or list view.
Hope this helps!
Hugo Migneron
|
|
|
|
|
I am calling an application DLL with webservices in the interface the InterNet Explorer and when use the following instruction for call of an item of the menu:
Form _ Form = new Forms.frmcadInspeto();
_ Form.Show();
This opens the Form Window normally in explorer, but why I do not obtain to sail with keyboard key TAB in the Textbox controls, Combox, etc, being that to use the following expression the navigation of the TAB occurs:
_ Form.ShowDialog();
It will be that it has a BuG with the method show for interface the explorer?
|
|
|
|
|
I have an array of picture box (the pictures box are in a windows form).
I push on a picture box, an my application make something in relation the picture pressed. My problem is this:
how can I know, which picture has been pressed?
I tried this way:
this function need when some picture has been pressed.
private void MyImage()
{
for (int j=0; j
|
|
|
|
|
How do you get notice that one of your PictureBoxes was pressed?
If you subscribed an event handler to the Click event of all PictureBoxes, simply cast the received sender object to an instance of type PictureBox.
www.troschuetz.de
|
|
|
|
|
if you are dynamically changing content of your pictureBoxes and want to know what picture was on clicked pictureBox - take a look on Tag property of pictureBox. I'm using it in same cases.
Robin Panther
|
|
|
|
|
Is there any way to grab all messages of windows, child windows and non windows in an application before they are actually processed....
|
|
|
|
|
I forgot to add...in one place so that I can filter them.
|
|
|
|
|
Create a class which implements the IMessageFilter interface. Add an instance of that class to the Application by calling Application.AddMessageFilter .
If you're using .NET Compact Framework, this method is not available. OpenNETCF's Smart Device Framework[^] has an ApplicationEx class to replace Application , which does have this feature.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I did exactly that. it works fine for the main application form but when ever there is a model dialog popup the filter does not work on that window.....any idea why
|
|
|
|
|
Hello,
I am trying to copy the contents of the output of SQL Reporting Services to
a PowerPoint slide. For this, I am using SQL Reporting Services to obtain an
IMAGE stream, which I paste to the Windows clipboard. Then, using automation,
I am trying to copy this information from the clipboard to a PowerPoint
slide. However, I get an error at slide.Shapes.PasteSpecial.
I am able create a System.Drawing.Bitmap object from the memory stream that
I associate with the image stream. I can also copy an image fragment that I
clipped in MSPaint (which means it's on the clipboard) to PowerPoint using
Automation. And if I generate a CSV stream from Reporting Services, I can
copy this to the clipboard and from there to Excel. It's only that I don't
seem to be able to copy anything from the clipboard to PowerPoint if I pasted
it to the clipboard using the MemoryStream. Also, using the following code, I find that the clipped data from MSPaint supports 4 formats ("Embed Source", "Object Descriptor" , "MetaFilePict", and "DeviceIndependentBitmap") but the data I copy from the MemoryStream has only 2 ("System.Drawing.Bitmap" and "Bitmap").
// Code to check formats for clipboad data
IDataObject data = Clipboard.GetDataObject();
String[] arrayOfFormats = data.GetFormats(true);
Does anyone have any pointers?
Thanks,
Ajay.
ERROR
*****
An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in WindowsApplication2.exe
Additional information: Shapes (unknown member) : Invalid request.
Clipboard is empty or contains data which may not be pasted here.
CODE
****
// Obtain an image stream in "results", which is Byte[]
MemoryStream MemStream = new MemoryStream(results);
DataObject d = new DataObject();
d.SetData(DataFormats.Bitmap, true, MemStream);
Clipboard.SetDataObject(d, true);
PowerPoint.Presentation ppt;
PowerPoint.Application pptApp;
PowerPoint.Slide slide;
pptApp = new PowerPoint.Application();
ppt = pptApp.Presentations.Add(MsoTriState.msoTriStateMixed);
slide = ppt.Slides.Add(1, PowerPoint.PpSlideLayout.ppLayoutBlank);
slide.Shapes.PasteSpecial(PowerPoint.PpPasteDataType.ppPasteDefault,MsoTriState.msoFalse,"",0,"",MsoTriState.msoFalse);
ppt.SaveAs("D:\\Ata\\test.ppt",
PowerPoint.PpSaveAsFileType.ppSaveAsPresentation, MsoTriState.msoTrue);
|
|
|
|
|
How can I know that thread was ended.
With Win32 I can call WaitForSingleObject on the thread's handle.
But is it done in C#.
Thanks,
Gal
|
|
|
|
|
Take a look at the IsAlive and ThreadState properties and Join method of the Thread class.
www.troschuetz.de
|
|
|
|
|
Nice, Join(..) seems to be the replacement to WaitForSingleObject(..).
But what if I have to wait for multiple threads? What is the replacement for WaitForMultipleObject(..)?
|
|
|
|
|
Have a look at System.Threading.ManualResetEvent
That might help you out.
|
|
|
|
|
Hi !
Is it possible to run the application server of a 3 tier application local or not with using remoting ?
I am thinking of an application which has the option to run the businessrules local from a service or from the application server somewhere else. there should be just a switch in the config to switch from local app server to the app server in the lan/internet. something i have seen on navision axapta. there you can switch from thin to rich client. is this a stupid idea ? how would the local service look like ? local iis ? is it possible ? would be very thankful for any links or examples, suggestions.
thanks thomas
i'am from austria sorry for my english
|
|
|
|
|
Is there a way to integrate a flash object in c#?
For ex I want to make a button in Flash and after that put it on a c# form and when click it to make something?
|
|
|
|
|
|
Hi
I working out some class where contained methods which use
interfaces as parameters.All compiled and working fine, but when i make reverce engenering through Visio UML, i get an error for this methods:
UMLE00046: vcCodeElement[Parameter] : [Parameter - WFR1] - An interface cannot be used as the type of a parameter.
Why it so???
Maybe i ask question not in proper place, but here hadn't UML forum, cause if somebody know forums for Visio UML please give me a link.
Thank.
|
|
|
|
|
Hi!
Using interfaces as parameter types is perfectly OK, don't let Visio fool you.
Although I can't tell you if or how Visio can be configured to allow for this constellation at least I can assure you that it's Visio's fault if it can't be modelled there and the error is unjustified.
Regards,
Mav
|
|
|
|
|
Converting a string displayed in one language to other language
-----------------------------------------------------------------
Whatever string which I provide in one language should be converted and displayed in other language which I specify.
I am aware of System.globalization and System.Resources and the classes
CultureInfo[CurrentCulture and CurrentUIculture] and ResourceManager. I was able to display the dateformats etc as per the change in culture, but I couldn't convert a string in one language to another. In net also I couldn't find any application which do the convertion of string.
I would like to have the source code for current requirement which I have mentioned. If you can do this thing without using satellite assemblies then it would have been helpful.
|
|
|
|
|
er? are u saying that NET will interpret ur string in language A to a string in language B? There is no such class that can do that, and as a matter of fact there is probably no commercial software that can actually do that without numerous errors.
What u can do is localize ur application in as many languages as u want, but you will have to specify all the strings in the different languages yourself, and the app will display the correct language based on the current culture info the app is running in.
Check out info about Localizing in MSDSN:
Localizing Applications[^]
|
|
|
|
|
Hi,
I have a very strange problem here.
I created an application (Windows Form) that use MS SQL for its database, and inside the application, I used crystal report to create a report.
I install the application to one of the computer on the network.
The computer uses Windows 98, and the application and the report runs okay.
And then I install the same application again to another computer running Windows 98.
But this time, when I open the report, the application runs in error.
Other than the report, the application runs okay.
My question is, why with the same application and same windows 98, one is working and the other don't?
Please someone kindly give any help or hint.
Thank you very much in advance.
GABOYZ
|
|
|
|
|
How apply own DataGridColumnStyle to DataGrid of binding with relation table?
|
|
|
|
|
Can anyone tell me how to compress the audio in an AVI file from PCM to MP3. Do I have to convert the PCM to MP3 first and then compress it? I've been trying to figure this out for about a month, with no luck. I'm trying to write a video editor that cuts commercials from captured TV programs in C#, with the help of AVIFile. Any help or code in C++ or C# will be appreciated.
|
|
|
|
|
hi gurus,
When I press "Del" button in a TextBOx Cell within a DataGrid, the whole row of the Data Table is deleted. I am sure I have not add "KeyPress" event to the Grid, does any one know what causes the problem?
Thanks in advance.
PS:
I'm using a third-Party Grid Control: GridDataBoundGrid control (from Essential Grid). However,
I believe this has nothing to do with my problems.
Rebecca
MSN: dobra@sohu.com
|
|
|
|