hi there, i developed a complex windows form application which contains a lot of controls (textbox, combobox). I use following code, when i've to change their text properties: this.mytextbox.text = "smth"; considering that i've more than 50 textboxes and comboboxes, i'd like to know if there is another way to write down more efficient and structured code. I was thinking about using a pattern (i remember to have read in codeproject something like that, but i still haven't found the article). best regards.
cbiacca
Posts
-
Change Controls property: pattern? -
exctract avi informationuhm, maybe it wasn't specified...I don't want to play a divx or an avi file, I just want to save some information about it (like lenght, width, codec) ... What do u mean in the sentence: You need to map the FourCC code (the vids divx bit) ??? thx
-
exctract avi propertiesHi, I wrote down a post some weeks ago but I can't find it so I'm sorry of having opened another one. Also, I'm sorry to have duplicated the post in the section managed c++, but after having clicked on 'submit' I noticed that there was a section visual c++ (which fits better whit my question).The problem is that I'm trying to exctrat some information (like codec name, lenght, width, ecc. ecc.) from an avi files. Actually I can do everything but the codec information. After having read from www.fourcc.org and some from msdn.com (http://msdn.microsoft.com/library/default.asp?url=/library/EN-US/multimed/mmstr\_1xf6.asp) , I've understood that I have to use vfw32.h library. I can exctrat only the information that an avi's codec is: Stream Info: Type Codec vids divx How can I match the information divx to the exact versione?? Moreover, How can i distinguish from divx an xvid?? Do I have to create a structure with all the existent codec inside?? Well, it's all ... I wanna thank you everyone is going to answer me. Francesco ps: If u want some more informations, please just ask me :D
-
exctract avi informationHi, I wrote down a post some weeks ago but I can't find it so I'm sorry of having opened another one. The problem is that I'm trying to exctrat some information (like codec name, lenght, width, ecc. ecc.) from an avi files. Actually I can do everything but the codec information. After having read from www.fourcc.org and some from msdn.com (http://msdn.microsoft.com/library/default.asp?url=/library/EN-US/multimed/mmstr\_1xf6.asp) , I've understood that I have to use vfw32.h library. I can exctrat only the information that an avi's codec is: Stream Info: Type Codec vids divx How can I match the information divx to the exact versione?? Moreover, How can i distinguish from divx an xvid?? Do I have to create a structure with all the existent codec inside?? Well, it's all :( ... I wanna thank you everyone is going to answer me. Francesco
-
Case ModWhat a ... I can't find an adjective ... It's great!!!! ... I'm shocked :D
-
avi codec informationuhm, so after having understood that an avi can be compressed (:P) ... in the end I've not understood how to extrac codec information from .avi files ... is it possibile using that structure?
-
avi codec informationHi, after having browsed a lot of sites and read a lot of msdn, now I have still my problem. I'm trying to read codec name from an avi file. I'm using this structure: typedef struct { DWORD dwMaxBytesPerSec; DWORD dwFlags; DWORD dwCaps; DWORD dwStreams; DWORD dwSuggestedBufferSize; DWORD dwWidth; DWORD dwHeight; DWORD dwScale; DWORD dwRate; DWORD dwLength; DWORD dwEditCount; char szFileType[64]; } AVIFILEINFO; which I have done by reading http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmstr\_1xf6.asp .... How can I exctract the codec name used to encode the avi file?
-
EnvDTE + visual studio .net addinHi, uhm I really don't know if this is the right place where to ask for, but I'm gonna try... After having rebuilt the solution, it told me this error: path\to\x.vdproj This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup. I tried to do as there is written, but (and I could say obviously) It says that the framework is already installed on my machine ... What does exactly that error mean ?? Moreover, I noticed that there are error like these: - Could not copy temporary files to the output directory. - The file 'CopyrightAddIn.dll' cannot be copied to the run directory. This file is used by another process - The file 'CopyrightAddIn.pdb' cannot be copied to the run directory. This file is used by another process The problem is that It's the first time I use this system and in the tutorial I'm following the problem is not reported. Thanks, Francesco Biacca
-
EnvDTE + visual studio .net addinFirst I wanna thank you to have answered me ... The reason I'm trying to develop an addin was that visual studio .net doesn't allow to highlight the braces. I'm used to develop in java where all RAD have this feature. Anyway I had already used the wizard to get started to develop ing this addin so I had all the reference I need (I hope so :P). Because I haven't a clear idea about how it really works, I thought I had to select the tab on what the addin should works, so I used the code: EnvDTE.Window thisWindow = x.open(...); Now that you gave me the documentantion's link, I'm gonna try to understand a little bit more. In the end, regard to the questione "where is the namespace EnvDTE", now I understood not to have been clear. I meant where it is in the documentation. Actually I'd like to know what classes it includes, but I can't find it ... i.e.: I mean, is it under System. ? I know by the code which was created by the wizard that I have to use EnvDTE so I supposed it is an apart namespace but I can't really find it ... Maybe, because of my bad english, I can't explain my question very well, if so don't worry I'm gonna work using tips you gave me ... Thanks
-
EnvDTE + visual studio .net addinHi, I'm new of this site/forum so first of all I wanna say hello to everyone. Then, I'm trying to develop an addin for visual studio .net but I'm having some problems due to my inexperience in c#. What does it mean when I write: EnvDTE.Window thisWindow = x.open(...); Does it mean that I'm considering the current tab (the tab the user is working on) or does it mean that it's going to create a new tab under visual studio project ?? I'd like to code something similart to the first solution... Then I have some problems also to browse the documentation: where is the namespace EnvDTE?? I can't find it ... thanks