daniel mark's Q&A profile
Visual Studio 2008 (Pre-release) TextBlock versus Label
What is the difference When to use one versus the other Unlike Label, a TextBlock element can do ... Thank you in advance for your help. Pradeep Lee, Thank you for your help. I am still confused. I can display paragraph, etc. in a label as well. If I want richer text, I would use RichTextBox. There must be something a TextBlock can do that Label cannot. Regards, Pradeep ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Jerky sprite movement, too much keyboard sampling?
Hi all, A question if i may, i have installed XNA and all the necessary gubbins, and have walked through the tutorial on learnxna.com I am just trying out the basics at the moment and am attempting to get a user controlled sprite move across the bottom of the screen, on the x axis, responding to left and right keys. This works fine. When a space bar press is detected, a projectile object is created, in the same place as the bottom sprite and is added to a class scoped arraylist (for storing projectile objects). In the update method, the array list is looped and any projectiles created have their position updated (so they move up they axis). The array list is looped and draw in the relevant positions in the draw method. This rea ...Show All
SQL Server Running Package disappears without a trace
Running Package disappears without a trace. It appears to be failing silently. It does not produce an OnError or OnTaskFailed message in the sysdtslog90 table. The events I am logging are: OnError OnExecStatusChanged OnPipelinePostEndOfRowset OnPostExecute OnPreExecute OnProgress OnQueryCancel OnTaskFailed The package gets executed from a web application which launches it in a new thread like this: Package pkg; ... <Sets up pkg object> private void RunPackage() { ThreadStart threadStart = new ThreadStart(PackageExecute); Thread thread = new Thread(threadStart); thread.Name = pkg.Name; thread.Start(); } private void PackageExecute() { try { pkg.Execute(); } catch (Exception ex) ...Show All
Microsoft ISV Community Center Forums Ajax in CRM
Hi, i have a problem in CRM. I have a custom field named "new_number" and this field is disabled in form Order. I want to fill this field with autonumbering system which it must working with CRM Web Services, so i make a code that will return the new_number data into the field new_number in CRM Order form. To do that, i think i must working with AJAX (for example if the last record of new_number is A0001, then ajax will return A0002), where i can write my ajax code in Order Form Properties (onSave function at Save button). This is my AJAX code : function OnSave() { var xmlHttp = null; if (window.XMLHttpRequest) xmlHttp = new XMLHttpRequest(); else if (window.ActiveXObject) xmlHttp = new ActiveXObject("Microsoft.XMLHTTP&quo ...Show All
Visual Studio Express Editions Audio Volume
Hi, I have another question. Is it possible to display audio input and/or out put levels as seperate channels (Left and Right) I have two of the the VU audiometer ( http://www.codeproject.com/useritems/KEMA_Code.asp ) on my form. one named 'Left' and the other 'Right'. Any help would be great. Of course it is possible , in stereo sound there is two channels. But the question is, how. From where is your audio stream coming from, sound card line/mic input, a sound file If the component you are using to playback the sound, doesen't have any methods to get the amplitude of the current sample, you must get it from the sound data itself. To get the amplitude of the certain sample, you must know the format of the sound. Here' ...Show All
Visual C# Implementing an expression parser
Hi All, First of all thanks you very much for spending your time to open this post. We are trying to implement a small parser which evaluates expression given by users. We have idenfied a set of operators, functions, keywords, conditional staments which are required for the language. Can you please tell us how shall we implement a parser which checks syntax of the expression and evalutes them If you have any reference to data structure concepts, please let me know. Many thanks in advance. Cheers, Gopi Hi, U can use Regular expressions also to validate the input strings read from file. FYI: http://msdn2.microsoft.com/en-us/library/ms228595(VS.80).aspx , going through this post will ...Show All
Smart Device Development Drive mapping across WiFi in Windows Mobile 5 ?
Has anybody successfully mapped a network drive to a Windows server across WiFi with a Windows Mobile 5 device Please enlighten me on what you did to accomplish this as I'm getting the error message "The network path was not found" followed by "The network resource was not found, or you don't have permission to connect to the network." no matter what I've tried and I've even configured my Windows XP Home edition to share drives and still the same problem. Thanks Sriram, can you please point me towards one of the Windows Mobile newsgroups as I merely chose this group as it seems to me to be the best suited, and I haven't been able to find other Windows Mobile usergroups than one con ...Show All
Windows Forms SQL DataGridView Binding
Hello, This may be a really lame question...but I can't figure it out. I have a form with a DataGridView which has its DataSource set to a BindingSource which in turn has its DataSource set to a DataSet which is populated from MS SQL. I want the DataGridView to automatically show any changes made to the SQL table by other users and I've been unable to make it happen. What am I missing I'd post code by there isn't any. I've just dragged and dropped the components then made the selections in the Property window. I had used a timer that would get a new dataset manually and set the DGV's DataSource but this make for a bad user experience becuse the grid scrolls to home regardless of where the user is currently looking. Any ...Show All
Visual C# how to avoid downloading the whole .net framewrok to run the c# application
hi , here is the prob... when i finished my program ,,i published it.>> then i sent it to a friend >> then the program asked him to download the .net framwork which is too big 200 mb or more . i changed the prerequirements in the publishment properties ,,>>>sent the program again .>>and it didn't ask for the .net frame work but ofcourse it didn't work so here is the question... Is there is anyway to avoid downloading this whole big framework and running my small apllication is there something like dll 's or that could be installed with my application which will run it instead of framwork.. please answer me ,,and i'll be so greatful. and i wish my question will be helpful for other beg ...Show All
Visual Studio Express Editions Accessing web text box
I am making a program that automates the downloading of a file from a website of one of our providers. There is a login page which I can load up on Form1_Load() which has a user name and password box. Looking at the source code, these are called : document.forms[0].userName.value = ""; document.forms[0].password.value = ""; There is also a submit button : input type="submit" value="Go" How do I access these I want to push a button that enters the username and password and then hits the Go button and effectively submits the data. Any clues Aha! Progress! I saved the web page and took out all the code leaving just the declaration of the form box and it works. The frame is called "mainFrame& ...Show All
Visual Studio MORE INFO - Reportviewer "report is being generated" can't display report - VB 2005 program
I have a VS2005 Windows application that displays a reportviewer (SQL 2005) report in a tab control, then displays a second report in a second tab with reportviewer, and so on. The really strange thing is that I had this application working for about 3 months. I even had up to 30 reports in 30 tabs at one point. BUT, for some reason now all I get is the first report and the second, third, etc. tabs show a reportviewer with "Report being generated" that never displays the report. Even worse, another user is able to run this application and DOES get all the reports displayed. So what could have been updated on my PC that is causing this problem Thanks in advance. P.S. I also posted this on the SQL Server 2005 forum, b ...Show All
Visual Studio Create a Template
Hi, Is it possible to create a Item / Project Template using GAT If yes, could anyone please throw some light on how to go about achieving the same. Thanks, Lahiri Hi Victor, I would like to create a project / item template. Could you suggest how I could achieve it Thanks, Lahiri ...Show All
Visual Studio "Unable to start debugging" error on x64
I'm using Visual Studio 2005 (SP1 beta) on Windows Server 2003 Enterprise x64 Edition. If I create a new project (Console or Windows application) and then press F5 I get an error dialog stating: Error while trying to run project: Unable to start debugging. Either the applicaiotn has not called WSAStartup, or WSAStartup failed. This happens with the active solution platform set to either "Any CPU" or to "x64". If I change the active solution platform to "x86" everything works fine. Does anyone know what might be causing this problem and how to fix it Thanks, John. Hi, This is a known issue in Whi SP1 Beta that will be fixed in the RTM version. Having the Start Page on in ...Show All
Internet Explorer Development Prompting Users When Using window.close() In IE7
Microsoft IE Developers, The question, everybody seems to be asking! What are our alternatives regarding not prompting users when we are automatically closing a browser Life was so much easier before IE7. I could simply use: window.open("page.aspx","_blank","resizable=yes,scrollbars=yes,toolbar=no,status=yes"); window.opener = top; window.close() which would work perfectly for what I am trying to achieve for my ‘trusted intranet web applications’. How can I launch a browser for a ‘trusted intranet web application’ that only displaying the title and status bars in IE7 Should I be looking at .hta files to launch a new web brows ...Show All
Visual Studio 2008 (Pre-release) How To: Attach event handler to element in DataTemplate?
This question/problem is a little bit esoteric, but hopefully someone has seen it before... I need to attach an event handler to the Loaded event of Image elements within a DataTemplate. The Loaded event handling method is in a utility class, so I can't use XAML to attach the handler. In a Window's Loaded event handling method I call this method in the utility class : FrameworkElementFactory factory = listBox.ItemTemplate.VisualTree; while ( factory != null ) { if ( factory.Type == typeof ( Image ) ) { factory.AddHandler( Image .LoadedEvent, new RoutedEventHandler ( OnImageLoaded ) ); break ; } factory = factory.FirstChild; } There are two problems, one is not too bad (just odd) and t ...Show All
