David_Reynolds's Q&A profile
Visual Basic search string and return the following six characters.
How would I best click a button and display the six characters that follow a specific part in a string. i would like to display in a label. for example search the above state ment for "button and " then return "display" to a label in the form. Thanks in advance!! you can either use Regex (regular expressions) as they are powerful and do good pattern searching but can be expensive (resources etc...) and may not be ideal for your situation. you can use some of the string functions like someString.SubString(0) etc... now to obtain all text/string after a specific position: dim myString as String = "button and display to an from and blah blah" ...Show All
SQL Server Select *
I know Select * has a performance impact and its better to use Select Column1, column2... But is this also true for Select * from #TempTables. Jens K. Suessmeyer wrote: No, actually they can hold indexes if you put some on the table. Tables variables can’t have indexes. Not quite true Jens. You can create a primary key on a table variable which will create a unique index. e.g. declare @tb table (pkid int identity primary key, i int) ...Show All
Windows Live Developer Forums Hide a Map Control?
I have been searching the SDK for this one... Is there a way to do this I created a custom code but it didn't work... Which one of the following do you mean by "a map control" 1. The built-in map control. If this one, use map.HideDashboard() 2. A custom control you have added. If this one, use the style attribute of you control and set visibility:hidden or display:none. 3. The map itself. If this one, do the same as #2 but for the DIV that holds the map. ...Show All
Visual Basic Checkbox checked in gridview?
Hello, I've created a gridview bound it to a dataset and added a checkbox column. What I would like to have happen is when a user checks the box, then clicks the button, the row with the box checked will be updated in the database. After some intense searching, I finally got it to find the checkbox, but when I run the code, I get "Object reference not set to an instance of an object". Can someone please help me figure out how to get it to recognize that the checkbox has been checked, so I can do my update Here's the code I'm working with: Protected Sub btnComplete_Click( ByVal sender As Object , ByVal e As System.EventArgs) Dim row As GridViewRow For Each row In GridView1.Rows Dim ChkBoxCell As ...Show All
.NET Development Windows Server2003 Web Edition and .NET 2.0
This may be a dumb question, but I couldn't find the answer with a forums search. I am currently searching for an OS for serving computer. I ran accross Windows Server 2003 Web Edition, which pretty much is exactly what I need it for. The problem is, according to the 'compare server 2003' page, Windows Server 2003 Web Edition has NO support for .NET2.0. Now, does that mean that the OS package I purchase will not have .NET2.0 already with it, but I have the option of installing it from windows update/distributable package OR that I will never be able to install .NET2.0 on windows server 2003 web edition due to whatever reasons. If the former, I'm perfectly content to have install it after the fact but, if it's the latter, well then I'm b ...Show All
Windows Forms handling PaintEvent in a class
I can already work with paintevents and graphics in the mainform, but when I add a class and I want to add a pe.Graphics.Drawline() statement, He gives an error. Something with returning a '0' argument( pe => paintevent) How can I also work with drawings in a class Hi, Fata Fata1Attack wrote: static public void DrawPath() { Graphics gr = new Graphics (); Rectangle rectx = new Rectangle (); PaintEventArgs pe = new PaintEventArgs (gr, rectx); Graphics g = pe.Graphics; Pen mypen = new Pen ( Color .Green); g.DrawLine(mypen, 75, 75, 175, 175); } You should not define a PaintEventArgs in this ...Show All
SQL Server .net cf class library commenting problem.
Hi All, Now I am creating .Net CF2.0 class library project, and I have some public method which take parameters. And I commented those method using following tag. /// <summary> /// /// </summary> /// <returns></returns> But when I add to other project where I wanted use that dll , when I create instance and call the method it’s not giving me the description which I gave. But when I refer in the same class library project itself it’s giving outside that it’s not giving the details. Could you please anyone to solve this problem Thanks , Jayakumar a Hey when you compile the DLL with the above source, ...Show All
Windows Forms Knowing when a .NET application is 'busy'
OK, here's a good one... I'm currently working on a data driven application with sets on top of a networked instance of SQL server. At many points in the application the server response time may be more than a few a seconds causing the app to just 'hang' unresponsively until the call returns and updates it. In addition, the app does several potentially intensive processing routines client side which may also take a great deal of time and in turn cause the app to hang unresponsively. So in lieu of just searching empirically for all the potential hang spots in the application is there a way to just monitor application as a whole watching for hangs so I can pop a busy bar to the user For example, is there a way to watch the AppDomain or the ...Show All
Smart Device Development Using DirectDraw in Windows CE 4.2
My work is Nevigation system developing. This system's OS is Windows CE 4.2 and CPU is armv4i. Tool is Embedded Visual C++ 4.0(sp4) at my desktop. And important thing is I must use Directdraw. First, I used 'ddraw.h','ddraw.lib' in DirectX SDK. But in Embedded Visual C++, that didn't compile. So I searched all my hard disk, and found out those files in 'Windows CE Tools\wce500'. Second, I used those files, complie and build are success. But when I moved execute file to Nevigation system, that didn't work. Message was '.... can't find some linked files....' (this message is not accurately, because that was written by Korean) I think that is 'dll' problem. Third, I searched 'ddraw.dll' in my hard disk, and fo ...Show All
Visual Basic How to open an xml file with vbcode and replace strings in it
Hi .. Thnx for sparing your time. I have an xml file generated by informatica. eg - abc.xml I now need to read this file and search for a particular tag in the entire file .eg- </name> Once i find this tag i need to move all the text after it to a new line. so if its like (This is how an xml file looks when you say view source - it opens as a txt file) <age><add1><add2></name><name><age><add1><add2> After adding a new line feed it should look like <age><add1><add2></name> <name><age><add1><add2> So i need to find text and replace it with a new line feed character. it should bascially b -replace(</ ...Show All
SQL Server BULK INSERT into a table variable
Bulk Insert to an existing table works fine, but substituting a table variable causes parsing error: Msg 137, Must declare the scalar variable "@tblInput". or Msg 207, Invalid column name '@tblInput' . To repro: CREATE PROC X AS BEGIN DECLARE @strSQL char ( 99 ) DECLARE @BulkFile varchar ( 60 ) SET @BulkFile = 'c:\LookingGlass\BulkCopy1.tmp' DECLARE @tblInput TABLE ( [Word] [varchar] ( 50 ), [UseCount] [int] ) --works ok with temp table: SET @strSQL = 'BULK INSERT temp_tbl From ''' + @BulkFile + '''' --but not with table variable SET @strSQL = 'BULK INSERT ''' + @tblInput + ''' From ''' + @BulkFile + '''' EXEC ( @strS ...Show All
Internet Explorer Development opening new tab in IE7 via IHTMLWindow2::open method. Possible?
hi i need to open new tab in IE7 from my extension code and to get an IHTMLWindow2*, pointing to this tab. Exactly tab, not a new window. Is it possible to do it via IHTMLWindow2::open method or are where any other ways to do it from extension I walked through some docs and forums and heard opinions that a place(new window or tab) in which IE7 opens pop-ups (as ones created by IHTMLWindow2::open) is controlled by user settings and extension can't change it Can't anyone tell is it so So sad if it is.... Than you in advance. "4) Setting tab active I havn't found a way to do it :(" How about if you would set one of the tabbrowser windows visible and hide the current one ...Show All
.NET Development A question about deploy Visual Web Developer 2005 project to IIS5.1
In Visual Web Developer 2005 my "Default.aspx" is start with <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> debug it,it work well. But when deploy it to my IIS(version 5.1) and browse it ,it display The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. You don't have ASP.NET installed or you have not registered it. In Visual Studio Command Prompt run this: aspnet_regiis.exe -i And then try again. Rgds Rodrigo ...Show All
Visual Basic How to retrieve current applied os theme in vb 2005?
Hi Is there any way to retrieve current applied theme of the operating system If yes then plz let me know Thanks in advance Shailendra Kumar ...Show All
Visual Studio Tools for Office targeting framework 1.1 from Outlook Addin
Hi, I have an Outlook addin component which was build with VS2003, so it uses framework 1.1, now I need to install framework 2.0 in the same machine and I have problems with this addin because Outlook uses framework 2.0. is there any way to targeting framework 1.1 programatically (because I can not find the way to load a valid config file for this addin....) Thanks, Mauricio. Ok, so the solution for this case is createing an OUTLOOL.EXE.CONFIG file with the tags mentioned earlier in this post I'll test it and confirm later, thanks! Mauricio. ...Show All
