exulted's Q&A profile
Visual Basic .Net2003: "Opening media..." message with AXWindowsMediaPlayer, doesn't open
Hi. I would appreciate any help. Imagine an AxWindowsMediaPlayer control on a VB.NET form along with a list box that contains URLs of sound files on the local machine. When bntPlay1 is pressed the player will grab the first item in the list box and play it, or if it's already playing, it will grab the next one in the list and stat playing that one instead. That part works fine. My issue is that I want it to automatically grab the next file from the list box when the current one is completed. It does correctly put the next item into the URL, but it just says "Opening media..." and never actually opens the media. Again, if I click btnPlay1, the media does open correctly. I have included some of the commented cod ...Show All
Visual C# static class/method not recognized within namespace
From what I've read, C#'s static modifier should work just like Java. So, I created a utilities class which has a public static method to do some things. The utilities class is declared within the same namespace as my form class (just in a separate file), but if I attempt to access the method in the utilities class from the form class, the compiler complains that the name of the utility method or the class (if I attempt to use the FQN of the method) does not exist in the current context. If I attempt to add a "using MyNamespace.Utilities" statement at the top (which I fully expect to be redundant) the compiler also complains that the "Utilities" type or name does not exist in "MyNamespace". Any suggestions are most welcome! According to wr ...Show All
Visual Studio 2008 (Pre-release) Add the Workflow InstanceID as SOAP Header to outgoing SOAP Messages
I am using WCF for Web Services Invocation and WF for Services composition. Could you please advice what are possible/best ways to add the Workflow InstanceID as SOAP Header to outgoing SOAP Messages Basically I need to be able to easily correlate an incoming SOAP message with a particular WF instance. A monitoring component will be watching incoming messages and it might need to do some dynamic update to the destination WF instance. Any advice how best to achieve this is appreciate I want to achieve this as transparent as possible and hopefully through configuration. Thanks Karim Thanks Madhu, But how do I pass parameters (i.e., WF InstanceID) to Message inspector My understanding is that Mes ...Show All
.NET Development Global data concurrent access ?
Hi friends, I have some global structure in my application. The data within this is read by some reader threads. There are about 10 new threads created per second. Threads do some processing and die. All threads process based on data read from the global structure. This global structure is populated from a set of files at application startup, which can be modified at run-time. There is also the option to apply the modified files at run-time. At the time the modified files are read into the application, I need to block access to this global structure from the 'reader' threads. Threads do not modify this structure. What is the best/efficient way to achieve this task - lock / mutex / wait - and how can this be done Any ideas are welc ...Show All
Visual Studio How Can We Improve the Help Documentation and Sample Code?
Hi All, I wanted to start a thread here for anyone who has an idea to make the Crystal Reports for Visual Studio Help and Sample Code better. Is there a sample missing Have you got a sample that you think is really useful Is there something missing from the documentation Is there a better way to organize it for you Make a post in this discussion or check out Crystal Reports for Visual Studio 2005 on the MSDN Wiki Beta , and add your own comments and samples to the documentation! I look forward to seeing your recommendations! Thanks, Ashley Lessard (Business Objects) Crystal Reports for Visual Studio Program Manager This posting is provided "AS IS" with no warranties, and confer ...Show All
Visual C# How do I get 2 buttons on a form, the first one moves to form2, the second quits the app?
Im a newbe big time. I'm working on an RPG (to help develop my skills) that features 3 buttons on form1. The first is a button which is suppose to close form1 and open form2 for charicter creation. The second button is a credits button which simply pops a messagebox saying I made the game (which this button works), but button 3 is suppose to quit the program altogether. How do I get button1 to close form1 and open form2, and how do I get button3 to quit the program Please be very specific (like, dumb it down!). I have only experence with QBASIC and just stared with C# like 4 days ago. Thank you for your time and patience. Application.Exit() correctly exits the application. Form1.ActiveForm.Close() closes an active form but not ...Show All
Software Development for Windows Vista format of FabrikamCertificate.ini
I am trying to read the certificate from the smart card, but I am not sure what to put in for the value Q1. what is the format of the value (in FabrikamCertificate.ini) I tried the thumbprint of the certificate in the value. value=cdcff4a6d29f3f3b9fc63cd76cffe6c2103363a5 But i got problem when trying to use this infocard. Error from CardSpace: "Your data could not be retrieve from the managed card provider. Check your network connection, and verify that you have supplied the correct authentication credentials. " Base on the comment, the sample of the value is Certificate Path(Localmachine/my/www.fabrikam.com), hash, filename (in which case you may need certificatepassword=) Then I try value=currentUser/my/angela ...Show All
SQL Server Help
I've just learned an asp.net 2.0 web app with vs 2005 and am using a SQL Server 2005. But after running programme the error occur. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) please help me! Fix it Enable remote connections at the SQL Server. http://www.sqlserver2005.de/SharedFiles/remoteconnection.jpg HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server PAD function in Data Tranformation Editor
I have a value with a float datatype in Excel that is actually a date. For example, the value displays 1272006 for January 27, 2006. I am trying to convert this value to a date. I can do this in several stages using T-SQL by converting the datatype to integer, using replicate to make it eight characters and than using substrings to make it look like 01-27-2006 which SQL Server will recognize as a date. My problem is that there is nothing similar to a PAD (replicate) function using the Data Tranformation Editor in Integration Services. There is a replicate function but it merely functions to repeat a value. It doesn't appear to perform the same PAD function as the T-SQL replicate does. Here is my formula in T-SQL that works okay. rig ...Show All
Visual C++ sizeof(main)
hi, i searched a lot to find the answer for this question before posting.... i am not getting proper answers. . my questoin is wat is sizeof(main) alot of ppl say dat sizeof doesn't take function name ... .. but a fucntion name is a pointer like .. cout<<func; wiil print the address this means that its a fucntion pointer like object..... so the sizeof a function name shud equal to sizeof a pointer variable..... . . my question is why it does.nt take a fucntion name.... plz reply soon manish............. imanish11111 wrote: thanx sarath , i kno this answer .. i am asking WHY we cant use function name ..... For one, it's one of those things that's just outside the scope of the langua ...Show All
SQL Server Multiple SuccessValues for ExecuteProcess task?
I have an execute process task to run Red-Gate's SqlDataCompare synchronization. The normal exit code is 0 indicating successful synchronization. However, if the tables are already identical and require no synchronization the process exit code is 63 and the task fails. I do not want the task to fail if the tables are identical, but it seems I can only specify a single value in the task's SuccessValue property. I tried separating values with a comma, e.g. 0,63. Any suggestions Thanks Donald. I was avoiding having to force the result since I want the task to fail if the exit code is other than 0 or 63. Do you think in a future version we might be able t ...Show All
SQL Server Drop down parameter list not showing
I have a report which uses the selection from Parameter A to populate the choices in Parameter B. At the moment Parameter B only has 1 choice (more to be set up later) and 2 things happen: a) The text for the Parameter B choice is too long for the drop-down box generated b) When I try to select from the Parameter B box the drop down does not show the text, only a left/right slider bar. I have to click between the slider bar & the drop-down box and then click away for the selection to be made. Why does this happen and how can I increase the width of the drop-down box. ...Show All
Visual Basic Simple or Not? Adding Spell-check to an exisiting VBScript in InDesign
Hello, I am wondering if anyone would be willing to help me out with an issue I'm having with a VBScript (for use in InDesign). Let me start by saying that I'm no programmer! Actually my background is in graphic arts (as a program user). Anyway, we use a VBScript at my place of employment to print out proofs of advertisments (the script pulls in a lot of neat information from our database etc.) from InDesign (on PC). The script was given to us by the company we bought the database software from, and sadly, no one in my company knows a darn thing about VBScript. What I'm HOPING to do would be to append the script so that when the user double-clicks to activate the script, the spell-check dialog box from InDesign would pop open first so the ...Show All
Visual C# help in list box..
Hi.. I am creating a windows form using c#. i have 2 listbox controls. The first list box contains the available names. i want to select an item and list in the second list box using a button, select all the items from the first listbox and list in the second listbox using another button, similarly i should be able to move the selected item(single selection) which is in the second listbox to the first listbox using a buuton and likewise select the whole of the items in the second listbox and move it to the first listbox using a button. can anyone please help me with the code... please help Ok, I write all the code for you. //this event handler moves all the selected items from listbox1 t ...Show All
Smart Device Development Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)
I am using Alex Feinman's Compact Framework ActiveX host (as described in this MSDN article ). It works great when hosting Media Player versions 10.1 and 10.2, that are available on most WM5 Pocket PCs and Smartphones. For some reason, when trying to instantiate the WMP control on a T-Mobile DASH smartphone, the device UI hangs (every single running application including the home screen). The only difference that I found is that DASH uses a newer version of Media Player -10.3 (mine is build 15097). I was able to trace the problem to a call to InPlaceActivate() -> DoVerb( -5 ....) during the control creation process ( called from TransitionUpTo(..) in AxHost.cs) . Oddly enough, commenting the call to InPlaceActivate(), allows the ...Show All
