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

Software Development Network >> Ashok Ojha's Q&A profile

Ashok Ojha

Member List

dummies
Rodolfo Navarro
Tinamus
JLLO
EnigMa_AnGeL
c_shah
SGraham1985
kinpin9
Neotech
allpdoff
Mandip
FASimus
Seth Livingston
ALeal
duck16
ColouredFunk
stronc
Peterlih
Marco Minerva
CSharpShooter
Only Title

Ashok Ojha's Q&A profile

  • Visual Studio Express Editions Always Round Up in Visual Studio 2005

    Okay Ive gone threw the forums many times and I have yet to find a clear beginner answer. I would like something that has any number that has a decimal to round up..no matter what the number/decimal is. Sorry if I sound rude Im just a little bit annoyed and not being unable to understand a lot of this. Okay I dont think you are getting the point. Here is an example of my coding...its a calculator for an MMORPG and the amount of in this case tree you have to cut doesnt always come to a normal number. I would like something for all the labels with the lbl in front to be rounded up when button 1 is clicked. These numbers arent always the same so i don't think something like wont work Dim X A ...Show All

  • Visual Studio Marking files as updated?

    I am using SourceSafe and VS2005 to make updates to a test server. Is there any way to mark which files have been recently updated to others, so they can see which files are changed and upload them to the live server There is an option to set the filesystem date to the time of the last checkin. In VSS Explorer, look under Tools -> Options -> Local Files. ...Show All

  • Visual Basic How to stop vs 2005 publishing vssver2.scc!

    How does one stop vs 2005 publishing the hidden system file vssver2.scc! Is this just broken, or is there a work around to stop vs 2005 spublishing this unwanted file.. Thanks. The problem appears to eb that vss 2005 is creating this file as a system hideen file ( which vss file MUST NOT BE).. As a result it cannot be excluded from vs 2005 publish list.. Also vss 6.0d did not create vssver.scc files within \bin... They just need to work together.. ...Show All

  • Silverlight (formerly WPF/E) An online Mac Os Tiger build with wpf/e!

    http://www.mystart.co.jp/ It's my demo wpf/e site. just for training wpf/e project ui. If you have any suggest, you can input it in this site's chat room. Thanks everybody. I love wpf/e! This is a good piece of work! Lots of JS to look at and learn from... thanks for posting it, and let us (or me) know when you post other things! I've blogged about your app. -Dave ...Show All

  • Visual C# Want to sort strings in a collection array, any idea???

    Hi, I am a beginner in C# and want to sort the strings in a collection array. Can you please give me which collection array class one will fit with my requirement Thanks, vcboy The generic Array.Sort is great. using Pair = KeyValuePair<string, MyCustomObject>; class Program { // Compares two Pairs public static int Compare( Pair lhs, Pair rhs ) { return lhs.Key.CompareTo( rhs.Key ); } static void Main( string[] args ) { Pair[] array = new Pair[10]; // ... // Add your pairs here // ... // Uses the named delegate to do the comparison System.Array.Sort( array, Compare ); // Uses anonymous delegate to do the comparison. System.Array.Sort( array ...Show All

  • Visual C# RegAsm cannot find dependent library when registering a DLL

    First, I must admit I have little knowledge about to assemble and install a DLL, but thanks to Visual C# Express, I was able to do some damage. The class library works just fine in the IDE, integrated into a chat program as a plug in, but when I tried to create an installer for it, it croaks on a call to regasm. regasm myplugin.dll error: RegAsm : error RA0000 : Could not load file or assembly 'Interop.OtherLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified This 'Other.dll' is used by my dll to hook into the chat program and it resides in a folder under the chat program that's not on the system path. So, I've tried to put the Other.dll into a folder tha ...Show All

  • Visual Studio Team System Security Templates

    Hi The default group "Contributors" that is created is almost perfect for our needs when setting privileges for our developers. However, we do no want them to be able to edit the files in the TeamBuildTypes folder, since those files are for our build team only. It turns out however that I cannot remove the privileges for the Contributors group set on that folder. I do not wish to use an explicit deny on them if that can possibly be avoided since a person can be a member of both dev team and build team and an explicit deny overrules all other persmissions. So, basically, what is my best option here Since mimicking all the privileges manually will take an enormous time for each new team project I would be happy if there ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Pulling Data from ContentManager

    I've got a question on why to use the content manager. Say I have loaded a texture into the content manager - paddle = content.Load< Texture2D >( @"Graphics\paddle" ) as Texture2D ; If I want to access the data from the content manager, would I have to put something like this - sprites.Draw(content.Load< Texture2D >( "Graphics\\paddle" ), new Vector2 ( this .paddle1.Point.X, this .paddle1.Point.Y), Color .White); Or is there an easier way then that Cause if I have made a texture variable, then loaded it into the content manager, why couldnt I just call the variable directly like this - sprites.Draw( this .paddle, new Vector2 ( this .paddle1.Point.X, this .paddle1.Point. ...Show All

  • Visual Studio Express Editions Tried Everything, apart from what's needed.

    I want the picturebox (pbCrop) to show and be the same size as the selected image, I've tried everything I can think of but none of the solutions that I come up with work. The code is below, at the moment pbCrop is the same size as pbResize and is blank apart from the selected area. I did manage to get pbCrop to the same size as the selected area but the selected area was out of site. Dim b As New Bitmap(pbResize.Width, pbResize.Height) Dim g As Graphics = Graphics.FromImage(b) Dim z As New System.Drawing.Drawing2D.GraphicsPath If radEllipse.Checked = True Then z.AddEllipse(cropX, cropY, cropWidth, cropHeight) g.SetClip(z) Else z.AddRectangle( New Rectangle(cr ...Show All

  • Software Development for Windows Vista Can't download .NET Framework 3.0 June CTP SDK

    When I try to download it, it reports : The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. bump. Same problem here. Now the Windows SDK page (http://msdn.microsoft.com/windowsvista/downloads/docs/windowssdk/default.aspx) cutely says "hello" below the download link. Come on people... ...Show All

  • Visual Studio Express Editions I can't install!

    This is the error: Error 32003.File 'C:\Program Files\Microsoft Visual Studio 8\Common 7\Tools\vsvars32.bat' could not be opened for write. It won't install! Can anyone help The second guess I make would be that you are running antivirus/spyware/malware software that scans files as they are created. This would temporarily lock the file and the actual installation might get problems writing to certain files like bat files (as they are considered to be executable). If you are running that kind of software you might want to disable it during the install. ...Show All

  • Visual Studio Team System Create a new filter in reports

    New bee in creating reports ! I need to add a new filter called Issue Type to all existing reports. How do I do this Thanks Srikanth Hi Srikanth, Were you able to figure this out If not, try looking at this msdn doc about adding a parameter to a report: http://msdn2.microsoft.com/en-us/library/aa337432.aspx basically what you'll need to do is add the parameter to the report, and then also modify the query for the dataset for that report. mauli ...Show All

  • SQL Server OpenRowset to SSAS

    Hi, I am trying to execute the following command SELECT a .* FROM OPENROWSET ( 'MSOLAP' , 'DATASOURCE=mpdata; Initial Catalog=[OLAP - Retail Wholesale];' , 'select [Measures].[Nett Sales Value] on columns, Relative Week Dimension].[RelativeWeek].[Relative Week]on rows from [Retail Summary OLAP]' ) as a This generates the following error OLE DB provider "MSOLAP" for linked server "(null)" returned message "Cannot connect to the server 'mpdata'. The server is either not started or too busy.". Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "MSOLAP" for linked server "(null)". Any advice on what to do ...Show All

  • SQL Server SOULUTION The parameter is incorrect. (Microsoft OLE DB Provider for Visual FoxPro) after SP1

    Having installed SP1, my SSIS packages using the OLE-DB Provider for Visual Foxpro no longer work. Using the latest version obtained from here: http://www.microsoft.com/downloads/details.aspx FamilyId=E1A87D8F-2D58-491F-A0FA-95A3289C5FD4&displaylang=en When attempting to create one SSIS from scratch, the message thrown is: "The parameter is incorrect. (Microsoft OLE DB Provider for Visual FoxPro)." The radio button option of "Copy data from one or more tables or views" and then selecting the "Next >" throw the error. It has to be the SP1 causing the problem because nothing else changed on the Server and everything was working fine prior to this. Microsoft, any feedback on this ...Show All

  • Visual C# Validating a Form opened with ShowDialog()

    Hi, I’m using a Form in the Dialog mode “frmIP.ShowDialog()” & I’m trying to validate the input so as not to be able to click OK button unless there is a string in one of the text boxes. (it would reset the focus back to the text box & cancel the click event) I have using the Validating event of the textbox I want to validate. Although this works when I move focus to another text box, the buttons do not trigger the Validating event when I move to them. The buttons & Form are both set to ‘Causes Validation = true’; As a test, I tried a Message box but this simply gets called then the dialog box closes. How can I validate a textbox which is on a form opened with the ShowDialog() method. Any ideas would be ...Show All

©2008 Software Development Network