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

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

bl22

Member List

Laser Lu
ChasP
SPotam
Jean Brodeur
Senthil Kumar.T.D
Steve.W19324
fraballa
Brendonv
krissmith
magoria
jchmack12
ben2far
Ragi B
sirozzy
Eric Ma
Phic
Theron
Fish Food
Motty
Jamester
Only Title

bl22's Q&A profile

  • Visual C# who the hell started the animation ?

    Hi, Check out the snippet: /* DoubleAnimation animation = new DoubleAnimation ( 0d, 1d, new Duration ( TimeSpan .FromMilliseconds( 1000 ) ) ); animation.Completed += new EventHandler ( animationCompleted ); Rectangle rectDest = new Rectangle(); rectDest.BeginAnimation( Rectangle .OpacityProperty, animation ); */ private static void animationCompleted( object sender, EventArgs e ) { // how can i know here that rectDest property is animated any ideas } Thanx... I don't know wish type of rectangle you use that contians a BeginAnimation method b ...Show All

  • .NET Development Visual Studio VWD generates incorrect SQL for Access database with autonumber key field

    While trying to demonstate the 'code free' benefits of VS2005 to students I noticed that the SQL generated for a simple Access table with an autonumber for its key field does not handle INSERT properly. It insists on including the Autonumber field in the SQL, despite only providing TextBoxes for the non-key fields. See the following: < asp : AccessDataSource ID ="AccessDataSource2" runat ="server" DataFile ="~/App_Data/names.mdb" DeleteCommand ="DELETE FROM [tblNames] WHERE [ID] = " InsertCommand ="INSERT INTO [tblNames] ([ID], [Name]) VALUES ( , )" SelectCommand ="SELECT * FROM [tblNames]" UpdateCommand ="UPDATE [tblNames] SET ...Show All

  • Windows Forms Color in DataGridView

    hi all,         I having the DataGridView on the form, My requirement is to display the rows of the grid in some predefined colors, which satisfies the condition. I wrote the following code for it, bit this code does not give the rows in specified colors , can some one tells me where exactky the problem is, or some other way to solve this. foreach ( DataGridViewRow dgvrGroupDetail in this .dataGridViewBudget.Rows ) { DataGridViewCellCollection dgvcc = dgvrGroupDetail.Cells; //check the value if closed then make red if (( bool )dgvcc[ColumnClosed.Index]. ...Show All

  • Visual Studio Express Editions Open a Application

    Hello, what code is used to open an application for example: You Press a Button then it opens "C:\Program Files\MSN Messenger\msnmsgr.exe" I forgot ...Show All

  • Visual C# Copy folder

    Hi, I need to copy folder. In vb6 I had fso. C# nada. anyone Hi, Check the System.IO.DirectoryInfo class and the MoveTo method. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemiodirectoryinfoclassmovetotopic.asp Strange they dont have anything for copy though...You can do a copy in 3 steps: (1) Call Directory.CreateDirectory and create the destination directory (if it doesn't exist). (2) Call Directory.GetFiles() to get a list of files. (3) For each file, call File.Copy, from the old directory to the new directory. Regards, Vikram     ...Show All

  • .NET Development Search and copy strings from steam in txt file

    HI, i made program that download html page as .txt file and open .txt file as steam in C#. Now i need to search this .txt file which i could load with streamReader, find the words i need to and paste them to the new file or database.. But i dont know how to use indexOf /to search the file/ with stream Could you help me please IndexOf(....) will give you the starting index of the word you are searching. The best approach i think is that , as you are searching for words, split the entire string by using the Split() function, this will give you array of words in your string. Now compare each w ...Show All

  • Visual Studio Team System Work item assignment

    Can two people work on the same work item simultaneously Multiple users can open (and read) workitems simultaneously. If you are using the Visual Studio UI, if two users edit the same workitem, the first person to save the workitem has his changes committed. The second person will not be allowed to save and overwrite the first persons' changes - he will have to get the latest version of his workitem and make his changes again. If you are editing the workitem using Excel, Excel integration supports a feature to merge changes from the two users, so you may be able to write changes to the workitem depending on the kind of changes yo ...Show All

  • Visual Studio Tools for Office Drag & Drop + VBA Marco Question

    Dears, I have 2 questions: 1. I'd create a DataGridView inside a User Control (ActionPane) in my VSTO2005 project, and I'd like to know is it possible to allow users to "drag and drop" a DataGridViewRow item, that's row(s) of data, from ActionPane to Excel worksheet directly I can't find any DragEnter event handler for the worksheet object. 2. I want to display a dialog box asking user to select a location of a dynamic ObjectList, that mean, I'll create a ObjectList on the fly and let the users select a destination. I tried the Globals.ThisWorkbook.ThisApplication.InputBox with option 8 (Range) but it's just a modal dialog, I even c ...Show All

  • Visual C# Thread Safe Access to DateTime

    Hello all ... I'm working on a class to return the current date. It is a bit more complex than the following code due to managing cultures, but below is the basic idea. My question is: how can I ensure the execution of the get property is thread-safe, without single-threading my application My understanding from the doc that is that I need to be thread safe when using DateTime. I was thinking that lock would be too restrictive and with a lot of calls to this class would almost single-thread my application. Would a Read Write Lock be appropriate here Some other approach Thanks so much for your suggestions! Doug ...Show All

  • Visual Studio 2008 (Pre-release) Extension Methods: Static Electricity?

    As Anders pointed out in his Channel9 demo, Extension Methods in C# 3.0 really make Linq possible. After drilling into Extension Methods and wanting to not like them, I must ask: what were the alternatives The example that Ian Griffith's gives of some 3rd party developer quietly including something like: namespace System {     public static class Evil    {         public static void Print( this object s)         {             Console.WriteLine(s);         ...Show All

  • Windows Forms in arrays...

    Hi, I'm trying to read a text file, somewhat like this: #15-07-2001 sdkfhksdfhsdc cskjmcdfcsd #13-12-1999 asljkdaksjxd dcjdvf etc... I want to save the dates... so I put up something like this: string line; string date; StreamReader sr = new StreamReader(...); while((line=sr.ReadLine()) != null) {      if(line.StartsWith("#"))      {           line = line.Remove(0,1);     ...Show All

  • Visual C# DataGrid

    I am looking for a data grid in VS2005 toolbox and not finding it. I am finding DataGridView which does not have all the same methods as DataGrid. Any help Try this: Right-click the Toolbox and choose Choose Items ... Scroll down until you see DataGrid (namespace: System.Windows.Forms ) and ensure that it is checked Click OK ...Show All

  • Windows Forms Show a txt file in a Textbox

    How can I show a text file in a textbox I mean for example if I have a textbox in my program and I have a txt file in my computer and in the txt file writes "Hello" . I want a person to see "Hello" in my program's textbox when he/she opens my program. Here's a function to read text from a file for your toolkit. You use it like this if you want to put text in your textbox: TextBox1.Text = ReadTextFile("c:\test.txt"); using System.IO; public static string ReadTextFile( String mFile) { if ( File .Exists(mFile)) { using ( FileStream fs = new ...Show All

  • Windows Forms Searching files in directories

    hi.. how do i search files in a directory using file attributes like modified date,file size,create date time using .Net. Regards dhn Here is a self-explaining example: DirectoryInfo directory = new DirectoryInfo("c:\mydirectory"); foreach ( FileInfo file in directory.GetFiles() ) { if ( file.CreationTime.Date.Equals( DateTime.Now.Date ) { // Found a file that was created today. } } ...Show All

  • Visual C++ Changed the COM signatures....using ildasm.....

    Hi, I have a .exe COM which I used in .NET but some signatures got changed....so I opened it with ildasm and changed the signatures so that it should return something from the function....This is the error I'm getting now.... The runtime has encountered a fatal error. The address of the error was at 0x79e8aff6, on thread 0xb4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. Any Ideas.... Thanks, Harsimrat ...Show All

©2008 Software Development Network