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

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

direwolfe

Member List

Parag Kudtarkar
Sheikd
Eugenya
Mitch Wardrop
Chumplybum
MillBear
figo2476
GS80
GrandpaB
Byenary
R1ZWAN
Michael Miller
freddieb
Artix
Johan Nordberg
RynBev
Jeffrey Kent
Ritesh Rao
Hanumanth Reddy
gabit7
Only Title

direwolfe's Q&A profile

  • Windows Forms Regex and datagrids..

    I am trying to get a count of all instances of "IN" from a populated datagrid using: Private Sub Counts() Dim INCount As Integer = 0 Dim INFinder As Regex = New Regex( "IN" ) For Each row As DataGridViewRow In Me .dgResults.Rows For Each cell As DataGridViewCell In row.Cells INCount += INFinder.Matches(cell.ToString).Count Next Next tslIN.Text = INCount tslOUT.Text = Math.Abs(INCount - dgResults.RowCount) End Sub But instead " cell.ToString" is yielding "DataGridViewTextBoxCell { ColumnIndex=0, RowIndex=0 }"  Any ideas Also what would be the best way to search on a specific column TIA, Stue I did that before but being new and all d ...Show All

  • Visual Studio Express Editions How to SUM column data

    Hello, The result of a query in TableGridView looks like this: Location Number1 Number2   Hi there!!!   " and type DBNull"   You have Nulls in this table   I know  lot of peope do but I write my code so that there are NEVER nulls. For Each r As DataRow In Table.Rows if not Typeof r(0)  is dbnull then FCSum += r(0) if not Typeof r(1)  is dbnull then  SCSum += r(1) Next   ...Show All

  • Windows Forms C# - ListView

    Hi... In my ListView code i have 10 rows & 10 columns. I want to search 1 word say "Search" in a perticular column(& all rows) & then if i have that word in that column then only i have to select that perticu;lar row or else i have to delete that row from completely ListView . (e.g. I am searching for word "search" in column 5 & i found that word in row no. 1 , 3 , 5 , 7 then on my form i have to display only 1 , 3 , 5 , 7 rows of that ListView) How i can do this in C#... Thanks , Vinay Something like: List < ListViewItem > removeItems = new List < ListViewItem >(); for ( int i = 0; i < listView1.Items.Count; i++) { if (li ...Show All

  • Windows Forms How to focus on a textbox

    Hi all, I want to set the focus on a specific field when my application starts. The problem is that my textbox.canfocus is set to false. So Focus() is not working. How can I do that Thanks, Bertrand ...Show All

  • Audio and Video Development Video Events

    How can I handle video events in the script For example, when new chapter started. Or when certain frame reached.     Listen to the chapter event for chapter changes -- if you have the spec, the events are defined in Z.6.2-1 Example code: addEventListener( "chapter" , handleChapter, false ); function handleChapter(evt) { var oldChapter = evt.oldValue; // int or NaN if no previous chapter var newChapter = evt.newValue; // int of new chapter number // do something useful... } For knowing when certain frames are reached, you can either use scheduled events (in the playlist) or you can have cues in the markup bound to the title clock that fire ev ...Show All

  • SQL Server Integrating data from two Tables into one

    Hi all, In case I have two tables. In them there is data and I want to integrate all this data into one table. that is to say Table A and Table B has data (Both A and B are from the same database) I want to integrate all this data into Table c. How do i go about this Regards, Ronaldlee No men, you are not rude. Okay, I do not have any idea about the JOIN or UNION Transformation. May be you can recommend. I need table C to have all the five columns from table A(3Columns) and B(2Columns). Table A and Table B are the source Table C is the target. I need to find a way to join Table A and B.(Is it possible ) Ronald ...Show All

  • Windows Forms How do I use Microsoft.WindowsCE.Forms.InputPanel for a windows application?

    I am having problems porting a WindowsCE app to windows xp. Specifically the user wants to be able to use the onscreen keyboard provided in WindowsCE in a windows app. I included the correct DLL and namespace and I can instantiate the InputPanel object. However it doesn't show up anywhere on the form. When I try to access the "Bounds" property of the InputPanel object it just throws a System.InvalidProgramException. (Note: I set the "Enabled" property to true so it should be visible for textboxes). Has anyone successfully ported this object to .net 2.0 (is it only allowed to be used in the compact framework) You can't. And yes, only in the Compact Framework. WindowsCE controls ...Show All

  • Software Development for Windows Vista Journaling hooks on Vista?

    Along with a lot of other people, I've noticed that attempts to set the journalling hooks ( WH_JOURNALPLAYBACK, WH_JOURNALRECORD) get knocked back with access denied on CTP 5270. Is this down to the new Vista security policies I think I might have found the reason and potential solution: http://msdn.microsoft.com/windowsvista/default.aspx pull=/library/en-us/dnlong/html/AccProtVista.asp A lower privilege process cannot: Perform a window handle validation of higher process privilege. SendMessage or PostMessage to higher privilege application windows. These application programming interfaces (APIs) return success but silently drop the window message. Use thread hooks to attach to a higher privileg ...Show All

  • Visual C# Convert string to operation

    Hi! Is it possible to convert strings to operations in a relatively simple way For example convert this string: string OperationInString = "3+3+9"; somehow, so I get back "15". Thanks in advance. ;) Code generation is not as difficult as it appears at first. If you want to customize the code later or extend the class or the method that is generated, e.g. by adding parameters, it also makes sense to take a look at the actual code that it compiled. If you want to do so, just at this peace of code before the comment "//check for errors": using (System.IO. StringWriter stringWriter = new System.IO. StringWriter ()) {   provider.GenerateCodeFromCompileUnit( ...Show All

  • SQL Server Bug or Feature

    I noticed something when using Management Studio that I don't know if it's a bug or a feature. So if you have a login that's mapped to a user name in several databases, and you delete the login from the server using Management Studio, the user name is still left in the databases. This happens on a SQL 2000 or 2005 instance. If I use Enterprise Manager and do the same function, the login is removed from the server as well as all databases where it was a valid user. Any ideas Thanks, Jason Okay, that explains it. Thanks for the info! It would be nice if when the user owns an object, SQL Server changes the value in some flag for example, and then when the login is dropped from the server, SQL ...Show All

  • Visual Studio Team System Upgrade problem : "TFS sql server exists and their schema doesn't match..."

    Hi upon trying to upgrade to RC I encountered a problem : "TFS sql server exists and their schema doesn't match the version expected by setup" how do I workaround it all the upgrade steps went fine until this one.... 10x, guy Hi Allen,     I had actually run that step and it gave me error of   Verify for CMMI Field name clash ERROR: Found field names in Custom Methodlogies that will clash with new CMMI Me thodlogy, please rename the following fields using WITFields.exe before proceedi ng - ;Severity but I did not change the name and continued with upgrade . The reason being I'm using that field in the Bug work Items with MSF for Agile Methodolog ...Show All

  • Visual Studio 2008 (Pre-release) Moving FrameworkElement using DoubleAnimation in code?

    I'm trying to animate a framework element from one position to another in c# code. This is simple to do in XAML, but seems rather less straightforward in code. The only way I can think to do this is to use a storyboard, however I'm not sure what dependency property to use for the targetproperty in order to animate the position of the element since there is no generic X or Y position dependency properties. For example: DoubleAnimation myDoubleAnimation = new DoubleAnimation(); myDoubleAnimation.From = 100; // this should really be the current position of the element myDoubleAnimation.To = -300; // this should be the offset of the element myDoubleAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(3000)); ...Show All

  • Visual Studio Tools for Office VSTO2005SE 2007 Add-ins compatibility

    Currently i'm running windows vista RTM and VS2005 with VSTO2005SE installed i've created a project using 2007 add-ins from VSTO2005SE and it works fine with my office 2007. i would like to know whether i can deploy this 2007 add-ins project onto another machine with windows xp and office 2003 is there a compatibility issues Hello. An Office 2007 Add-in is not backwards compatible with Office 2003. (However, having developed it on Vista and then deploying to XP is non-impactfull and will work fine.) The first problem you will encounter with your Office 2007 Add-in running on Office 2003 is that your Add-in is most likely referencing the Office 2007 PIAs, which are probably not installed on the Office 2003 machine. Second, ...Show All

  • Visual Studio Express Editions Auto Resize of Form Controls

    This is always my problem, each time i design form controls, each of them is not resizing whenever I maximize the form. I need to resize, panel layouts, datagridview, groupcontrol, tabcontrol, etc. Is there any easy way of scaling these controls that fits any resolution of display monitors. thanks in advance. Hi Chris, You can use the Anchor property of a control to have it resize when the form resizes. If your set this to Top, Bottom, Left, Right, the control will resize with the form. Either set this property is design time or use the following code at runtime: Button1.Anchor = AnchorStyles.Bottom Or _ AnchorStyles.Left Or _ AnchorStyles.Top Or _ AnchorStyles.Right For more information, ...Show All

  • Visual Studio Unhandled Win32 Exception after installing Visual Studio

    I've been using Office 2003 to do work on a Sharepoint site. Everything was working fine until I installed Visual Studio 2005. After that I could no longer edit Powerpoint files. It would throw an "Unhandled win32 exception" then the Just-in-Time Debugger window pops up. After some testing, I found that Frontpage fails too and even going into Windows explorer and clicking on the site under My Network Places does the same. I did some web surfing and found a post that someone said that the .NET 2.0 framework screwed up the .NET 1.1 framework that those applications use. It didn't sound like a difinitive answer. I reinstalled .NET 1.1, the hotfix, repaired Office, repaired Visual Studio but I still get the crashes. Has anyo ...Show All

©2008 Software Development Network