Alex-MyRpg's Q&A profile
Visual Studio Textbox Format as Phone Number
Hi..... I am trying to format as a phone number (XXX) XXX-XXXX a data field from a table on my xsd file, using =Fields!Phone.Value and "(###)###-####" for format but when displayed, it shows only 10 digits without format. I found that the phone field on source table was created as varchar instead of Integer. Now, I am using this code to solve the problem on a regular GridView on an aspx file with codebehind, and it works perfect: Protected Sub reticula_RowDataBound( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles reticula.RowDataBound Dim ea As GridViewRowEventArgs = TryCast (e, GridViewRowEventArgs) If ea.Row.RowType = DataControlRowType.DataRo ...Show All
Visual Studio Express Editions How to display a percent complete (%) on a progressbar
I'm new to c# so please forgive me if this seems simple. While working through examples in my C# book I came across some sample code that utilized a progress bar. I wanted to make an enhancement but I'm not able to get the results I want. I added a progressbar to my form and instead of just seeing the bar update I wanted to add a percentage complete in the middle of the progressbar (much like many Microsoft products you see). I added a label on top of the progressbar and in my loop where I update the progress bar I added a calculation to divide my counter by the maximum of the progressbar multiplied by 100 to get the percentage complete. After doing requisite casting I assign the result to label.text. When I run the application th ...Show All
Windows Forms Different SQL port
Am i forced to use SQL port 1433 for applications between VB.net and SQL server i would like to use a different port, is this possible and where can i set it Also does anyone have a FAQ on encrypting the data betweent he application and the SQL server Many thanks Ryan ok ignore my Noobness. i found the client network utility and set it as you described, but i get no connectivity at all now :( Am i missing something thanks Again Ryan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Method for animating rumble on CodePlex
Hello everyone. First, thanks to everybody who is contributing to the community. You guys are awesome! I wrote some code to animate the vibration of the rumble motors. I hadn't seen this topic come up at all and after playing a really great XNA game that had really bad rumble (either fully on or fully off) I figured it wouldn't hurt to put it up. http://www.codeplex.com/acres The first release has a Windows game project demonstrating a few different rumble animations when you press the various face buttons. I'm really curious to know how people handle controller vibration in their games. Is it an afterthought Do you handle its procedurally or through predefined settings Hi, On a title we did for Xbox we used to feed audio wave f ...Show All
Windows Live Developer Forums Live chat from website
I would like the create a web application which allows live chat advisors to interact with visitors. Something similar to liveperson.com. Is it possible (or will it be possible) to use the Windows live messenger to do this through a web page If not can someone recommend an api or software I can use to build such an application Thanks Danny ...Show All
Visual Studio Express Editions warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
Hi, I'm having the following error: warning C4244: '=' : conversion from 'double' to 'float', possible loss of data in this code: float *in1 = inputs[0]; float *in2 = inputs[1]; float *out1 = outputs[0]; float *out2 = outputs[1]; float previous1 = *in1; float previous2 = *in2; while (--sampleFrames >= 0) { // filtering (*out1++) = (0.5 * *in1) + (0.5 * previous1); // here (*out2++) = (0.5 * *in1) + (0.5 * previous2); // and here previous1 = *in1; previous2 = *in2; } Why Many thx You have specifed the constants 0.5, which default to type double. To inform the compiler that they are floats, add the 'f' suffix like 0.5f ie: while (--sampleFrames >= 0) ...Show All
SQL Server Temp tables in Integration Service
I am trying to move a flat file into a temporary table but the pre-execute phase looks for the table and fails the package. Is there away around this I have set the connection RetainSameConnection to true but that doesn't appear to help in the dataflow. The pre-execute phase of which container The package or a task (N.B. Remember that packages and tasks are themselves containers). Try setting DelayValidation=TRUE on the offending container and see if that helps. -Jamie ...Show All
Software Development for Windows Vista WebCam Pan/Tilt with VB.NET
I am trying to figure out how to control the Pan/Tilt of a Creative Live! Motion webcam. I have seen some posts which talk about the Platform SDK (which I have downloaded) and then say to look at the GraphEdit program. I'm sorry, but I can't figure out how that helps with determining the objects/API calls needed to control the WebCam as required. Has anybody actually tried to control the Pan/Tilt of these webcams and if so, give me some pointers on where to start. I can't find any DirectShow namespace when reference the DirectX libraries in VS2005. Where do I find it (if in fact, I need it) Thanks hi have find a solution for the problems you faced I am also trying to control the movement of cr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom Content Manager - Generics Question
Greetings & Salutations: I am trying to put together my own kind of "Content Manager" as the current one appears to only work with content that has been added to the project, and not with say, a file on a network drive somewhere. I really like how the "XNA ContentManager" uses generics, and was trying to implement it myself, but encountered some errors. I looked on the net but couldn't find the answer I was looking for. Basically, I would like to be able to fetch any kind of asset from my own content manager, regardless of what it is . The following function does not work as it is written. Could someone point out the proper way something like this is supposed to be implemented (PS. The content is stored in dicti ...Show All
Visual Studio 2008 (Pre-release) VisualTreeHelper.HitTest returns null
Hi... I’m trying to use the VisualTreeHelper.HitTest method to check if a Canvas was hit or not after MouseLeftButton was hit.. protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { Point p = e.GetPosition(this); HitTestResult hRresult = VisualTreeHelper.HitTest(myCanvas, p); if (hRresult ==null) { // Canvas was not hit,move window this.DragMove(); } else { //do something else.. } } Wheter if I click on the Canvas object (myCanvas) or not, hResult always is set to null.. What am I doing wrong Have a nice day /Erik What is it bad/wrong to hit-test the object itself I tried it and it worked ...Show All
Visual Basic OpenFileDialog Question
I have the following code written for the opening of a BMP image from the File...Open on my menustrip. Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click OpenFileDialog1.Filter = "Image Files (*.bmp)|*.bmp" If OpenFileDialog1.ShowDialog() = DialogResult.OK Then Dim fileName As [String] = OpenFileDialog1.FileName End If End Sub I tryed it out and it worked, but i have a small question.....How can i change the default name that appears in the file name of the window browser It is set to "OpenFileDialog1" How can i change it to an empty space EDIT: I just added a picture ...Show All
Visual Basic SqlDateTime overflow.
You also have to specify the Data types of your parameter. : .. .. .. cmd.Parameters.Add("@EmpImage",SQLDBType.CHAR,5 ) ' for string type, also specify the length cmd.Parameters("@EmpImage" ).value = strEmpImage cmd.Parameters.Add("@frmDate", SQLDBType.Smalldatetime) cmd.Parameters("@frmDate" ).value = dtFrmDate .. .. .. .. Hope this helps :) ...Show All
Visual C++ Is there a way to save project properties settings? And then reload them later?
One of the things I am doing at work is to recompile old Visual Studio 6.0 C++ projects under Visual Studio 2005. Some of these projects actually began as Borland C++ projects so they sometimes carry over compiler settings that cause problems after being converted and attempting to link with other projects. For example, they might have the '/ZI' setting (Program Database for Edit and Continue). This can cause conflicts with other settings. For example, if I am building with the /CLR setting then I get the following error: "Error 1 Command line error D8016 : '/ZI' and '/clr' command-line options are incompatible" Rather than going through all my projects and manually fixing these settings, is there a way to save these set ...Show All
Visual Studio Express Editions Flash screen timer
Before I start my application in form1, I want to show a splashscreen for 3 seconds, how can I make it jump to the application in 3 seconds It partially helped me, could you give me a more exact text, the flashscreen has this name: RegioactueelSplashScreen.vb the main screen is called webfeed.vb ...Show All
Visual Studio Code Snippets of the plain ol HTML type?
Can you make a snippet of just HTML When I open a website/ web project I don't see any tools for creating a simple web snippet. I must be missing something obvious ... jonk2000, Code Snippets are only supported in the code editor, and it is not supported in the HTML editor. However, if you just want to store a piece of static text, you can select the text and drag it into the toolbox. You can drag it back out at a later time. Hope that helps. Regards, James Lau Lead Program Manager, VS Ecosystem http://blogs.msdn.com/jameslau/ ...Show All
