AmolWankhede's Q&A profile
Visual Basic playing a media file, and then waiting
Hello I am writing an application where I want to play a wav file using windowsmedia player from inside VB. After playing this file, I wish to have my VB program wait a bit until the wav file is played, and then continue on with the next command. So what I did was place a System.Threading.Thread .Sleep(3000) so buy my self sometime. However, the sound file is not being played at all and all i see is the wait happening. what am I doing wrong how can I implement what i want to do thanks Shyma Mohaisen The code is not waiting for the .wav to complete. It's reading the line to execute the wave, playing the .wav, then moving on to the next line of code immediately. The sleep is consuming the allocation. This happen ...Show All
.NET Development Dataset Thread-Safety
I have a vb .net multi-threaded application with several datasets that are read/written to from a couple threads. MSDN documentation says that datasets can handle multiple readers and a single writer. I have synclocks around all dataset writes and no synchronization around reads. I am experiencing random "Index was outside the bounds of the array." exceptions where a dataset item is in a conditional statement, for example: If CInt (CMPDAT.Tables(0).Rows(i).Item("ID")) = 0 Then Do I need to synchronize read operations as well I even experience this problem when only one thread is writing to a dataset (never deleting anything just updating values) and another thread reads from the same dataset. Any help wou ...Show All
Visual Studio Express Editions Program produces different results on different computers
Hi all, I wrote a program about six months ago and uploaded it to a site. What the program does is read a text file and puts the results into a database. Obviously the program works ok on my system & I know it works ok on other users systems but I've had 2 reports of the program not working as it should on other systems that are using the same OS as me ( windows XP service pack 2 ) . I told one user to download the latest visual basic runtime files which he did and still there is no difference, I also got him to send me his text file which I tried on my system & it worked ok. The visual basic file he downloaded is ; Visual_Basic_6.0_-VB6-_runtime_SP5.exe I'm no expert on VB, far from it but this sounds really strange ...Show All
Visual Basic 101Samples but can't use
I downloaded the 101Samples for VB, it says, and installed them, but the first one I try to examine, WorkingWithTheInbox, I get error "Project type is not supported by this installation." Of course, it doesn't mention what the type is or what is missing from the installation or how to find out. Another following dialog box says "Make sure the application for the project type () is installed." Suggestions And while I am asking, after making cut and paste a major feature of Windows, why can't I copy the text out of the message box to paste here Same thing with Help About - as in "Please give the date and version information from the Help About." And copying will not work to pick up the strange small detai ...Show All
Microsoft ISV Community Center Forums Read Data from Execel with VBA and write to txt file
I'm need to write a Excel Macro that will read the worksheet and write the data int a fix format txt file. I need to check the value in column A and if the value changes I need to insert a blank row. you can check the value of a particular cell in your worksheet by .cells(rowNumber,columnNumber) so use that to compare to your initial value, and go from there. is that helpful at all kriti ...Show All
.NET Development File system watcher not working!
I have this: FileSystemWatcher FSW = new FileSystemWatcher ( @"C:/" , "*.*" ); public Main() { InitializeComponent(); } [ STAThread ] static void NewForm() { Application .Run( new Main ()); } private void Main_Load( object sender, EventArgs e) { FSW.Changed += new FileSystemEventHandler (OnChanged); FSW.Created += new FileSystemEventHandler (OnCreated); FSW.Deleted += new FileSystemEventHandler (OnDeleted); FSW.Renamed += new RenamedEventHandler (OnRenamed); FSW.EnableRaisingEvents = true ; FSW.NotifyFilter = NotifyFilters .LastAccess | NotifyFilters .LastWrite | NotifyFilters .DirectoryName | NotifyFilters .FileName; FSW.BeginInit(); } pu ...Show All
Software Development for Windows Vista Cancel Workflow in ASP.NET
Hi, I developed a Cancel Workflow Cancel aspx page and tried to cancel a workflow instance with the following code at Page_Load (I copied from the Cancel Workflow SDK sample and tried on a Winform environment without any problem): Dim WFGUID As Guid = New Guid(Request("InstanceID")) Dim WorkflowRuntime As WorkflowRuntime = Nothing WorkflowRuntime = Application("Workflowruntime") AddHandler WorkflowRuntime.WorkflowTerminated, AddressOf workflowRuntime_WorkflowTerminated Dim Workflow As WorkflowInstance = WorkflowRuntime.GetWorkflow(WFGUID) Dim wqi As ReadOnlyCollection(Of WorkflowQueueInfo) = Workflow.GetWorkflowQueueData() For Each q As WorkflowQueueInfo In wqi ...Show All
SQL Server Does Drill Through work fine in AS2005?
Hi, I had designed several cube in AS2005. And I counfused by some problem of drill through. 1. The large amount of dimensions makes drill through broken Drill Through works fine in the cube that includes 20 dimensions. But, In the same cube, the amount of dimensions is increase to 25. The drill through works no response... 2. In some case, the drill through do not response correct row data. A MDX syntax that response measure is 8 (In my project, that means there would be 8 row data in the fact table.). And I use the same mdx syntax to drill through, that only response 1 row data! Any idea or it's the bug thanks, D ...Show All
Software Development for Windows Vista Eventlog: Inner Exception: Bad UID
I am trying to setup a STS Service which accepts smartcard authentication. I configured a relying party and STS on 2 different computers, and I started configuring everything on fresh OS installs. I generated Cacert.org certificates, created managed cards for smartcard authentication, and configured the SimpleSTS sample. After being prompted to enter my smartcard, and pressing ok, I get an error in Windows CardSpace, which dumps the following trace in eventlog: An error occurred when communicating with the Windows CardSpace service. Exception of type 'Microsoft.InfoCards.CommunicationException' was thrown. Inner Exception: Bad UID Additional Information: Microsoft.InfoCards.CommunicationExce ...Show All
Visual C# Creating SFX file through C#
Hello Sir, I am a C# Developer, and I have a very specific requirement. I am developing e-Book Creator Project, and in that I need to give an option whereby on clicking it it will create the Installer for that specific e-Book. (a .exe installer file). I know how to create an installer for a project but i don't know how to create an installer from the application itself, programmatically. Please not that I don't want to make Installer for my project, My project is E-book Creator, and throught that e-Book will be created. Now I want to give an option in My Application through which the e-Book Creator can create .SFX kind of installer, which are distributable, and those .sfx can be used by another user to install e-Book with its ...Show All
Internet Explorer Development i need both ie6 and ie7
hi, i need the browser ie6 and ie7 in my system ...Show All
Smart Device Development HResult: 0x800A1F45 + HResult: 0x800A1F52
Just wondering how I could fix these errors. Here's some code that I used: private void InitComPort() { com.CommPort = 1; try { if (com.PortOpen) { com.PortOpen = false ; } com.RThreshold = 1; com.Settings = "9600, n, 8, 1"; com.DTREnable = true ; ...Show All
Visual Studio Tools for Office Using the dll created by publishing my VSTO Word program
Hello all, I made a program that will place data from a table into a merge document and then print it out. When I published it it created a dll. Now I need to use this in another program that sets the information up in the database. I have placed a reference to the dll in the main program and also copied the dll into my project folder. I then found the following code on the net Private Declare Sub Print Lib "ACHSweep" () You then use the call method to start the processing, supposedly. None of these solutions hgas worked for me, and nothing else I have found addresses this. Any help is greatly appreciated, Brian Hi tass_fint Are you testing on your developm ...Show All
SQL Server DSN issue/question..
I have 2 instances of SQL on the same box. I am running Great Plains on both. When I change the properties of one system DSN, it automatically updates the other entry also. Have any of you seen this before Any insights would help. Thanks Sundar You are in the wrong forum. Try this for starters: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=93&SiteID=1 ...Show All
Visual Studio Crystal reports with untyped datasets
I have data in an untyped dataset. Is there a way to display that data in a crystal report Or is it a must to have a typed dataset in order for me to create crystal reports Can somebody point me to an example of displaying data from an untyped dataset. I am developing a WinForm application in VS 2003 Thanks Basani You must design a crystal report off of a schema file for it to work correctly. You can create the schema file by doing a dataset.WriteSchema("C:\myschema.xsd") ...Show All
