bchadraa MSFT's Q&A profile
Visual Basic clearscreen()
I want to clear the user typed content of a textbox and the results which appear in labels as a result of the code in my command button. I thought I could create a command button, label it btnClearScreen and code it ClearScreen() however, when I do this, VB.Net tells me that ClearScreen() is not declared. I thought I read that ClearScreen() would clear data on a form but not save it. I take it ClearScreen() is not a built in (method) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX messes up other Threads!
This is my situation: In my app I create a new form that renders directx things (simple meshes...)... The DX (DirectX Feb 2006) form starts up it's own render loop, which runs until the form is disposed. On another thread I run a control that displays a graph... When adding points to the control it calculates the DateTime value to it's internal format and then displays the form. If the DX form is disabled (not even loaded) the graph wor ...Show All
Windows Forms graphics flicker problem (double buffer not working)
I am trying to create a simple Breakout type game. I have a game panel on my form that holds my game (the paddle, ball, and board of blocks). I use a timer with an interval of 10 to move the ball a set distance every tick. The problem is that I also draw the board everytime this timer ticks and it flickers. I tried setting the doublebuffered attribute of my form to true but it didnt help. Anyone have any ideas either a different/ebtter way t ...Show All
Windows Forms Can I write animal in managed C++?
I've only VC++ and don't like using command line tools. I found information that animals can be written only in VB or VC#, but I also found J# example in animal farm. So can I use C++ or cannot Some have tried, but I&nbs ...Show All
Visual J# Why is these text comparisons not working
In my little program I have a richtextbox and a button. When clicking the button this code is run and when I debug I see that my in the richtextbox entered text is indeed in the txt variable. But when I for example enters 'hej' the first if statement is skipped, why txt = hej so txt=="hej" ought to be true! But isn't. private void Button_Click( Object sender, System . EventArgs e) { String txt = new String (); tx ...Show All
Visual Basic Using ContextMenus with AxHost'ed ActiveX Controls
I am upgrading from VB6 to VB.NET. I place a third-party ActiveX control on a VB.NET form. I cannot set a ContextMenu for the control because AxHost does not support it. (I can set the property in the start-up code but nothing happens when I right-click.) Instead, I handle the MouseDownEvent for the control and call myContextMenu.Show(controlname, point). The context menu pops up as expected. When I move the mouse up and down the list of i ...Show All
.NET Development Monitoring and changing varibles in a process
I was wondering how to get a value form a running process, lets say MySimpleProcess.exe that is running in memory. If i made a integer that was value of 15 and lets say I click the button and it drops to 10 then 5 then 0. I am trying to make a program that tracks an address in memory and its value. lets say address is B74EC4 value is 15 (4 bytes) Click B74EC4 is now 10 etc.. You can probably g ...Show All
Visual Studio Express Editions Common Dialog Box and Save- newbie question
I want to save an array of UShort integers in any chosen directory, using a Common Dialog Box. (There seem to be big differences between VB6 and VB Express.) Can anyone help And I need to load back the values, again using a Dialog Box. Thanks, David. Hi David, You can add a new MDIParent form into your project and take a look at the OpenFileDialog and SaveFileDialog sample in there. Here's a copy o ...Show All
SQL Server Passing Multivalue Parameters Through a Report Link
I've created a line chart in my report which lists number of transactions by month. I've also created a report to list transactions by day. My goal is for the user to select a month and link the report to the graph with the selected month divided up into days (in other words, the user wants to see the number of transactions for each day in the selected month). Anyway, everything is working perfectly except for one thing. In the list of parame ...Show All
Visual Studio Express Editions BindingSource Navigation
Hi, I've got a Winform with a number of controls that are directly bound to a bindingsource, I've also created a list box and a combo box that will be used for quick record selection. The problem is that both the list box and combo box, have a custom query source. What I would like to know is how to navigator to the selected record and how to change the other control to the same record. eg. If the user selects a record from the List Box, I want ...Show All
Windows Forms Launching child form on a new thread
My application have a main form. From it a number of child forms are launched. I want to launch each child form on a different thread. I use the following code to launch the child form. On using this code the application sometimes throws a ...Show All
Windows Forms WebBrowser: need some Actions or methods
What action happends, when the page in WebBrowser finishes to load succesfully And what action happends when the load of the page is interrupted by error ...Show All
.NET Development BindingSource and Web Services
First, let me apologize, for I'm sure this is a simple answer subject. Now, on to business. Question: Why doesn't this code work to update the underlying datasource (Northwind "Customers" table served from SQL2K, as an XML web service. ALL designed using the designers in VS2K5, and the Data Sources wizard. private void customersBindingNavigatorSaveItem_Click( object sender, EventArgs e) { localhost. Service ws = ...Show All
Windows Forms Datagrid Column Header Width
Hello all, Is it possible to change the width of column header programatically Thanks you, CVL Hi, I had the same problem but I fixed it :) check this topic for futher information (I also have sourcecode) http://forums.microsoft.com/msdn/ShowPost.aspx PostID=113104 ...Show All
.NET Development Don't copy that floppy
hi i created a vb.net Pr . now i go to bin directory to run .exe it is correct but when i copy only exe into a floppy !! my Pr was changed before,two weeks ago, i change myconfiguration of Pr into Release then it was correct but know i have this problem again(release does not response) Hi, Do you mean, "Is there any way " on copying your exe into a diskette and redistribute it Yes, as I said you can copy your exe into a diskette but t ...Show All
