MyoZaw's Q&A profile
Visual Studio Express Editions Problem with WebBrowser1
Well, not so much a problem, just something I don't know how to do, if it's possible. I made, wrote, what ever ya call it, a Web browser. It works fine, but on some site when ya click a link or button it opens in a new window, thats when Internet Explorer kicks in. Is it posible to how those open in WebBrowser1 and not have Internet Explorer kick in at all also, how do I add an Add to Favourites to the Browser And if posible, How would do I add an option, if posible, to be able to set the Browser as the Default browser Am still learning program and still got a long way to go. am using visual Basic 2005 Express Edition. Thanx for ya help, very much apreciated. Hello ...Show All
Audio and Video Development How Can I use the voice capture DMO (Microphone Array Function)
Hello All, I am developing an application about using Microphone Array function via the voice capture DMO to make an audio file. And I encounter some problems as below, could anybody help me to clarify it 1. Is it possible to use the voice capture DMO in DirectShow by using the wrapper filter I have created an AEC filter (CLSID_CWMAudioAEC) by wrapper filter in DirectShow and render to a file, but it doesn't work (No output data generated). How can I do to overcome this problem 2. I have used “AECMicArray” sample to record the audio file, and it produces a .pcm flie. I have a question that how can I do to play this file I have tried to write the wave header manually and it is playable. However, writing header manually does not ...Show All
Windows Forms Two Controls
http://www.seo-consulting.de/pages/bilder/google-video-uploader.gif Do you see the table that lists all the videos What is the name of the control I can use to get that Also, how do I make a button that has a drop down menu Well an easier way might be to show a context menu, is there a way to either (a) Show a context menu on button click (b) Simulate a right click on the button on button1_click event, because that would trigger a context menu thats binded to the button... ...Show All
Visual C# convert from vb to c#
Hi all, I had the vb code as follow: objdata.Tables( "record" ).Rows(v1).Item( "name" )=txt1.Text Can someone help me to convert this to C# code I had tried this objdata.Tables["record"].Rows[v1 ].Item[ "name" ]=txt1.Text; but was given an error Error 4 'System.Data.DataRow' does not contain a definition for 'Item' Thanks Hi, bslim In C#, there is no DataRowCollection[int num].Item expression, you'd use ItemArray (object [] type) instead. objdata.Tables["record"].Rows[v1 ].ItemArray = objectArray; ( objectArray is object [] type with the value of txt1.Text and assuming that v1 is an int). OR objdata.Tables["re ...Show All
Visual Basic Reading/Writing INI Files
I Add this code in a Module And i wrote this file that i called "Italian.lng": [DATA] Field1 = Speaker <DllImport("kernel32.dll", SetLastError:=True)> _ Public Function WritePrivateProfileString _ (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, _ ByVal lpString As String, _ ByVal lpFileName As String) _ As Integer End Function <DllImport("kernel32.dll", SetLastError:=True)> _ Public Function GetPrivateProfileString( _ ByVal lpAppName As String, _ ByVal lpKeyName As String, _ ByVal lpDefault As String, _ ByVal lpReturnedString As StringBuilder, _ ByVal nSize As Integer, _ ByVal ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Math 101: Changing the magnitude of a vector?
I find myself needing to change the magnitude of a vector quite often, and end up writing a lot of code that looks like: v1 = Vector2 .Multiply( Vector2 .Normalize(v2), 250.0F); Is there a better way That just seems awfully inefficient. It only gets worse when I want a particular magnitude vector in the opposite direction: v1 = Vector2 .Multiply( Vector2 .Normalize( Vector2 .Negate(v2)), 250.0F); Or inverting the Y-axis of the thumbsticks: acceleration = Vector2 .Multiply( Vector2 .Normalize( Vector2 .Multiply(gpt.Left, new Vector2 (1, -1))), 800.0F); Please, help a noob out... Matt Unless you've profiled your application and these vector operations are actually taking up a sign ...Show All
Windows Forms GUI question
Hi all The application has two windows (frames) for two different tasks. Only one window is shown at a time. Both frames use the same menu bar. How would you implement this Create two frames with the same menu and then hide one Create one frame and exchange panes Thanks you The way I see it, you have two choices; 1) Create an MDI form with 2 child forms. Only one problem, the user will be able to view both windows if they choose. 2) Create 2 forms and copy the menu from one to the other. I think you may need to be a bit more specific as to what you are trying to achieve... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna racer, how and when can i get it
i saw this thing on something called xna racer, and it amazed me that we could do this with xna http://www.kotaku.com/gaming/xna/clips-xna-racer-preview-213594.php does anyone know anything about getting this Fair enough, they're saving it for my birthday, or 4 days thereafter, will the final version of XNA be free or will it be like the subscription thing on Xbox Live ...Show All
Visual Studio Express Editions Problem Adding DLL to C# Project
Hi, I wrote a simple dll in C++. I am trying to add it to a new C# project but I get this: "A reference to... could no be added. This is a not valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible , and that it is a valid assembly or COM component" The file I'm trying to add called: Worker_Class.dll Please help, what could be the problem Iram That is rather complicated. Exporting native C++ classes in a DLL is a rarely used feature of the C++ compiler, therefore it's not really supported to import those by any other compiler than C++. The only way to import those using C# i ...Show All
Visual Studio 2008 (Pre-release) using celltemplate on gridviewcolumn
Hi, I'm trying to populate my column with the following < GridViewColumn DisplayMemberBinding = {" People.Address} " CellTemplate = " {StaticResource AddressDataTemplate} " > < GridViewColumn.Header > < support:SortableGridViewColumnHeader SortProperty = "People.Address " Content = " Address " /> </ GridViewColumn.Header > </ GridViewColumn > where Address is a class that has a properties of Number, Street, and ZipCode. I want my column to be populated with the concatenated properties of the Address (instance). Hence I have this DataTemplate defined. < DataTemplate x:Key = " AddressDataTemplate " > < StackPanel O ...Show All
.NET Development Static method on a static class and dynamic invokation
Hi How would one dynamically invoke a static method of a static class Thanks You do it nearly the same way that you do on an instance class... by calling the Invoke method of the MethodInfo instance that describes the method in question. The key difference between doing this to a static vs a instance class/method is that you do not pass in an object to execute the method on, instead you just pass in null for the obj parameter. In C# this whole thing would be as simple as the following to display 'Hello World!': public static class MyClass { &nbs ...Show All
Software Development for Windows Vista StickyNotes for Web-Based Xps files using XBAP ??
Hi folks, Any good examples out there on this topic As most of us out there, I am ramping up on .NET 3.0. I am running Vista and I have installed the Windows SDK. The aim is to have multiple users view a read-only Xps file and mark it up with their comments to collaborate their thoughts and ideas. I have run samples from the SDK. These samples are found in the wpfsamples.zip file under the docservices directory. First, I ran DocViewerInIE (an XBAP file that allows you to browse a Xps file). I have also run the DocViewerAnnotationsXps (a Windows Exe app that allows you to apply sticky notes to a Xps file). I am trying to merge these but with great difficulty. I would also like to draw on the Xps file through the browser to c ...Show All
.NET Development I have problem when use DateTime class
I use DateTime.Now in my program and it work correctly. I run my program 24hrs/day . But it work correctly for 6hrs after that it retrun wrong date and time to my program and I have to restart the program to make it work correctly again. example I run program at 31/10/2006 but it return 299/12/2006 to me. I don't know what is the problem. I can't fix it. Anyone can help me Thank Bizarre problem, to put it mildly. DateTime.Now does a fair amount of processing. First, it obtains the current UTC time with the GetSystemTimeAsFileTime() API function. It then adjusts that time by looking at the time zone and whether or not daylight savings time is in effect. That last one seems relevant, we just went throug ...Show All
Visual C# why is not possible to color DataGridView cells in DataGridView during runtime???
Hello! I have a question about colouring DataGridViewCells. I have a DataGridView made by VS2005 designer. I binded this DataGridView to a DataTable (dgv.DataSource = dataTable). Everything is OK, and the grid is displayed fine. But when I want to colour some cells in DataGridView during runtime simply nothing happens. For example myDataGridView.Rows[1].Cells["MyColumnName"].Style.BackgroundColor = Color.Red. Wen I change cells value, everything is fine, for example: myDataGridView.Rows[1].Cells["MyColumnName"].Value = "whatever". I tried also MyDataGridView.refresh()... Interesting thing is, that it is possible to colour cells from events...it works fine. But I need to do this during the runtime.. ...Show All
Windows Forms String to int, Visual C# 2005
Hey, How do you make the value of this: pictureBox1.Width = (maskedTextBox1.Text); pictureBox1.Height = (maskedTextBox2.Text); an integer becuase I get an error saying can not convert string to int... Thanks :) Hi, Yeah, I can reproduce the problem and it does say that it's FormatException problem. The reason you got the error is that you forgot to use the try... catch ... in the radiobutton5_checkedchanged event handler. Besides, this event fires when you CHECK the radiobutton5 and UNCHECK it. That is to say, when you check the radiobutton4, the radiobutton5_checkedchanged event fires as well as the readiobutton4_checkedchanged event fires. Therefore you should check if the current state is chec ...Show All
