Software Development Network Logo
  • Visual FoxPro
  • .NET Development
  • Visual Basic
  • Windows Live
  • Visual J#
  • Architecture
  • Game Technologies
  • Microsoft ISV
  • Windows Forms
  • Visual C++
  • Visual Studio
  • Visual C#
  • VS Team System
  • SQL Server
  • Smart Device

Software Development Network >> Patrick Strateman's Q&A profile

Patrick Strateman

Member List

RomanAnanyev
GaneshParam
Carlos Quintero MVP
klez
csharpman
Juergen Wenz
Alexander Groß
Sleep-O
Kendrew
Fabio Gouw
nomadicalloy
Darsant
Alun Jones
rkuerbitz
Luiz Papa
noPCtoday
Voldemort
Shrikant24227
Wezlie
Ben Breen
Only Title

Patrick Strateman's Q&A profile

  • .NET Development OutOfMemoryException and Garbage Collection doesn't work how I thought it would

    I designed this code snippet to test garbage collection.  It doesn't do what I thought it would do though.  The idea was to allocate a chunk of memory, but to discard the reference to that chunk by letting the variable that holds the reference fall out of scope.  When it runs out of memory on the heap, I expected the garbage collector to run automatically and that the allocation would succeed.  But there are a couple of w ...Show All

  • Visual C# How to check enum?

    I have an enum public enum ReadMode { All, FromEnd, FromStart } In my code there is possible to call Read(..., ReadMode.FromEnd | ReadMode.FromStart) but inside the method, how can I check what read mode is really specified (multiple modes are accepted) now I use if ((mode & ReadMode.FromEnd) == ReadMode.FromEnd) { } if ((mode & ReadMode.FromStart) == ReadMode.FromStart) { } but result is not as expected. It just wor ...Show All

  • SQL Server SQL CE Push ConnectTimeout

    My application synchronises data with a SQL Server using RDA, the synchronisation process take place in a background worker thread. Due to the single connection limit with SQL CE 2.0 the form thread has to wait until the synchronisation process completes before connecting to the database to perform any updates or inserts. Normally the RDA push method executes quickly and the delay on the form thread is not noticeable. However CPU usage on the S ...Show All

  • Windows Forms passing variables between forms again :)

    I have read about five different threads about passing variables between forms and none of them have made much sense to me or helped me. I know i am very new and green but can't seem to figure it out. So one more time could some one help me in simple terms. Show me how to be able to access data from one form to the next. I am wanting to for example access a string that i have assigned in form1 and use it in form 2. Don't know how to do it. I am ...Show All

  • Windows Forms Make column width autofit to width of grid - can it be done?

    Hi all, I have a question and your help will be greatly appreciated. I have a datagrid (don't we all!) and a three column table as its datasource. I can fix the width of two columns to say 100px but then I would like to create a  ...Show All

  • Visual Studio Express Editions Reading directories

    Using VC# Express, how would I go about reading the contents of a directory What I'm wanting to do is have my application search a directory looking for particular files (for my needs, image files) and display those images in a Form. Thanks in advance, Bill Hi Bill, Directory.GetFiles() should work for you. It has overloaded methods that allow a search pattern and to optionally search subfolders. Check out http://msdn2.microsoft.com ...Show All

  • Visual C++ CHTMLView bug with IE7 beta 2

    I am using Visual Dev 2003 with a CHTMLView derived Class as part of a larger application. The content pages have HTML wrappers with Flash content. It's been working fine with IE 5 & 6, but after installing IE 7 beta 2, I get the equivalent of "cannot display web page" on the first clicking of an internal or external link after timing out. When I return to the previous page and click the link a second time, it works! Anybody else r ...Show All

  • Visual C++ how do I delete this posting?

    I don't see any delete button! I only said that because my posts regarding shell programming keep being deleted, I don't know how you say that in english but je tournais seulement ma mesaventure en humour... didn't mean to make things worse Yacine Benahmed ...Show All

  • Software Development for Windows Vista Dual Boot Vista Beta 1 and CTP 5231

    I have a Windows XP Machine which I added a new 200GB hard drive to so that I could partition it and install Beta 1 on it. I have a detailed explanation of my many problems involved with installing it here: http://startether.com/blogs/startether/default.aspx . But that is not the reason for this post. I want to have a machine where I can boot to CTP 5231, Beta 1, or Windows XP. Before installing CTP 5231, I could start Beta 1 without a problem, ...Show All

  • Windows Forms Bound database edit/save

    I have another stupid question. I am wanting to update entries in a database table. All of the fields are databound and display properly. I have already completed the Add function which is something like: Dim newRow As DataRow newRow = ALTDBDataSet.OwnerInfo.NewRow newRow.Item("OwnerDescription") = OwnerDescriptionComboBox.Text ..... ..... ..... ..... ..... ..... ..... ...Show All

  • Visual C# If statement conversion from VB.NET to C#

    When I convert this If statement from VB: If IsNothing(Session("cart2")) = false Then Session.Add("cart2", localCart) Else Session.Add("cart", localCart) End IF to C#: if ((Session["cart2"] == null) == false) Session.Add("cart2", localCart); else Session.Add("cart", localCart); I get this compiler error: CS1519: Invalid token 'if' in class, struct, or inte ...Show All

  • Visual FoxPro delete record

    this question seems to be ... but I tried many times to do it but I couldn't . I'm using VFP 6.0 . I created a form and take data from mytable . After that I created Del button and wrote a small code in Click event . This is my code : if messagebox("Do you want to del this record ",36,"Notice")=6 delete thisform.refresh and the result is 0 record deleted . I don't know why . Is this related to "primary key" from mytable . If someboby ...Show All

  • Windows Forms Deleting a row from a datagrid. Help urgent!!!

     I have the following two functions. My goal is to highlight a row in a  datagrid and delete a row. Problem arises when I click on the delete button.  Below are two sub routines for DoDelete. Which route should I go with  I have created stored procedure for deleting the row as well.  Any help would be greatful.      Private Sub highLightRow(ByVal sender As Object, ByVal e As MouseEventArgs)   &n ...Show All

  • SQL Server Cannot save Maintenance plan

    I use sa to login to sql 2005. I can save Maintenance plan using wizard. However, when I try to save maintenance plan using the maintenance plan design screen, I received error message "Apply to target server failed for job ...". When I check the job, there is no step in the job. In the Maintenance wizard, there is no maintenance clean up task. I want to create a task to delete my backup file if it is older than certain days. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. GDI+ & Textures again

    I've seen this appear before, but I just want to make sure there's no possible way to accomplish the combo in an efficient manner before I resort to external libraries such as Cairo or AGG. So - can I make the Graphics object draw to an arbitrary memory area where I just supply pixel format, width, stride and height Would it be possible by p/invoking the non-.NET version of GDI The reason is that I'm adding a "processing" (pro ...Show All

©2008 Software Development Network

powered by phorum