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

Software Development Network >> mcrisf's Q&A profile

mcrisf

Member List

jbhatia
edburdo
canadian_coder
mario gutierrez
bsam
GS80
Deza
Reid Williams
Japu
Grahame Edwards
Kevdu
TRTwiggy
ZychoFlow
BobN77
AvenueStuart
Abhishek.itb
dmyers
Drumedor
David Boone220659
GlenAtMotorola
Only Title

mcrisf's Q&A profile

  • Windows Live Developer Forums Website development

    Hi there I have been reading up a bit on website development and have been interested in finding out how it works when a site is interactive i.e. asking questions and providing answers to the questions. In particular, and as an example, if I write a simple engineering programme (in for instance visual basic) to calculate the headloss in a pipe, and I offer this programme on the web, how can I obtain input from the person wanting to use the programme (eg the lenght and diameter of the pipe) and then upon receipt of the information, carry out the calculation with the visual basic programme, and giving back the answer to the internet user. Many thanks Cheers Astericks Hi Astericks, You need to ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Poor XNA performance or my poor code... or normal?

    I've have created a simple scene that renders 8000 identical cubes. I know thats a lot of cubes, but I only get 4 FPS on a 2.0ghz dual core with a 7300 mobile graphics card at 640x480 with simply vertex shading and one directional light. This pc can run doom3 at 60FPS at that resolution and a program i wrote in MDX that draws about 1000 detailed spheres with specular lighting runs at over 100FPS Here is the code I'm using: using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace WindowsGame1 { public class Game1 : Mic ...Show All

  • SQL Server DBCC checkdb might soon be very very helpful to me. MAYBE hardware problems

    Hey guys. I've a question for you. I don't know where to start for the question but we have a SAN with 2 nodes and an active\active cluster built on it with SQL 2005 ent edition installed. I've started running DBCC checkdb(db1,noindex) recently and am doing it every week. My question is this. I DON'T TRUST MY HARDWARE. I very often used to get the message that 'The operating system returned error 21(The device is not ready.) to SQL Server during a read at offset 0x00000b75e74000 in file 't:\MSSQL\Data\file1Index.ndf'. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a fu ...Show All

  • Visual C# [otp] Application and HTTP server communication [newbie]

    I would like to create an automatic updater for my application. I wish to adopt WWW server to accomplished it. Here is my scenario: 1. Application opens an URL  for example  checkupdates.com/check.aspx id=ppp&pwd=ppp Here is check.aspx.cs which simply checks id and pwd correctness and responds with file that contains update info:             string id = Request.Params["id"];             string pwd = Request.Params["pwd"];             string app = Request.Params["app"];             if (id == "ppp" && pwd == "ppp")       &n ...Show All

  • Visual Basic TextBox Input Validation

    Greetings: I'm trying to get a textbox to only accept the input of numbers, ".", and the back key. I modeled this on the example in the MSDN help files, which is close to what I want and works just fine, but this tweak doesn't work. No input is accepted. The debugger will display that e.KeyCode is "NumPad5{101}", for example, but the debugger slides right over the first Case where I'd expect it to be accepted. Any other key gets the same result. What's missing here Private Sub txtExp_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) _ Handles txtExp.KeyDown Select Case e.KeyCode Case e.KeyCode >= Keys.NumPad0 And e.KeyCode <= Keys.NumPad9 ...Show All

  • Visual Studio Express Editions Period and Dash

    How will I allow Period and Dash is this code For example if the name is Mark K. Smith-Hensonn this code does not allow . and - Private Sub NAMETextbox_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles FirstNAMETextbox.KeyPress, LastNAMETextbox.KeyPress, MiddleNAMETextbox.KeyPress Dim KeyAscii As Short = Asc(eventArgs.KeyChar) 'Allow only alpha to be entered If Not (Char.IsLetter(eventArgs.KeyChar) Or Char.IsControl(eventArgs.KeyChar) Or (eventArgs.KeyChar = Chr(Keys.Space))) Then eventArgs.Handled = True End If If KeyAscii = 13 Then 'System.Windows.Forms.SendKeys.Send("{tab}") KeyAscii = 0 End If End Sub ...Show All

  • Visual C# error when binding a property of custom business entity to form control

    When I define my class like: public class ProductEntity { private int productID; // Public properties, to expose the state of the entity public int ProductID { get { return productID; } set { productID = value; } } ...... then to bind the ProductID to my textbox.Text in a form I do: textBox1.DataBindings.Add("Text", myProductObject, "ProductID"); But I get error: Object reference not set to an instyance of an object . But When I initialize the value of productID like in private int productID=0; that fixes the problem My question: I don t see why I should initialize that value. Is there a way not to get the error without initializing productID . and what s a good practice ...Show All

  • Windows Forms strange behavior after using “Configure Dataset with Wizard”

    I’ve been having strange behavior with a Windows Forms project after using the “Configure Dataset with Wizard” in the Data Sources tab in VS2005. It’s hard to describe the problem because the resulting behavior of the environment is inconsistent. Sometimes recompiling fixes it. Sometimes I have to restart the IDE. Once after running it the dataset was updated and could be found in the Solution Explorer but the revised datasource was completely missing. There are a lot of other weird things that would take a lot of typing to describe, but I’ll save that for later if necessary. I’m thinking my project or solution may be corrupt, and that starting a new solution and project from scratch might make the problems go aw ...Show All

  • Internet Explorer Development opening new tab in IE7 via IHTMLWindow2::open method. Possible?

    hi i need to open new tab in IE7 from my extension code and to get an IHTMLWindow2*, pointing to this tab. Exactly tab, not a new window. Is it possible to do it via IHTMLWindow2::open method or are where any other ways to do it from extension I walked through some docs and forums and heard opinions that a place(new window or tab) in which IE7 opens pop-ups (as ones created by IHTMLWindow2::open) is controlled by user settings and extension can't change it Can't anyone tell is it so So sad if it is.... Than you in advance. IEIsProtectedModeProcess API should help you http://msdn.microsoft.com/library/default.asp url=/workshop/security/protmode/reference/functions/IEIsProtectedModeProcess.asp ...Show All

  • Internet Explorer Development Object tag (when using UserControls) in IE7

    Hi! I've installed IE7, and i can't use .NET usercontrols (windows control). For example: <object id='...' classid='http://localhost/blablabla.dll#blablabla.bla' .... ></object> In IE6 all was ok, control was displayed, but now nothing loads.. What is wrong try this in javascript: document.write('<OBJECT id="osControl" height="88" width="440" classid="/web/Control.dll#Control.Sales.SalesForQuarter" name="os" VIEWASTEXT></OBJECT>') I have this in my page and it works in IE6 and IE6 ...Show All

  • Visual C++ Couple of Errors

    I hope that for once that Microsoft may release something that isn't riddles with bugs, but it seems that will never happen... Now, onto errors... - Error "Object Required". Here's what I did. Using an MFC App project, I renamed the dialog IDD_OPTIONS to IDD_OPTIONS2 and renamed the class it was associated with COptionsDlg to COptionsDlg2. I created a new dialog, copied the IDD_OPTIONS contents to new dialog template. Renamed new template to IDD_OPTIONS. Got an error saying IDD_OPTIONS2 was already in use. Opened resource.h file and deleted IDD_OPTIONS define. Tried again and it works. Now try to assign it a class, COptionsDlg. I get an error saying "Object Required." - Unresolved symbol. I was simply building a project ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Lost in the Language

    Hi, Just purchased a forcefeedback gamepad. Just successfully installed August version of DirectXSDK. Have latest version of VB.Net 2005 installed. Desire code sample to programatically trigger feedback mechanism. I am only able to find VB sample code in DirectX8, I tried those, but it does not seem to recognise DirectX8 object types; I believe I have the correct project references added. I am lost in the differences between the versions of DirectX. Can anyone Help Cheers, Pete Assuming your game pad is X-box 360 compatible, then I would do a search through the documentation for "XInput" which is the new API to control game pads. If it's not 360 compatible, you have to use the old DirectInput API, which is rather cum ...Show All

  • Windows Forms ListView BeforeSelect Select Event

    Yeah, I know there is no such event :) TreeView.BeforeSelect event allows to cancel selection of different node, my question is: Is there a graceful way to implement something like this for ListView control. One use would be lets say in outlook style application. We have TreeView on the left, ListView on the top and some sort of textarea on the bottom. user selects the message using tree/listview controls and edits it in textarea, and then hits different item in list view. I'd like to be able to show him a dialog Wanna Save (yes/no/cancel) and if he hits cancel don't change the selected item in listview. But i dont think this is possible with current control. Anyway, i'd apreciate any suggestions Thanks ...Show All

  • Windows Forms UICues and how to use them.

    This is a question that is related to a question I asked earlier about how to make sure a listbox shows me what item currenly has focus without changing the highlight. I have narrowed this down to making sure that the ShowFocusCues and ShowKeyboardCues is turned on, but I have overriden those properties in a control I am using and it has no affect. Is there a way for me to force the UICues on a form into a certain mode Yet more info uncovered. I changed the way the project works. What I did was add two buttons, one for each listbox, that when pressed changes the focus to its associated listbox. After messing with that and not being able to get the ShowFocusCues to be true without pressing tab I decided to handle the ChangeUICues ...Show All

  • Visual Studio report viewer

    report viewer will not print the first time user clicks the print icon, however the second time it prints. This is consistent on five different computers with locally attached printers. barchard wrote: that did it ... thanks so much.... do you have any idea as to directly print a report without the preview Try this (I never tryed myself didn't have the need) http://msdn2.microsoft.com/en-us/library/ms252091(VS.80).aspx Best regards. dp ...Show All

©2008 Software Development Network