|
let me conform this. you want to dynamically create grid based on some values. am i right ?.
if not explain your problem little bit more
Sreejith S S Nair
|
|
|
|
|
Hi,
I will take the number as input from the user and display as many datagrids as the number is.They don't have any values for present.( Later he can select the values to be present in each datagrid.)
Karteek.
|
|
|
|
|
Instead of using different DataGrid s based on the input, use the DataGrid.TableStyles property to define different table styles with explicit DataGridColumnStyle s. That's what it's there for. See the documentation for the DataGrid.TableStyles property for more information and an example.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
The question isn't how do I split it into binary chunks which are unplayable but rather, "How do I split it into multiple playable .avi files?"
What I'm actually trying to accomplish is to cut a section out of an avi and have a shortened version which is playable.
I also need this process to be fast. The avi's are in RLE format and their audio is PCM (if that helps).
I also do not need 3rd party applications to do this it must be done within my app (even if I have to kluge a commandline to do it for me).
Also, importantly, I need to be able to tell it from what point to what point to cut out...though that seems obvious to me.
Thanks in advance for your help, you all are excellent!
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
|
|
Hehe, I searched for everything BUT AVI.
split avi
cut avi
edit avi
just not avi. I figured I'd just get a bunch of "how to show an avi on your form" type results '
Thanks!
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
Hmm, not that helpful to me. Though admitedly I am a sad little C# newb
HOWEVER, I used one of my valuable "Get the answer from a Microsoft dev" points and was given a C++ sample which does EVERYTHING and more that I need and quickly.
The code (and much more) can be found on MS MSDN Here.
You have to download about 130 or so meg of a huge file and then look search inside the file for "AVIedit."
I hope this is helpful to some of you. I have the extracted source which zipped is only 36k so email me if you would rather not download the massive file.
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
You mean an article that tells you what APIs to P/Invoke in order to split an AVI into frames when you want to split an AVI into frames isn't helpful? Hmm, interesting.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Can anyone tell me if there is a difference between "String" vs "string" in C#?
"string" comes up as a keyword in VS.NET.
"String" does not.
Just wondering.
Thanks.
|
|
|
|
|
They are identical (aliases). So are Object and object as well as Decimal and decimal and a few others.
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
|
hai there,
give a little idea about macros and development using VSIDE. Other wise mention any links which explaines VS macros.
Sreejith S S Nair
|
|
|
|
|
It's all in the VS.NET product documentation.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hi all.
In my program I need to convert a double number to string representation in fraction format and vise versa. For example, convert 0.75 to string "3/4" and convert string "1/2" to 0.5. The class will only need to handle numbers that increment by 1/32. That is 1/32, 2/32, 3/32.... 31/32, 1. If the double number is 0.28 which is between 1/4 and 9/32, the string should be 9/32(go with the bigger number).
TIA
|
|
|
|
|
See the example source code for my article, Custom String Formatting for .NET[^], which includes a Rational class (a pretty common implementation). That should do what you need and then some.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
Can i get the value of current source column that failed to transform to the destination column in an OnError Event of a DTS package? I want to insert this failed value to a table for data maintenance.
Thanks for the help.
|
|
|
|
|
|
Thx for your reply. Sorry for the lack of information. I'm using C# to build windows application to execute a dts package and i set an event handler for the OnError Event. So, when the error occurs i want to take the value of source field that failed to be transformed.
|
|
|
|
|
There is no information passed to the OnError event handler that would give you any such information. You should look at the documentation for the OnError event in the DTS Programming Reference either in the SQL Server docs or in MSDN Library[^].
My only other thought is to examine several of the string parameters to see if any additional error information is returned that you could parse, but judging by what the documentation says it seems unlikely.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Dear CPians,
I have been assigned to develop a Custom PropertyGrid with look and fill like the link below.
http://www.visualhint.com/feature5.php
In the PropertyGrid value cells, I am assigned to display the controls like NumericUpDown, RadioButtons, CheckBox, ListBox etc.I read several articles both in CP and MSDN and gathered the following informations. I request the CPians to comment on the below points(point 1 to point 3)
1.It is not possible to host a control in the value area of the PropertyGrid. It is however possible to draw the control in that area if we have the correct UITypeEditor.
2.The thumbnail of images can be displayed next to image data in the property grid. (Displaying control in the complete cell area is not possible[Actually I wanted to display NumericUPDown control in the cell])
3.There is no "official/documented" way to customize that error box. PropertyGrid component displays the error in its own dialog.
Information Required:
4.Considering the above facts, I wanted to go for some third party tool which gives the similar facilities and can be used as a control component in the project that is using C#.Net as development environment. But I did not get any. All the components are written using MFC unmanaged code. I want the component, written in mananaged environment, so that I can use it in C#.net development environment with ease. I request the CPians to share the information in this regard, if you know any such components.
Thanks in advance.
Regards,
Jay.
|
|
|
|
|
A UITypeEditor won't allow you to place controls in the value region of the PropertyGrid in the .NET FCL, but it can display a popup window (like for the Control.Dock property) using the IWindowsFormsEditorService .
The important thing is to read the .NET Framework SDK for the System.ComponentModel namespace, and remember that it doesn't matter what language you write this in. All languages targeting the CLR compile to IL, so you can write this in C# and use it for VB.NET, Perl.NET, and many others.
For example, to get the collection of properties, you'd call TypeDescriptor.GetProperties . This even allows you to filter the properties with an array of attributes. You could, for example, pass an instance of the BrowsableAttribute(false) as one of the elements in the Attribute[] array so that non-browsable properties are not displayed (default behavior).
The .NET component model provides pretty much all the services you need. You should also implement certain services like the IWindowsFormsEditorService and other services that support UITypeEditor s.
You should also examine how the System.Windows.Forms.PropertyGrid currently works either by using ildasm.exe (the IL Disassembler, part of the .NET Framework SDK, if you know how to read IL), or a decent decompiler like .NET Reflector[^].
You might also consider comprimising on a few things, like being able to host a control inside the PropertyGrid itself. Once you dig into the managed implementation for the PropertyGrid , you'll find it's not so easy doing the correct way (using the component model, which is still the easiest way).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi Heath,
Rather than going for managed implementation for the PropertyGrid, I think I should compromise the following :
1.Hosting the control inside the PropertyGird value cell.
2.Customizing the error dialog box of the PropertyGrid Control.
I will put forward this to our management, since our main focus is not of component development.
Thanks once again for your valuable suggestion.
Best Regards,
Jay.
|
|
|
|
|
I have done something like this, but I tackled it from the other side.
I basically recreated the PropertyGrid's behaviour in my own control, and let the editors/convertors do there work.
|
|
|
|
|
How to create a process bar like this:
<br />
+------------------------------------------+<br />
| Processing....... |<br />
|------------------------------------------|<br />
| |<br />
| Please wait...... |<br />
| +-----------------------------------+ |<br />
| | | | | | | | | | | | |<br />
| +-----------------------------------+ |<br />
| 50 % |<br />
| 10 Second Remaining |<br />
+------------------------------------------+<br />
Thanks.
Rock Throught The Night
|
|
|
|