Tryin2Bgood's Q&A profile
.NET Development Regular expression to replace comma for a csv file import
Hi, I am having trouble trying to write my own regular expression. I have tried a couple and not even sure if it is correct. If you guys know any articles that provide great explanation, please let me know. Here is my regular expression if you guys able to fix it for me. Regex.Replace(line, "([\w]+),([\w]+)", "$1<comma>$2") I am trying to replace comma in this sentence and turn it into <comma> and later replace it again after splitting each column in the csv file. "Company","Job Title","First Name","Middle Name","Last Name","Business Street","Business Street 2","Business City","Business State","Business Postal Cod ...Show All
Windows Forms How to programatically deselect a listbox item
I have a multiextended listbox. How do I deselect one of the selected items from within my program Use the SetSelected method on the list box. You will need the index of the entry that you want to change the selection on. i.e listBox1.SetSelected(UnSelectIdx, false ); -Eric ...Show All
Smart Device Development Problem with code
I want to have Buttons in a VB Form navigating to places like,My Documents, Network Places, My Pictures etc. Does anone know code for me to be able to do this... Thanks I am trying to have a push button access "my documents" folder on the Pocket PC I am not sure whats wrong with the code can anyone please help Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'GetFolderPath: My Documents Console.WriteLine() Console.WriteLine("GetFolderPath: {0}", Environment.GetFolderPath(Environment.SpecialFolder.Personal)) End Sub End Class ...Show All
.NET Development How can I adapt any DBF file to SQL Server 2005,there are any Provider ?
Now I develope some application with VB.NET 2005,and I need some database fome .DBF file to be my database,I wish to join these database to my SQL server.How to do mingch06 Hi ! You can download the FoxPro and Visual FoxPro OLE DB data provider from msdn.microsoft.com/vfoxpro/downloads/updates. You can use it to connect to your DBFs in VB or set up a linked server to the data in SQL Server. ...Show All
Visual Basic Classic triangle program
Could you help me write a program that requests an odd number, and display a triangle similar the image with the input number of stars in the top row. The computation should be carried out in a Sub procedure. ~output at the listbox~ THX~~~~ its interesting how there was another question about this yesterday.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=967654&SiteID=1 with that you simply show an InputBox when they press the button and take that value (check they entered a valid integer value) and place it in the "totalStars" variable from the code above ...Show All
Visual C++ VC++ 2005 redistributable (vcredist_x86.exe etc.)
Hi there, I noticed that the Beta 2 redistributable is hosted on the Microsoft download library, but the final ones seems not to be. Will it be hosted on microsoft.com (or is it already somewhere ). Also, it has been reported to me that on Windows 2000 the (RTM) redistributal gives an unuseful error message if Windows Installer 3.1 is not installed. The message is error 1723. "A DLL required for this install to complete could not be run." . It would be a lot more helpful to my users if this was a more informative error message - the solution of installing Windows Installer 3.1 was only found by trial and error. Thanks. Nikola. I spent the last two days making my own bootstrapper application (wh ...Show All
Software Development for Windows Vista InkCanvas - How to Bind "Right Button Stroke" to Alternate Ink Function
Hello, Is it possible to bind strokes generated while right button is held down to an alternate ink function e.g. select If yes, how Thanks in advance. Regards, Vinay Agarwal Mark, Sorry for late reply - I stopped checking for answer after a few days until now. I tried it by overriding OnStylusInRange for my class that is derived from InkCanvas. This function is never called if mouse is used, not the tablet. Regards, Vinay Agarwal ...Show All
Visual Studio Express Editions How to add files from subdirectory? - How to save all items from listview?
Hello.I have a LISTVIEW in my app.I add .mp3 file in it with a FolderBrowserDialog.How I can add files from sub folders (for example: MyMusic -> Music 2006 -> May. How I can save all items from a listview in a textfile I'm not sure what you're problem might be with "SubFolder", I'm sure you can figure it out. To step through the items in the ListView, use code like this: For Each item As ListViewItem In ListView1.Items Next ...Show All
SQL Server Calling SSIS packages from a Service Broker Queue
I would like to call an SSIS package from a Service Broker Queue. There is one way that I am aware of - Using xp_cmdshell from within an activation stored procedure and using DTEXEC. Is there a more elegant way of executing an SSIS package from within SSB Also, I am not interested in writing a .NET external activator to process my messages in the queue. I would like this operation to be strictly database oriented. Having said this, I am also trying to avoid triggers processing the messages in the queue. Thank you! SQLCLR with unsafe assembly (in order to call Process.Start()) would be slightly better option than xp_cmdshell. Even then, starting external processes from an activated stored procedure is l ...Show All
Visual Studio Express Editions cin a name & cout a name
Help!, am new to Visual Studio, my 1st attempt @ using this program. How do I cin a name & age and cout a name & age oh i think your coding is a little wrong! #include <iostream> using namespace std; int main( void ){ char name[256]; int age; cout << "please enter your name" << endl; cin.getline(name,256) ; cout << "please enter your age" << endl; cin >> age; cin.ignore(200); cout << "your name is:" << name << endl << "your age is:" << age << endl; return 0; } do you think i am right ...Show All
.NET Development Integer vs Int16
If value of variable is always going to be between 0 - 100 then will it make diiference to overall perfromance of application if we define that variable as integer instead of Int16. Assume that we have large no of such variables and they are used in highly transcational app where their value keep changing. Since now a days ll Pcs come with 32 bit CPUs and 32 memory dose it make sense to use 16 bit datatypes. If it dose then how dose it improve performance Thanks Genereally it does not make sense performance wise to use 16 bit datatypes. See this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=756832&SiteID=1 Michael ...Show All
Gadgets Downloading and searching a web page...
Hey. I just got into Sidebar development and have a question. I've already got my gadget displaying nicely, but have run into problems making it functional. My Javascript is really rusty, so bear with me here. I'd like to be able to download a web page's source (HTML, generated HTML from a PHP page, whatever, not like the actual scripted source or anything, just what the end user sees) and then be able to sift through it for a certain element. Specifically, I'd like to download the index of http://www.charas-project.net and find the first link after the source: < span class = 'title' >Last 10 Forum Discussions</ span >< br >< hr > I can probably find the string handling functions to do the latter myself, but the d ...Show All
Visual Studio Team System Error 32000
I have been trying to get TFS running on this machine for too long now. I am getting the following error: Error 32000 the commandline "C:\Program Files\Common Files\Microsoft Shared\web server extensions\BIN\Stsadm" -o setconfigdb -databaseserver "DICAPRIO" - databasename "STS_Config_TFS" returned non-zero value: -2130241769 I am doing a single server installation and followed the documentation to the letter. I had some trouble with RS and fixed that now I am at the error. Please help! The problem seemed to be that there was a copy of STS_Config_TFS in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data from a previous install. Once I removed it I got past the 32000 error. ...Show All
Visual Studio Localreport w/Image control, source=database
I'm using VS 2005, C#, a ReportViewer in a windows form, LocalReport, and an Image control with source=Database. The ReportViewer's LocalReport.EnableExternalImages=True and ProcessingMode=Local. The image is a bitmap in a datasource. When I run the report, I get the red "x". Outside of ReportViewer, I can see the image using a PictureBox control (pictureBox1.Image = DiagramBitmap;). Within ReportViewer I'm using an Image control with MIMEType=image/png, Source=Database, Value=First(Fields!DiagramBitmap.value). I've tried different selections for Sizing (FitProportional, Clip, AutoSize), but the results are the same. Other non-image fields in the datasource are not a problem. Does anyone know how to get more information ab ...Show All
Visual Studio Express Editions Filter to form2
I am brand new to VB Express 2005 and only just getting starting to understand it. Here is my problem. I have two forms connected to a SQL Express database within the project. Table 1 and Form 1 lists the customers Table 2 and Form 2 Lists the email addresses and passwords for each account 1 customer could have up to 30 email addresses. I can get the customers to show on Form1 and all the emails and passwords to show on Form2 with no problem. I can even add a button that opens Form2. What I am trying to do is open form2 and only shows the data that relates to the selected customer. It’s probably very simple but I am a beginner after all ...Show All
