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

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

LGuy

Member List

Christie Myburgh
David Mc Quillan
threehappypenguins
Moahmad
syhzaidi
nicromi
Matthew_D
FcoLomas
monchhib
dhoops
141695
lawrenceDeC
Boulderdude
Mortsdeh
seco
Matt Stum
Can-Ann
Andreas Haug
Zoiner Tejada
S_A_S
Only Title

LGuy's Q&A profile

  • Visual Studio Express Editions data validation of numeric fields

    I'm new to c#, testing it out on a program I was developing years ago in vb for dos!!. Currently stuck on the best way of parsing/validating a form with a dozen or so textboxes. Each box is to contain a floating point number. Do I have to repeat the try/catch validation routine for each textbox - or is there a general purpose string to number conversion that does not throw exceptions on bad data entry I do not seem able to arrive at a solution that does not require me to write more or less the same 5 or six lines of validation code for each box. Is that enough info. to get the idea of my problem Best wishes, and thanks, Ray looking at it, the button at top right shows 'unmark as answer ...Show All

  • SQL Server Question about Font size

    I'm trying to set my font to any size smaller than 8. Is that possible I am trying to use portrait orientation instead of landscape but I can't fit everything on one page using portrait orientation with 8 point font. Thanks! Its not that I received an error, it's that I can't figure out how to do it. While I am constructing the report in layout view, the smallest font size available is 8. If I change the font to a 6, it reverts right back to 8. How can I set the font size in layout view to smaller than 8 Thanks! ...Show All

  • Visual Studio 2008 (Pre-release) Sample code / Demo projects

    Hi Due to the abscence of the Sync Designer, it will help immensely if you can post either or all of the following: Documentation for Microsoft.Synchronization.Data.Client, Microsoft.Synchronization.Data.Server and Microsoft.Synchronization.Data.dll Sample code : Any demo projects Regards, Kk Hi Kamalkanth, Thanks for you interest in trying out Sync Services for ADO.NET. I am looking forward for your feedback! We are working on documentation and sample code as we speak. I would expect to see it out in the next week of February. For now, I will post one or more sample projects to get you started with the sync framework. Please stay tuned. Thanks, Rafik ...Show All

  • Windows Forms How to set a C # form never be focused?

    Hello all, Here comes a C# Form focus controlling question. I write a C# program that only contains a form and will attach to a general process when I execute it, (e.g.: Notepad.exe) Now, the C# form can display successfully without stealing the focus from the Notepad process, i.e. show-no-activate, by using [DllImport( "user32.dll" ) ] and call the SetWindowPos as follows: {{{ SetWindowPos( handle, (IntPtr) HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW ); form.Visible = true; }}} My planned next step is to prevent the C# form from getting the focus when I click on it. That is, it is hoped that the focus should be always on the attached application such as Notepad. Does anyone know how to do ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using XNA Framework on Console App Template?

    Hi, I'm new to Visual C# (switching from Java). I came across a problem when I was trying to add the XNA framework into a console application. First thing I did was added these references to my references in the solution explorer: Microsoft.Xna.Framework Microsoft.Xna.Framework.Content.Pipeline Microsoft.Xna.Framework.Game Afterwards, I created another class which inherits Microsoft.Xna.Framework.Game, and included all the 'using' statements for the XNA framework. But when I added an image (.bmp) to my project, the properties of the image did not have the 'XNA Framework' category (which includes Asset Name, Content Importer, Content Processor, etc..). Here's an image to show the two different properties I'm getting with the two different ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 2D Doom/Wolfenstein 3D Ray Casting, how can it be done in C#?

    I searched on here for anything about this and all I've come up with is information for 3D examples, now I don't want to try my hand at a 3D FPS but wanted to experiment with the old 2D Raycasting technique, are there any tutorials or information for simple raycasting math in C# Paradoxically, I think you'll find the easiest way of making a Wolfenstein style game these days is just to use regular 3D meshes with textured polygons, and just not include any slopes in your floors or ever tilt the camera! Modern hardware (and the XNA libraries) do a ton of stuff to make rendering 3D meshes easy, so if you build a level in a modelling tool, you can render it really quite easily to the screen. Doin ...Show All

  • Visual J# Populating a forms ListBox from another thread

    I'm developing a Chat Client and need to populate the ListBox on the interface form from another thread. How can I go about doing this I've tried playing with delegation but it doesn't seem to work, I continue to get the "Cross-thread operation not valid: Control 'whosOnlineList' accessed from a thread other than the thread it was created on." (Where whosOnlineList is the ListBox.) public class Client { protected delegate void addListBoxItem(Object item); public addListBoxItem addWhosOnlineItem; private void _addWhosOnlineItem(Object item) { gif.whosOnlineList.get_Items().Add(item); } public void run() { addWhosOnlineItem = new addListBoxItem(this, "_addWhosOnlineItem"); public class Receiever { p ...Show All

  • SQL Server Performance in SSIS

    Hi: I've written new SSIS packages to do what DTS packages did and the performance I'd say is about 20 times slower. In this package, I have a loop that loops through different servers based on server entries in a SQL database. Each loop pumps 10 tables. The source query is set by a variable and the destination table is set also by a variable, since all this data goes to the same tables on the SQL server and the definitions are all the same on the source server (Sybase). It's still going and has taken about 12 hours to pull roughly 5 million records. The source query ends up being: SELECT *, 'ServerName' FROM SourceTable1 WHERE Date >= Date The 'ServerName' , the "sourcetable1" and the "Date" are all set ...Show All

  • Visual Studio Express Editions cannot convert from string to integer

    I am having some difficulty with my code. When I run the program, the Sub tells me the values(ie: RECash2,3,4,&5) are "". Only RECash1 is "0". When I change the values during debugging and continue, the program runs fine. My problem is that I cannot get the values to save after changing them, or to change them before running the program. Any help would be appreciated. The code I have is: RECash1.Text = "0" RECash2.Text = "0" RECash3.Text = "0" RECash4.Text = "0" RECash5.Text = "0" RECash6.Text = "0" RECash7.Text = "0" RECash8.Text = "0" RECash9.Text = "0" RECash10.Text = " ...Show All

  • Software Development for Windows Vista Error msgs from AppVerifier log after run the application in TestCase31.

    < xml version="1.0" encoding="UTF-8" standalone="no" > - <avrf:logfile xmlns:avrf="Application Verifier"> - <avrf:logSession TimeStarted="2007-02-15 : 16:28:56" PID="3560" Version="2"> - <avrf:logEntry Time="2007-02-15 : 16:28:56" LayerName="Heaps" StopCode="0x13" Severity="Error"> <avrf:message>First chance access violation for current stack trace.</avrf:message> <avrf:parameter1>42df000 - Invalid address causing the exception.</avrf:parameter1> <avrf:parameter2>75c08635 - Code address executing the invalid access.</avrf:parameter2> <avrf:parameter3>12d568 - Exc ...Show All

  • Visual Basic Pulling User name and info From Active Directory using LDAP in VB.net 2005

    Hello, I am sorry I do not have functional code to post but I hope you can understand my request enought to give me a hand. NEEDS: 1> take a request... ie. First name, Last name, or login ID and Search AD Path can be hard coded so entire forest is not searched. 2> List all entries found 3>once the correct user is selected I need to pull First, last, middle name and , Email , Phone number , @ and GUID for that user. Thank you very very much in advance. Marcelo It compiles and runs fine for me, with the exception of the extra curly brace in the console.writeline command. Make sure you're referencing the System.DirectoryServices assembly, and have an Imports System.Direc ...Show All

  • Visual Basic Textbox Dataformat

    Hi, I am trying to setup the data format optionsto use for values in Textbox. How can i do it I remember using some option which when you click on the e llipsis button ( ... ) in the Format tab of the Textbox Properties dialog box. This property appreaded in the Misc Section. Any suggestions I could locate only a similar option in Report Designer Thanks Well, this will do the trick but the standard textbox wont. You may have used a 3rd party custom control to achieve it in the past - only you would know. There are numerous suppliers of controls which may serve your purpose. Infragistics, Component One are two good sources. But these will cost you. If I'd spent money on a piece of ...Show All

  • Visual C++ CRichEditCtrl Problem

    Hi, This is done in VC++ MFC I have created a vector vector<CRichEditCtrl*>RichEditBox; CRichEditCtrl *r1 = new CRichEditCtrl; r1->Create(WS_CHILD|WS_VISIBLE|ES_AUTOVSCROLL, CRect(x1,y1,x2,y2), p, 1); r1->SetEventMask(ENM_CHANGE | ENM_SELCHANGE ); RichEditBox.push_back(r1); With the above code I get n cricheditboxes on a window . How do I navigate within these boxes using Up Down Arrow Keys Pritha Oh thanks for your reply . Please don't say sorry .I am the trouble maker. Can you tell ,how to call the KeyPress message and it will be called in the View Class, is it Thanks Bye ...Show All

  • Visual Basic Obtain MAC Address

    How can my application to obtain the MAC adress of the PC in wich is installed Como puede mi aplicacion obtener la direccion MAC de la PC en la que esta instalada Thanks! Gracias! On Error Resume Next Const wbemFlagReturnImmediately = &h10 Const wbemFlagForwardOnly = &h20 arrComputers = Array("localhost") For Each strComputer In arrComputers WScript.Echo WScript.Echo "==========================================" WScript.Echo "Computer: " & strComputer WScript.Echo "==========================================" Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * F ...Show All

  • SQL Server Your upgrade is blocked because of cross-language compatibility rules

    I am getting this error when I am installing sql server 2005 express. My pc has net framework 2.0 installed. XP SP2. Jose. We don't support ugrading from one language installation to a different language, so I'd guess that's what you're trying to do based on the error. Be sure that the upgrade you are applying is the same language as the installation you're upgrading. Mike ...Show All

©2008 Software Development Network