Bhaskar Sarma's Q&A profile
Visual Basic Problem using CInt() with textbox
I have the following code, to calculate, in real time, the sum of tree textboxes. Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged Dim tx1 As Integer tx1 = Me .TextBox1.Text Dim tx2 As Integer tx2 = Me .TextBox2.Text Dim tx3 As Integer tx3 = Me .TextBox3.Text Me .Label1.Text = tx1 + tx2 + tx3 End Sub But I get an error: The conversion of the caracter sequence " to type 'Integer' is not valid. I feel this has to be really simple, but I'm stuck with this problem! Thanks for your attention. Lucas The following s ...Show All
SQL Server Custom Report Items
Hi, I want change reports' style after the deployment, so each client can have his style. Nobody know I can do (change the color of table/matrix, insert a image...) Hi, this can’t be done by a normal predefined report, you have to use the report builder for that. By creating a report model you wil lhave the avaibility to let the user create his own reports from scratch. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple instances of a sprite
Hi i am fairly new to XNA and i am just messing around at the moment with it. what i am trying to achieve is when i push space a new instance of a bullet is created so even though there is just on sprite i can fire 20 bullets for example at the moment it fires the one then if i hit space the one i fired re assigns to the characters x and y. how do i make it so i can create multiple instances of the image. Regards Mark PS if u need more info let me know You can do something like this . Just create a new instance of the Bullet class when the Space is pressed, add it to the BulletManager and you're done. I can flesh it out a bit if I get a chance, but this should get you going at least. ...Show All
Visual Studio Express Editions BindingNavigator control doesn't show the save button
Hello, I'm working in an application with C# express and SQL express, and I'm using BindingNavigator controls. The question I have is why sometimes when I drag the table to the Windows' form, the save button of the BindingNavigator control doesn't show up I have managed to add the Save button and code manually, but if there is a way to make this button appear all the times that I add the BindingNavigator control, that will save me a lot of time. Any ideas Thanks, Carlos Hi, Sometime VS automatically add it for you just for convenience, say that you had created data source in Data Sources window and dragged a specific node to the form then data-bound controls w ...Show All
Community Chat User Interface Oriented Application Development
Hi all, my name is Babak K. Farahani, who was thinking about User Interface Oriented Application Development concept for just 15 years! Three years ago after lots of different implementation I decided to develop the first application that could generate applications based on the UIOAD concept. As I never thought I must register the concept at the time, I never published anything about my dreams. Recently with help of my friends, we published a paper on UIOAD and set up the www.uioad.org to ask all other developers around the world help us in completing and developing the concept. So, I invite everybody to the site and appreciate your comments, idea and ... Regards I understand what you're driving at: layout at the UI, def ...Show All
Visual Studio Express Editions Database Question
I have three simple WinForms. One main, which displays a cookbook, organized into title, ingredients, recepie and two buttons, add and edit. When I click the add button, another box pops out into which I want the user to introduce title, ingredients, recepie and then click save. I am not exactly sure how to do this, but I have Peter Wright's books and I am researching. The problem is though, when I want to EDIT a current entry, how do I pull from the database the info which was selected into the second form, edit it, and when clicking save, adding it back to the database well you need to make an Update command to perform the update based on say a primarykey - the PK being the reciepe ID. So when the us ...Show All
Visual Studio Analyze is not repairing the problem
I run the analyze utility it says project log 'wedaaaaa' has a delete record for item 'Online_help.gif' , but that item wasn't found in the project. The project contents as rebuilt from the log 'wedaaaaa' does not match the project's actual contents. How can I remove this problem so analyse does not report it again I have tried all sorts of switch combinations and removing the backup folder but to no avail I still keep getting this error. Anyone have a solution on this Thanks Could you please explain what is involved by the following : "you have to call Microsoft PSS (Product Support Service) to get it". Do I have to ring anyone Is there webpage I could look up to ...Show All
Internet Explorer Development Still another report on this...
Having an intermittent problem printing To: From: CC: Subject: Attachments: headers on emails. Usually happens with larger emails or emails with large attachments or emails that have been replied to or forwarded from other people. Have installed Generic/text printer and sent the email to this printer but sometimes the headers are still missing even printing this way. I have if I open the offending email and highlight just one or two words in the text of the email eg Dear John and then print the email using my HP printer (not as text on Generic printer) - the headers then print and so does the selected words. Don't suggest using Outlook as often we only print the first page of emails as we already have the rest of the email on file especial ...Show All
.NET Development How to perform nested sort?
Hello, Could someone pls help me with the xsl:sort and xsl:for-each instructions. I have an input file with sets of x,y pairs and would like to sort the <point> elements by x then y within each set. I can do simple sorts but not sure how to take to next level. Thanks, Tad < xml version="1.0" standalone="no" > <root id="theroot"> <set id="1"> <point x="3" y="3" /> <point x="1" y="2" /> <point x="9" y="2" /> <point x="6" y="0" /> </set> <set id="2"> <point x="2" y="2" /> <point x="2" y="5" /& ...Show All
Audio and Video Development Something
I have noticed if I uninstall Player 11 and the 11 Runtime Format that the voice codec works as it should, but otherwise it doesn't. Even re-encoding audio files that were encoded the the 9.1 voice codec to mp3 or something produces bad results as long as the 11 runtime is installed. Is this a bug Try posting this question on the WMP newsgroup ( http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.player&lang=en&cr=US ) and/or the WM SDK newsgroup ( http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.sdk&lang=en&cr=US ) ...Show All
Gadgets Is there a place to test Spaces Author vs Visitor mode?
I have tested my gadget using a toggle button to imitate the modes, but was wondering if there was a way to see how it would actual work before I release my gadget! Thanks in advance! oops, I just realized it should switch to visitor mode when I go to view space.. must mean my code is really wrong:) Here is the code, which I believe was taken directly from MS's site if (p_args.module.getMode() == Web.Gadget.Mode.guest) { img1.style.visible = false; ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Per our support engineer: Thanks for using ISV Community Forum, according to your problem, I’m wondering whether you can simply log on the machine as administrator and delete the virtual printer (just select the icon and press del key) in Control Panel -> Printers ...Show All
Smart Device Development Problems Installing COMPACT FRAMEWORK .NET 2.0 SP1 to a WINDOWS CE 4.2 Device
Hello, I am developing an application in VB.NET for a WINDOWS CE 4.2 driven portable scanner unit. I have to install .net compact framework 2.0 SP1 on the scanner unit to handle the VB.NET application. I have active sync 4.2 installed on my machine and the device is docked. When I run the NETFCSETUPv2.msi file I get the following error. ANOTHER VERSION OF THIS PRODUCT IS ALREDY INSTALLED. INSTALLATION OF THIS PRODUCT CANNOT CONTINUE. TO remove or configure the exisiting product use Add/REmove on the control panel..... Can someone help Please see this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=610234&SiteID=1 ...Show All
Visual C# Changing the windows desktop background image
Hi, I want to write a program that automatically changes the windows desktop bakckground image using something like an image playlist. Is it possible to change the desktop background from a C# program, and if so how would I do that Greetings, El Loco I'm not aware of managed methods to do so, but you can do so by calling one single unmanaged API: SystemParametersInfo from user32.dll. You must define the following signature: [DllImport("user32.dll", CharSet=Charset.Auto, SetLastError=true)] private static extern int SystemParametersInfo (int uAction, int uParam, string szImagePath, int fuWinIni); A minimal implementation would be: public bool ChangeWallpaper (string path) { const int ...Show All
Visual Studio Express Editions Create error log text file
How do you go about creating an error log from a text file, then once the file is made, write back to that file if another error is caught I can take care of the Try,Catch statements, but I need a little help creating the file in a desirable location, then if it exists when another error is generated, find the file and add to it. The location would be a shared file, do you think there would be any share violations from a file that was created remotely I thought of using a db file but, if there are network issues, that wouldnt be good since this app will be shared across a network. Davids Learning ACTUALLY... the Streamwriter CREATES and instance of the Filewriter if you use the filepath o ...Show All
