vkan's Q&A profile
Visual Basic How can I get the Track Number of a file?
In the Windows Explorer, i.e. the file display not the Web browser, there is an option to display "Track Number" Apparently, if a CD is ripped to MP3 files, the ripping program sets this track number attribute. Can someone tell me how to access the "Track Number" of a file There are other attributes like creation time, modification time, that can be accessed using something like filesystem.getfilesystem info... Hi, It is probably referring to the cd track number so if a cd has ten tracks or tunes or songs then the track number is put into the MP3 tags and the fileName like track7.mp3 See the 6million+ results here if you need a MP3 tag editor.>> http://www.google.co. ...Show All
Visual C# print contents of multicolumn listview box - arghh!
I have a multicolumn listview box. I have looked all around for some basic instructions on how to print its contents and remained baffled. I would appreciate a the simplest example or url to simple example on how to do this. Should I print the listview box to a text file, then use stream reader appreciate your help! david Hey David, I just had a similar problem, and I was able to print the contents of a listView by using this example: http://www.codeproject.com/cs/miscctrl/PrintableListView.asp The irritating thing with printing listViews is with Cell Wrapping since the List View does not allow multiple lines or text wrapping. To get around this cell wrapping problem, just insert &q ...Show All
.NET Development Microsoft Oracle .NET Data Provider Performance - repeated internal SQL
Hi, We are noticing several similar SQLs (listed below) which execute many thousands of times per day. The SQL in question does not access any application tables, it accesses the Oracle data dictionary to retrieve metadata, which is essentially static in this context. On one particular day the SQL is issued some 24,024 times, performing 401 million block accesses and consuming 2,080 seconds of CPU. Our concern is that as our transaction rate increases that this SQL may become a performance bottleneck. I'm wondering if there are any configuration settings within ODP or application coding guidelines which may allow the SQLs to be issued once and the results held locally for re-use I have read about connection pooling and statement caching. ...Show All
Audio and Video Development Mixing rate sink and rateless sink on a tee node
I modified the WavSinkSample and inserted a tee node so I could also add an Audio Renderer output node. When I do this, the topology starts playing just fine. But it ends as soon as the WavSink finishes writing the wave file. Is this the intended behavior I would have expected the topology to stop when all output nodes are done processing samples. I tried a bunch of workarounds: - Changing the order in which I connect the nodes. - Set MF_TOPONODE_RATELESS to 0 on the WavSink output node. - Set MF_TOPONODE_PRIMARYOUTPUT to 0 (index of the audio renderer) on the tee node. - Set MF_TOPONODE_DISCARDABLE on the tee node for all secondary node. But none of these worked. Is there any ways to accomplish when I want or is this a bug Also, I tri ...Show All
.NET Development System.Net.Mail and Threading
I am attempting to start a new thread using the QueueUserWorkItem and send a large number of emails. I have been unable to get past even creating a MailMessage, much less sending the email. It is returning a "Thread was being aborted" error on the new MailMessage line. Why Here is the code: public static void SendNotifications( int incidentId) { ThreadPool .QueueUserWorkItem(SendNotifications, incidentId); } private static void SendNotificationsAsync( int incidentId) { try { MailMessage message = new MailMessage ( "from" , "to" , "Notification Test" , "this is a test" ); SmtpClient client = new SmtpClient ( "127.0.0.1 ...Show All
Visual Studio Team System Feature Request - Schema Compare
One nice feature would be "Next Difference" and "Previous Difference" buttons (and associated hotkeys) to quickly jump through differences. This is a pretty common feature in File Comparison utilities (such as ExamDiff). This would be extremely helpful when you are comparing extremely long stored procedures, objects, etc. We currently have an option of filtering the objects based on various options, available through the Main menu or through tool bar icon (Very left), through which you may be able to filter out the undesired rows. Thanks Sachin Kumar ...Show All
Silverlight (formerly WPF/E) Please add the ability of image repeat to the Stretch
Like the same as CSS's background:(.......) repeat, Thanks You can fake tiling by creating bunch of adjusted rectangles and filling them with same image. It isn't pretty but it should work now. I do hope WPF/e team will address this issue in the future. The point of ImageBrush is to make tiled image fills. ...Show All
.NET Development GMT-8 to GMT+0 (UK) with consideration for british summer time?
I'm using a server where it's time is GMT-8. Im using DateTime so how do i convert it to GMT+0 taking into consideration British summer time as im based inthe UK. Thanks for your time. Paul. ahmedilyas wrote: D'oh! Such a tease :-) Maybe in .NET 3.0 (unlikely but would be a nice addition) I think what's she's been discussing is for the Orcas timeframe. Considering the first release candidate for .NET 3.0 was released the 1-Sep-06 , it's very unlikely you'll see any of what Kathy is discussing in .NET 3.0 ...Show All
.NET Development getting child node info
If I have an Xml document like below, how do I get to get the innertext of 'name' and 'length' of each column using a xml node reader <Items> <item name = "item1"> <delimitor>*</delimitor> <column> <name>One</name> <detail>25</detail> </column> <column> <name>Two</name> <length>30</length> </column> <description>two elements</description> </client> </Items> One problem is that your example XML is not well-formed as there is no end tag </item> for the start tag <item> and as there is a end tag </client> without a matching start tag. As ...Show All
Visual Studio Express Editions trivial question : passing data between application forms ?
i am using this approach to pass data and variables between application forms ----------------------------------------------------------- form2 class public Form2( string strTextBox) { InitializeComponent(); string strPass = strTextBox; } form1's button click event handler private void button1_Click( object sender, System.EventArgs e) { Form2 frm= new Form2(textBox1.Text); frm.Show(); } ------------------------------------------- In form2 how to make the variable strPass visible by other methods and fucntions in this form so i can use it i tried to use "public" keyword as i know but it produces an err ...Show All
Visual Studio Tools for Office Can I drag item from actionpane to excel?
Hi, In my excel, I add a actionpane. In the actionpane I put a treeview. Now I want to know can I put a item of treeview to excel Only to put the item's text to excel. Thank you. Jeffers Hello, Yes, you can enable users to drag and drop text from the actions pane to a cell in a worksheet, including text that is displayed in TreeView nodes. Please see other threads in this forum about dragging and dropping between document surfaces and the actions pane, such as http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=22227&SiteID=1 . I modified Ken's code from the above post to work with a TreeView in the actions pane. The following code (from the actions pane class) assumes that the actions ...Show All
Visual Studio Express Editions Error: Please assist if you can.
Ok I wanted this single window to open Here is the code: #include <windows.h> // GLOBAL VARIABLES HINSTANCE ic_hInst = NULL; HWND ic_hWnd = NULL; // FORWARD DECLARATIONS HRESULT InitWindow( HINSTANCE hInstance, int nCmdShow ); LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM ); // ENTRY-POINT int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow ) { if( FAILED( InitWindow( hInstance, nCmdShow ) ) ) return 0; MSG Msg = {0}; while( GetMessage( &Msg, NULL, 0, 0 ) ) { TranslateMessage( &Msg ); DispatchMessage( &Msg ); } return (int)Msg.wParam; } // REGISTER WINDOW CLASS AND CREATE HRESULT InitWindow( HINSTANCE hInstance, int nCmdShow ) { ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Anyone need music/sound design?
Hi! I'm an experienced musician/audio engineer and avid gamer looking for some projects to help build a portfolio. I'm especially interested in composing context sensitive music with some basic interactivity. I also have a fair bit of programming and scripting experience and knowledge of modern game engines. I specialize in Rock, Electronic, Rap, and Orchestral. Here are a few examples: Orchestral: http://thirdcoil.com/music/wasted_potential.mp3 Orchestral/Action: http://thirdcoil.com/music/biohazard.mp3 Rock/Electronic: http://thirdcoil.com/music/politic.mp3 Electronic/Dark: http://thirdcoil.com/music/avail.mp3 If anyone has a project they think I'd be well suited for, let me know. I'm just looking to get some experience. Thanks! - Joel D ...Show All
Visual C# COM interop with C# plug-in.
Hi all, I’m developing a program using C# as a scripting language. I successfully created a COM visible scripting server that compiles cs files into assemblies and allows the application to create instances of the objects in the compiled assemblies. The part of the system which I don’t like and would like to improve is the way each of the script objects gets the interface exposed by the program. Right now I have to pass an interface to the programs main entry point defined in the script interface. This works fine but I would rather allow the scripts them selves to create the interface. The main reason for this is that I would like the program to expose more than one interface and I would like each script to a ...Show All
Windows Forms PropertyGrid & TypeConverter
I have a PropertyGrid and a list of person in my application. When the user clicks on a person from the list, the properties from that object populate in the PropertyGrid. I got a variable in this object that is CarOwned, which is a Car object. I want the PropertyGrid to show a ComboBox so that the user can specify a car from a list (CarCollection). This list will never be the same, depending of the person. I know I have to derive from TypeConverter, but I’m having problem passing a CarCollection to be populated in the ComboBox. I think I need to convert it to a string array and convert it back again to a Car object. I have propertygrid and I want combo in m pg. combo's datasource is few key/value pairs...1,"one" 2,&q ...Show All
