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

Software Development Network >> T. RUIZ's Q&A profile

T. RUIZ

Member List

tody4
glasssd
Cika
Greg_AD
SQL Novice
Alba
raja760
trackdaychamp
Spyrrho
Matt Duffy
simdoc
Gagand
RobLearningVisualBasic
QWERTYtech
DPMevents
Athlon1600
numbatit
bharathi_tunes
Adam Miles
Avhacker
Only Title

T. RUIZ's Q&A profile

  • Visual Studio Express Editions VB.NET

    How do you write a program in VB.Net to write to a text file I am using a console application. This is my  business object called Record: Public Class Record       Private ssnLength As Integer = 13      Private firstNameLength As Integer = 25     Private lastNameLength As Integer = 25         Private ssn As String     Private firstName As String     Private lastName As String       Public Sub New()     End Sub       Public Sub New(ByVal _ssn As String, ByVal _firstName As String, ByV ...Show All

  • Visual Studio Express Editions UserControl Load Event not fired with hosted WebBrowser Control

    I don't know if this issue applies to the .NET Framework itself, or C#, or the IDE. I believe it's the Framework, but since I have only the 2005 Express edition of Visual C#, I can't prove it, hence my post here. I have an issue, which I can reproduce, where if I place a WebBrowser control in a UserControl, add a UserControl.Load event, and then place the UserControl in a Form, the UuserControl's load event will not fire. If I remove the WebBrowser control, or change the order in which the Load event and WebBrowser Control is added to the UserControl, the event fires as expected. To reproduce: 1) Create a new Visual C# Windows Application. You should already have a form, Form1. 2) Add a UserControl. I will refer to it as UserControl1 3) Ad ...Show All

  • .NET Development AccessViolationException with C# Ping class

    I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All

  • .NET Development Serial Port Handshaking Options

    I have been developing an application using the serialport control without handshaking however the hardware specification has now changed to the following; When I want to send data out I set RTS high and can only send when the device sets CTS high. When the device wants to send data it sets DSR high and I set DTR high when I'm ready to receive. 1) What, if any, handshaking should I use 2) If I use handshaking can I just send data out and the serialcontrol will take care of whether it can send the data or not 3)How can I know when the device sets DSR high so I can respond with setting the DTR or again is this handled by the handshaking. cheers, Gareth Thanks. I'm wai ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Dream Build Play Contest Question - Using languages other than C#

    I've managed to use Chrome ( www.remobjects.com ) to create some small XNA demos that use the content from SpaceWars. The rules do not mention whether non C# langauges are allowed to enter the contest. Since there are several .NET 2.0 compatible compilers out there shouldn't this contest allow these entries as well as they can use both the Windows and XBox 360 XNA assemblies. Just to clarify, I have Visual C# Express and Game Studio Express installed on my machine, but am using Chrome via Visual Studion 2005 to write and compile my XNA demos and the plan is to use that combination to write future XNA games and contest entries. Could someone from the XNA contest team please clarify your position on the use of non C# languages for the Dream ...Show All

  • Visual Studio how to reset the record no in the crystal report when the group header change ?

    Hello! i have a complex report here and i need to reset my record number after the group header change like.. ---------------------------------------------------------------- Header Title 1 SubHeader Title 1 No. 1 No. 2 No. 3 No. 4 No. 5 No. n SubHeader Title 2 No. 1 No. 2 No. 3 No. 4 No. 5 No. n SubHeader Title 3 No. 1 No. 2 No. 3 No. 4 No. 5 No. n Header Title 2 SubHeader Title 1 No. 1 No. 2 No. 3 No. 4 No. 5 No. n SubHeader Title 2 No. 1 No. 2 No. 3 No. 4 No. 5 ...Show All

  • Visual Studio Manipulating Crystal Row Data

    I need to manipulate row-level data in a Crystal Report (XI R2) after the report has run in a WinForm. I don't see anything in the Crystal's .Net object model that would allow me to do this. The closest thing I see is an apparently undocumented "Rows" property (a CrystalReportDataView collection) available in the ReportDocument object that allows me to read the data (via a DataRowView property). A set of member functions exist that imply the data is editable, but they seem to have no effect in practice. Does anybody know of a method to directly manipulate this data Preferably a documented way in case they decide to change things down the road Thanks. You should use a dataset to get your data and ...Show All

  • SQL Server After an insert, how do I get the primary key of the new row?

    I am using C# and ADO.NET After executing an INSERT, I would like to retrieve the primary key of the last row inserted. I've tried running SELECT @@IDENTITY in a query, but I get an OleDbException with the message: {"Syntax error. in query expression 'SELECT @@IDENTITY'."}. does anyone know what to do Someone asked me the same thing today and after a couple of hours I've came up with this (the code is in VB but I will try to explain the concept as well as I can): I'll use a sample table from a SQL Server (I work with an SQL 2000 right now). The table is called _FluxModels and has two fields FluxModelID (an identity field) and FluxModel (a varchar (50) field). In order to update the ta ...Show All

  • Windows Forms Windows 98/.Net Framework Problem

    Hi, I have a ClickOnce, VB Express application that is working fine on many clients, except for a client who is stuck in the world of Windows 98. I have uninstalled, rebooted and re-installed .Net Framework 2 several times. The reboots seem clean, but when I attempt to Run the application, the file is downloaded and then Windows asks if I want to Run or Save the file. In either case, Windows attempts to open the file, Prize%20Money[1], but of course there is no application associated for this file. I assume that there is a problem with either Windows 98 or .Net Framework 2, but I don't have clue where to begin. Although, I'd like to tell the client to upgrade his old iron and get Windows XP this is not an option. Thanks for your sugg ...Show All

  • Visual C# Closing a C# App

    Hi, Here is a question that is pretty basic but I have never dealt with this in a C# app. I have something I need to close when the application itself closes. Where/how is the best place to do this Thanks Jeff What I said above still goes, subscribe to one of those two events (FormClosing is recommendation if it is the main form of your app) so that you can do any kind of cleanup you need including closing other forms by calling their Close() method. If this still isn't enough, what is it you need to do when the app is closing down ...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 I am out of ideas but maybe this thread will help you further. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=889624&SiteID=1&mode=1 ...Show All

  • Visual Studio 2008 (Pre-release) Add persisted storage to p2p custom resolver.

    Hi! I'm looking into using WCF p2p channels as a notification mechanism in an enterprise application. I have started looking at the Chat sample. The problem with the custom resolver in this sample is that it maintains the node cache of the mesh in memory, and a restart of the resolver creates new, separate meshes as described here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=635536&SiteID=1 I know that PNRP is an option, but I'm not sure that all machines that we need to run this on supports this technology. I would like to add persistent storage to my custom resolver. I have did some testing deriving from CustomPeerResolverService and overriding members like Register/Update/Unregister. When these get called, you ...Show All

  • Visual C++ Aero Wizards with MFC 8.0

    We tried to convert our Wizard97 style Wizards to the new PSH_AEROWIZARD style. This does not really word, I think because of the different structure size of the header struct in MFC and Vista plattform SDK. Has anyone an idea Is there a workaround for this problem, which could make the wizard word both on Windows XP and Vista Tnaks for your help. I can reproduce the problem you're having as well (crashes on the destroy of the app).  I don't think it's related to structure sizes as it works fine without PSH_AEROWIZARD but still with _WIN32_WINNT defined as 0x0600.  It seems that the technique DoModal uses to change a modal window into modeless (PSH_MODELESS) does not work for Aero wiza ...Show All

  • Visual Studio Team System UI improvement - collapsable code regions

    I use #region...#end region directives in Visal Studio quite alot. I like the ability to hide code so I can concentrate only on what I am working on. It gave me two ideas for data-dude: In a script, hide queries in a script that I'm not currently working on. This is analogous to #region...#end region that I just talked about. Hide parts of a query that I'm not currently working on. I have a great use case for this: If I am using a derived table in a query and I am happy that that derived table is returning what I need then I don't to see that derived table anymore - I only need to see the alias. Similarly if I am using a CTE I don't need to see the body of the CTE, only its name. Comment regions could also be col ...Show All

  • Gadgets How to install a gadget

    I'm trying to pack a gadget into a product installation. After copy my gadget to programfiles/windows sidebar/shared gadgets/ , users can see the gadget in the gadgets panel, but how can i add my gadget to the sidebar automaticly Modify settings.ini I expect the window title is different. You'll have to change the AutoIT script to cater for multiple languages and recompile it. Having said that, I've not tried in on RTM. ...Show All

©2008 Software Development Network