Software Development Network Logo
  • .NET Development
  • Windows Forms
  • SQL Server
  • Visual Basic
  • Visual C++
  • Smart Devicet
  • Visual FoxPro
  • IE Development
  • Visual Studio
  • Visual C#
  • SharePoint Products
  • VS Team System
  • Audio and Video
  • Windows Vista
  • Game Technologies

Software Development Network >> Joseph Stalin's Q&A profile

Joseph Stalin

Member List

StephenMas
Morten Nielsen
eric shih
Rob Ainscough
BetsyT
Sista
Blast
rikriv
Will Riley
Stas Kravets
PublicError
Vitalijus
frederikm
angelina
Baok
stswordman
Ernie_Harris
flash.tato
John1010
dreameR.78
Only Title

Joseph Stalin's Q&A profile

  • .NET Development Getting Version

    How can I get application version at runtime (or compile time) I want to show the version (which is set in assembly attribute) in about Window. I tried this Policy::ApplicationSecurityInfo ^asi = gcnew Policy::ApplicationSecurityInfo(AppDomain::CurrentDomain->ActivationContext); versionLabel->Text += asi->ApplicationId->Version ; That makes the program crashing. An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll Additional information: Value cannot be null. So what should I do Thanks. It returns the file version, sure you don't want that If you want the assembly version, use the Assembly.GetName().Version property. For example: using System.R ...Show All

  • SQL Server Chaging the Min and Max Scale of a Chart at run time

    I have a stored procedure which will bring me back the Min, Max and Mean of different result sets. What I want to do with the Y-Axis is set the Min scale value of the chart to be Min -%5 and the Max scale value to be Max + 5%. Is there a way to change the Y-Axis values at report run time without spitting my own RDL That's great Robert but it's not apparent seeing that it doesn't follow the usual standard of having the combo box with the <expression> as a selection. Worked for me though and I thank you. ...Show All

  • Visual Studio 2008 (Pre-release) MediaElement/MediaPlayer "Procedure not found" error

    I've just installed the .NET Framework 3.0 and the SDK, but can't get MediaPlayer or MediaElement to work. When I attempt to load a media file the MediaFailed event is fired with the exception "The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)". I've seen references to this problem with earlier versions of the framework, and the solutions seemed to involve switching to Windows Media Player 10 or 11, but I've tried with both versions and the problem occurs with both. Does anyone have any suggestions (I'm running XP Professional SP2, if it's relevant.) Thnaks for any help. Chris Jobson Yes, that's similar enough. What's the date of evr.dll and dxva2.dl ...Show All

  • Windows Forms retrieving data from a data grid field

    I have an application where I am loading a data grid from a view. I then want to be able to query a field (or row) that a user clicked on and determine either the row that was clicked on or the field. The idea being is that the record key is in the first column. I then want to return the value of the first field that is on the record that was clicked regardless of which field is clicked on for that row. I then want to return the value of the key field to another field on the form. I will then call another program and pass it the field returned from the data grid. Can any one give me some sample code on how to return this value of the first field Any help would be greatly appreciated. Thanks! - Eric- ...Show All

  • Visual Studio Printing multiple reports

    Hello All, I want to fire reports based on the series of order numbers. I know i can use reportselectionformula to fire report on a single order number but how do i handle this if there is a requirement to print 50 order numbers at one time, i.e., 50 order numbers are passed as arguments and all the order numbers should be ready to print. Thanks in advance. Hi I cant make out if you want to create 1 report with many order numbers on it or a seperate report for each order number. If you want to have 1 report that lists all the chosen order numbers you can do it by using an "Order Number" parameter and then passing multiple values, ie the order numbers, to that parameter. (If the order n ...Show All

  • Visual Studio 2008 (Pre-release) .NET 2.0 client code to WCF service

    Did any one experiment with .NET 2.0/1.1 client code (no WSE) that interoperates with WCF service I am interested in the client code in this scenario given that WCF has policy enabled security. Also can WCF security completely turned off so that the sevice looks similar to asp.net 2.0/1.1 web service in terms of WSDL (and during runtime also) The objective is to call the WCF service from unmanaged windows code (and later from other platforms) with/without tools. Thanks. Thanks for the reply. I looked at this sample. The sample itself works fine. So I created my own WCF service and used vs.net 2005 add web reference feature to add web service client. The client call simply timed out. When I looked at the differences between sample ...Show All

  • Visual Basic reading from an xls file (into VB) without using Excel

    Hi everyone, I've written a program in VB which accesses data from an xls file. Right now I open excel, and then hide it (so it is invisable to the user) to read the data from the file. Then I have a close button on my program which the user can click and as the program exits, it also closes excel. I have removed the "x" from the taskbar on my program, but I still run into problems if the user uses ctrl+alt+del. I am sure this is probably the worst way to read from this file, but it does get the job done... although very buggy and error prone. I was wondering if someone could inform me of a way to read in this data in a more efficient manner. Possibly even if the user doesn't have excel installed on their computer I am no ...Show All

  • Visual Basic Focus on a certain part of a webpage!?! How to?

    So, There is this game called runescape, that is browser based and the game is made from java, and i need my webbrowser in my program to focus on just the game, and not the stuff above it. go to runescape.com and click existing player, and then click any world and then i just need my webbrowser to focus only on the game and not the little bar above it and stuff. What are you trying to do Do you want to load the JAVA applet into your program or remove the adverts May I bring to your attentions both ways break the TOS, and a JS will redirect to runescape.com if the URL does not match runescape's base. ...Show All

  • Visual Studio Team System FxCop cannot load my assembly

    I'm using VS2005 (not Team System) and FxCop 1.35. I work on a project that builds a single-file assembly and want to add a post build event that checks that assembly. If I write this in the post build event: "$(SolutionDir)..\Tools\FxCop\FxCopCmd.exe" /p:$(ProjectDir)MyProjectFile.FxCop /f:$(TargetPath) /c I'll get Project : error CA0055: * Could not load file: 'MyAssemblyDir\MyAssembly.dll'. If I copy the assembly first and run FxCop on the copy like this: copy $(TargetPath) $(TargetDir)MyCopyOf$(SolutionFileName) "$(SolutionDir)..\Tools\FxCop\FxCopCmd.exe" /p:$(ProjectDir)Bits.FxCop /f:$(TargetDir)MyCopyOf$(SolutionFileName) /c it all works fine. Thus, it appears that VS holds on to the assembly somehow. If you wond ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problems with UNICODE.

    Hi all Im using Visual C++ 2005 Express Edition.. Im trying to make a little game and when i was first doing it i was using the MULTIBYTE character set.. and i could display numbers for ( FPS , SCORE , ..ect ) using the DirectX 9 DrawFont and it worked fine.. Then i wanted to add some sounds to my game and i had to change the Character Set to UNICODE.. for the directx helper files DXUT, DXUTsound, ect... and now i can't display any numbers, I was wondering how to display numbers (int , float ..ect).. I have tryed converting the number into the LPCWSTR but i can't work it out being a newbie to C++ and DirectX SDK or if there is some way to use the MULTIBYTE char set and still have sounds in my game... this is ...Show All

  • Visual Studio Tool for code profiling

    We are about to buy a Visual Studio Team System for Testers. Unfornutaley we had to trade-off "tests" against "code-profiling". But, we do need a code profiling tool, if possible integrated to VS2005. Does anyone recommend any Thanks Raul. I wrote an article on Code Project called "Creating a Custom .Net Profiler" that might help. It doesn't require VSIP, just the SDK. http://www.codeproject.com/useritems/dotnetprofiler.asp ...Show All

  • Visual Basic Any easy way to print a "large" form?

    I've got a VB application that has a number of 1280x1024 forms. I'd like to be able to implement a "print screen" function. I tried the PrintForm Power Pack, (Form.Print), but I only get about 80% of the form, so the form must be too big for a single page (other threads say this is all PrintForm can handle). If I capture the form (via Print Screen), and suck it into Paint, it also is 2 pages, but there is a print option to scale it to 1 page, which worked. So, is there any simple way to make this work And, no, the printer won't take 11x17 paper! thanks...   Hi,  I was going to suggest the PrintScreen & MS_Paint method so if you find a way to automate those actions then let m ...Show All

  • Visual FoxPro Organizing project files

    I'm trying to clean up unused files. Over the years my.pjt has piled up about 400/800 files of all sorts (.prg, .scx, .vcx, .mnx, .bak, .ini, .xml, .vbr, .err, .dbf, .fpt., .txt, etc.): located in 10 directories ... which is just cluttering up those directories. Is there any suggestable (lazy) way to re-organize and/or clean up (discard old unused files) or copy out only the my.pjt vital files (other than excluded report files, help files, and picture files). Thanks in advance, Thanks again, David, for your thoughtful feedback, That'll seem to help keep My.Pjt clean before dissecting out obsolete files; I'll have to test it though for 'included' vs. 'excluded' files and such. Thanks again for your invaluable feedback. ...Show All

  • Windows Forms Custom/Nested List box

    Hello all, Im sort of new to Visual C#, been programming with Java mainly, anyways, I didnt see this posted anywhere in the forums, so here goes ... My objective is to have a list sort of like this : First ----- Mid-1 Mid Mid+1 ----- Last Where all the text stands for position, so First and Last shld be the First and Last values of the list respectively, and middle will be the middle value. Basically all these are for the pointers. By default, the list should first appear as above. In the middle between the dashes, there should be a scroll bar unless it happens as below : First First 2 ------ 3 Last-3 4 Last-2 ----- Last-1 Last Last Well in code langu ...Show All

  • Visual Basic Picture in a Picturebox

    Hi, Somebody knows how to shrinks a Picture and display it in a Picturebox without stretching it, keeping the same look. Me . PictureBox1 . SizeMode = PictureBoxSizeMode . AutoSize ...Show All

©2008 Software Development Network