Software Development Network Logo
  • Smart Device
  • SQL Server
  • Visual C++
  • Visual Studio
  • VS Express Editions
  • Architecture
  • Visual C#
  • Visual FoxPro
  • Windows Vista
  • Windows Live
  • .NET Development
  • Visual Basic
  • Visual J#
  • VS Team System
  • Windows Forms

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

RodColes

Member List

Doru Roman
allears42
gholmesjr
RluD
CarBENbased
Joe Sutphin
Thiru_
Kynaeus
zaman
ghostwrtrone
pyerwoh
Blair Stark
Pinky Lano
Nazar Ali
NIKKOSTA
S Crichton
Iancu Ilie
Seva Akkerman
lp75
Dale17677
Only Title

RodColes's Q&A profile

  • Visual Basic Reading text from a file

    Hi, I am trying to read a text file and pull out each line from the file in a do...loop procedure. According to the help file, i should use stream reader, however i can't seem to get this to work.  Using this, instead of reading a line and waiting, every time i hover over the variable, it changes, so it seems that is is constantly moving on and on. My text file is just a simple list.... TEST1 TEST2 TEST3 I have corresponding folders created within a subfolder on my C: drive, and what I am trying to achieve is a movedirectory command which will read the first line, and move that folder, move to the next line and move that folder and so o ...Show All

  • Visual C++ How to add an event handler for a toolbar button

    I'm using VC++ 2005 and in my application I have a toolbar with some button inside. The button IDs are not replicated inside a menu. The problem is that I cannot find how to a add a message handler for my buttons (of course I can write the code manually). I see that right-clicking on a menu item I can choose Add event handler but there isn't the same commad when I right-click on a toolbar button. Also, on the message section of the property window of the class (CMainFrm for example) the command messages of the toolbars are not listed. Thanks Select class name in the Class View, click Properties tab. In the ...Show All

  • Windows Forms maintain data knowlege across functions?

    I'm new with VB.net and have hit a wall. I don't know how to implement this. Data binding, MDI, data sets, collections, arrays, etc.  I don't know how to have critical info known across multiple classes, functions, subs, without making everything Public. Can additional parameters be passed in event handles  There's some basic concept I'm missing that I can't find the  ...Show All

  • .NET Development Recieving text data from internet

    My program needs to recieve one text file from internet to wark without mistakes. What is the best way to get text information from internet Mr. Rieck, Could you tell me how to rephrase the second bit of code into VB The part about loading a file into memory is what I'm looking for. Thank you, Bill Langston ...Show All

  • .NET Development multiple readers on one connection

    can any one tell how and if it is to have multiple sqldatareaders open on one connection. we keep on running into this problem........ It is not possible. From MSDN While the SqlDataReader is being used, the associated SqlConnection is busy serving the SqlDataReader , and no other operations can be performed on the SqlConnection other than closing it. This is the case until the Close method of the SqlDataReader is called. For example, you cannot retrieve output parameters until after you call Close . http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.aspx ...Show All

  • .NET Development Hiding/Showing objects in a process_exited

    In the following code I am suspending a thread, hiding a progress bar, and showing a label.  The code works if I remove the label code from this function then my code works, but I don't have any feedback that the process finished.  Why would I not be able to show this label // This is the end of a process I am using private void Process1_Exited ( object sender , EventArgs e ) { //I am suspending a thread so that I can resume it later timerThread . Suspend (); //hiding a progress bar that the timerThread was updating ProgBar . Hide (); //If I remove this if statement this code works if (! lblCompleted . Visible ...Show All

  • Visual C# C# .NET Naming Conventions

    Does anyone know where I can find a list of naming conventions for UI elements.  I found a bunch of places where they have variable, property, method, event handler, formatting style, etc. conventions.  But I am having a hard time finding naming conventions other than the Visual Basic 6.0 Naming Conventions on Microsoft's website. As the programming world is rapidly moving away from hungarian notation, it's easy to state that you should not use it, or any type of prefixed notation. Naming textboxes "txtThisAndThat" or strings "strThatAndThis" is unnecessary, since the IDE can give you the type and ...Show All

  • Visual Basic Catching Exceptions from a Subroutine

    Say you have a Sub that calls a second Sub and an exception occurs in the second Sub, which you catch. Then when the second Sub drops out, execution continues with the next line of the first Sub (i.e. the calling Sub). I'm wondering if there is anyway to let the first Sub know that an exception occurred in the second Sub and allow the first Sub to also drop out instead of continuing. Here is an example in code. You can recreate it by creating a Windows Application and copying the code into the Form1 code. Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Han ...Show All

  • Visual Studio Express Editions assetion faileed

    been using kazaa for long time, windows autamatically upgraded and now assertion failed, tried uninstalling both microsoft visuall c++ studio and kazaa, downloaded express version of c++ visuall studios and redownloaded kazaa. still get same assertion failed. program: c:\program files\kazaa\kazaa.exe, file: esctype.c, line 68, expression: (unsigned)(c+1)<= 256. completely lost in visuall c++ studio, pretty smart but construction worker not computer expert with a lil help i can prob figure it out please help i miss kazza well i tried finding all that assertion stuff but got lost, i tried debuggin kazaa in microsoft visual studios but ...Show All

  • Smart Device Development \Temp directory writing of logs, what happens to files in temp

    Is PPC smart enough to delete the files I'm writing in my C# app to the \temp directory Does it maintain this directory, or must I maintain this directory Any ideas/help on the platform would be appreciated. Thanks! No, you'll have to delete the files yourself - the OS doesn't do any cleanup for you. If you're working with a Windows Mobile 5.0 Pocket PC device you may want to store log files in the directory \Application Data\Volatile. Files stored in this directory do not survive a device reset. After reset or cold boot this directory is empty. Michael ...Show All

  • Windows Forms How did they do that?

    I realize that the code for the Terrarium client will likely never be released, but does anyone have any insight as to how they made the UI look so neat   For example, is there an easy way to make my buttons have that cool style or is that simply a custom control that uses images, events, etc., to make it look that way As you  ...Show All

  • .NET Development When method returns Com Invisible type?

    Hello, What exactly is the behaviour here Marking BarNotForCOM [ComVisible(false)] will result in the ReturnBar() function to be exported as the quivalent of object ReturnBar(). QI on the unknown object will only succeed on IUnknown as thats the only interface you know on that object. Unless you have type information for the object you cant do much with it. If you implement an interface (even through another type lib/assembly) on BarNotForCOM and export it to VB , you could cast the unknown object to this interface. eg: [ ComVisible ( true )] [ ClassInterface ( ClassInterfaceType .AutoDual)] [ Guid ( "2DE8CF85-939B ...Show All

  • Smart Device Development WaitHandle (IDisposable)

    This is more a question out of interest than an issue really. In the full framework and in CF 2.0 the WaitHandle hierarchy implements IDisposable but in CF 1.0 they did not. Was WaitHandles implemented different in the old Compact Framework You are right that in CF 1.0 the WaitHandle class did not implement IDisposable, but in 2.0 (to maintain compatibility to the desktop behavior) of this class we decided to have it implement IDisposable. When you mean was it implemented differently (I am assuming if you are asking if the underlying behavior changed) well since it now implements the IDisposable interfa ...Show All

  • Visual C# global variable for windows application

    hello, how can i write and read a global variable for the entire application in C# Many Thanks, Jassim Rahma Hello Jassim There is no concept of Global Variables in C#, you can use global variables inside the entire class but not in the entire namespace. Solution for this problem is to create STATIC VARIABLES and use these variables anywhere in the namespace. Hope this might help ...Show All

  • Visual Studio Team System Fxcop Custom Rules for Searching for loops

    Hi, I am stuck while writing a custom rule which checks for exception handling inside loops, i am unable to check for the presence of loops inside a method. could you please provide me pointers in this direction. It would also be very helpful if could explain how to check if every method has XML comments. Regards, Vamsi. Hi Sanjukta, I came across ur sample to check the loops ..I was looking for the same from long time. I have a query what exactly this code represents if (( int )objMethod.Instructions[intCount].Value < ( int )objMethod.Instructions[intCount].Offset) { intBeginOfLoopOffset = ( int ...Show All

©2008 Software Development Network