Regex - Works On Every Regextester But Not In .net Application?

Nov 23, 2011

i got the following regex, which is working on some regex testers out there flawlessly.I want 1 item with "500", 1 with "600" and 1 with "-100".

Dim matches As MatchCollection
Dim regex As New Regex("(d+)s/s(d+)s((-?d+))")
matches = regex.Matches("500 / 600 (-100)")

My matches.count is one, with the complete string. Nothing else.

View 2 Replies


ADVERTISEMENT

Resolved Stumped Regex Works In C# But Not VB?

Jan 12, 2010

I'm working through the Pro ASP.NET MVC Framework book by Apress (which is great, btw) and it's in C# although we mostly work in VB so I'm "translating" the examples along the way. So far so good but I ran into something that has thrown me.Long story short we need to validate that the string the user gave us as an email address. This returns true in C#:

Console.WriteLine(System.Text.RegularExpressions.R egex.IsMatch("Me@me.com", ".+\@.+\..+"));

But this returns false in VB:Console.WriteLine(System.Text.RegularExpressions.R egex.IsMatch("Me@me.com", ".+\@.+\..+"))

View 2 Replies

How The Application Works

Jun 8, 2011

I am a final year computer science student and i was confronted with this topic: Design, development and implementation of an efficient Bandwidth management system. i code with Vb.net and microsoft SQL 2008 as my database engine. honestly i've not written such application before, so i need a guide how the application can be built(especially the interface).please am not asking for the source code(if there is any), i only need a detailed flow on how the application works.

View 2 Replies

.Net Windows Application - How It Works

Jul 20, 2010

We have an application(.exe), longtime back some developer wrote the code and now he is not with the company. I happend to be support this application. I have to do some modifications in the code.I have a .vb file and .Config file with me. The .VB file is calling a SSIS pkg and doing some dataload and creates some files and it formate the file names what it generates and it send emails to large group of ppl.I have opend the code in Visaulstudio but i do not have any option to debug or do some breakpoints.How can I use this config file?Do I have to add both of them in the project? To debug I need SSIS pkg as well so do I have to add all these 3 of them into my solution?I know where to change the code, after changing the code how can I create a application EXE file?

View 6 Replies

Crash - .net Application Only Works On 64-bit PC's?

Mar 29, 2011

I have had afew people test my application and all of the 32-bit users are telling me it is not working.

Problem signature: Problem Event Name:
CLR20r3 Problem Signature 02: 1.0.0.0
Problem Signature 03: 4d9235a5 Problem

[code]....

View 2 Replies

Deployment :: Application Works Properly On PC But Not Others

Mar 8, 2010

I have an application developed in VS2008 VB.net. It is a numberpad with buttons for 0 - 9.When published and installed on my local PC, everything works as expected. I open a browser window, and am able to click a number-button and have the corrosponding number sent to the active window location. When installed on other PC's, the numbers sent to the active window location are repeated many many times. If you click the "3" button, then anywhere from 10 to 50 "3"s are sent to the screen.All PC's have Windows XP Professional, Version 2002, Service Pack 3.The only differences I can detect are the many many .NET frameworks installed on my computer and not on others.[code]

View 1 Replies

Make An Application That Works On Other OS's (Mac OS X - Linux)?

Oct 27, 2009

Can I make an application that works on other OS's (e.g. Mac OS X, Linux)?

View 3 Replies

Multithreading - Understanding The Way Application.Run() Works?

Nov 4, 2010

As far as I understand from the docs, it seems that Application.Run() starts a message loop on the current thread, which in turns enables it to process user input (Is that right?).The overloaded version Application.Run(Form) basically does the same, only it exists when the form closes, and it shows the form by default.timer ticks after 20mns, and has to execute say approx. 15 tasks one by one, every time creating an instance of a progress dialog, initially hidden in the taskbar.

View 1 Replies

SQL Server Express Works With Application?

Jun 8, 2012

I am totally confused about the way SQL server Express works with my application, it seems like it is a hit and miss whether it works or not.In my Server Explorer if I show data, I see data in my tables.

[Code]...

View 7 Replies

Application Crashes At Run Laptop, But Works On Netbook?

Jul 2, 2010

I seem to have a problem with an application i made. I hope you can help me with this as it has puzzled me for awhile now.

[Code]...

View 7 Replies

.Net Application Stopped Working On XP But Works Fine On Windows 7?

Jun 23, 2010

I have VB.Net application that has worked fine for years on XP and Windows 7. For some reason the last update I put out does not run even the simplest VB commands.Simple Environ() fails.I have tried putting simple VB commands onto a MsgBox on the start of the app and everything raises an error. I have no idea what is going on! The exact same app runs fine on Windows 7 clients. All the XP machines including a fresh XP virtual machine with the .Net 3.5 framework even gives the errors. No VB commands are working. I thought maybe something happened to my vbproj files, so I copied an older one from a couple weeks ago when things worked fine and it still does not work.

View 2 Replies

Client/Server Chat Application ..Works Only On Same Network?

Mar 14, 2010

I have a client/server chat application which I made . My question is how do I make the application work not only Locally but On any other network. I tried putting my IP in the part of creation of the client socket .

View 2 Replies

Visual Studio 2010 - .net Application Works With Files Dragged Onto The Exe But Crashes If There's A Space In The File's Path?

Jun 15, 2011

I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?

View 2 Replies

Copy Opened Database - Application Gets It's Data From A Mdb-file And The Connection Remains Open As Long A Person Works?

May 14, 2010

The fact is I'm making an application, which users can install by using a Setup file...once installed the data in the database can be updated by a centralized server. To do this, they can insert a DVD/CD-ROM and export the necessary data towards it. I need to do it that way, because some of the users who really need this data will be using stand alone computers.The application gets it's data from a mdb-file and the connection remains open as long a person works with the application (maybe not the best way to do, but I know :-) )...when the user uses the application, he can perform an export...this exports the .ini-file and pictures (which works fine), but he also needs to export the mdb behind the application...I already tried connection.close() before and connection.open() after the System.IO.File.Copy...but that doesn't seems to work.

View 2 Replies

Multiple Runtime Exceptions When Clicking Run From Task Scheduler / Works Fine Running Application From Project Folder

Jun 3, 2011

So I wrote a VB.net project in Visual studio.I have a scheduled task that is set to run the program every morning at 10AM. If I use windows explorer and double click the application, it runs fine.If I open task scheduler, open the task properties, and browse to the application, then choose run, the program fails, due to Runtime exceptions.I know I have the path entered correctly, since I can debug the instance when it crashes from the task scheduler. VS2010 pulls up my source code.The exception is System.IO.FileNotFoundException, remember, it works fine when I double click the app. If attach a debugger to the process after it is executed from the task scheduler, I can then restart the debugger, and Voila!, The application runs fine.

View 1 Replies

Concatenating A Variable With A Regex Group Match In Regex.replace?

Apr 5, 2012

I am having an issue where I am using regex.Replace to replace part of a string. The basic idea is that I want to capture the beginning of the string then replace the end of the string with a value from code. For an example pretend I have a string that says "Test Number " followed by number and I want to increment that number. I capture the "Test Number " but when I try to concatenate that capture with the new number it treats the capture ($1) as a literal and replaces the entire string with $1[new number].

[code]...

This will output "We are on Test Number 2", as expected. how I can use a variable in the replacement string portion of the Regex.Replace when including a captured group?

View 1 Replies

Regex: Take Text & Some Special Characters Between The Xml Tags Using Regex On C#.net?

Feb 23, 2012

I want to take the text and some special characters between the xml tags.. My input file contains:

[Code]...

now i want the Regex to take text and the special characters between the tags <line>,<inline>..

View 2 Replies

Increment Regex Match Using Regex.Replace

Jun 21, 2012

I'm creating a program in VB.NET to output multiple images. Some images will have the same file name. If there is multiple files with the same name I want to add "_1_" to the end of the file name. If the "_1_" file already exists I want to increment the 1 to be "_2_". If this file already exists I want to continue incrementing the number ultil it doesn't exist. So for example "filename", filename_1_", "filename_2_", etc. Here is the code that I have tried

[Code]...

View 1 Replies

Regex Builder That Actually BUILDS RegEx From A Highlight

Nov 17, 2011

I've been working straight since yesterday trying to get this to work. I'm a noob to RegEx and I've tested out about 5 different RegEx "builders" but each of them require you to navigate through the options to build the Regex...each of them has failed when I try to use them.Is there an application out there free/paid where you select the line you want to grab and the RegEx is auto generated from that highlight rather than having to try to build the line of code? [code]

View 1 Replies

VB 2010 Application Works On Windows 7 Machine But Will Not Work On Other Windows 7 Machines?

Jan 22, 2011

I have developed a VB 2010 express application that works on my windows 7 machine, but when I deploy it to other windows 7 machines the application will not run at all. I created an msi script to install the software on other machines and it includes the .NET 4.0 framework an all of my application dll's and such. Any idea what might be he problem?

View 2 Replies

Link From Button - When Sheet1 Is Selected, It Works, But When Sheet2 Is Selected, Not Works

Jan 5, 2012

I have a spreadsheet with this code:

'insert link
sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "")
the code of the button (ribbon)

[CODE]...

When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?

View 2 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

Code That Doesn't Works Runtime But Works Step By Step?

Jun 26, 2010

this is my code:

Dim WB As WebBrowser
WB = GetPage("http://speed.travian.ir/a2b.php?z=" + VillageID.ToString + "&c=" + Type.ToString + "&" + AttackParams)

[code].....

View 9 Replies

.NET Works But Not C#

Feb 26, 2012

I have created lots of applications with visual basic 2008, tested them on many other computers, worked like a charm. After I moved to 2010, all my applications compiled, ran without a problem even on different machines (worst case scenario was that some older PCs needed the 4.0 framework to be installed first). Anyway suddenly I ran into a very weird problem which I cant figure out.I have Visual C# 2008 (Express Edition) on this machine installed and everything ran/compiled flawlessly but when I tried the application on a different computer, it can't even start. It crashes as soon as you attempt to run it and displays that 'Application Stopped Working' error.

I also tried to compile it as Release, then start the exe .. still the same problem. Sorry again for asking this on a VB forum, I just started playing around with C# after VB and didn't know where to ask.Aditional Info: Visual Basic 2008 and 2010 programs work perfectly on the same machines on which Visual C# 2008 doesn't. (I would be glad if some one could at least re-direct me to somewhere else )

View 4 Replies

SQL Works MDB Does Not?

Jul 21, 2009

UserLogin.zip Starting off with a very simple user database with encryption based on [URL]..Updating to an SQL database WORKS FINE using the SqlDB classes. Updating to a 2003 Access MDB DOES NOT - when I use OleDB Classes. They are almost identical. I am getting an error ""Operation must use an updateable query", but all the articles on this do not seem relevant. I need to get the MDB working.

View 3 Replies

.net - COM Object Only Works In It Not C#

May 10, 2011

I have a COM object that works fine in VB.NET, but not in C#. Both projects are .NET 4 console applications. The COM object loads in C#, but the methods don't return any values. Why would it work in VB.NET and not C#?

[Code]...

View 2 Replies

Can't Get It Works In .Net 2003

Nov 9, 2009

I have the following code written in VB. It works in VB 2008 Express But not VB .Net 2003?

View 3 Replies

Completed App Only Works For Me?

Mar 30, 2011

I just completed my app and used advanced installer to make a setup of it, i sent it to my brother for him to test but when he runs it and tries to sign in he gets these errors

[code]...

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.now i think it means that it cant find the mysql connecter and data and stuff but the user shouldn't need to have that right? it should come with the app to make it work for everyone

View 1 Replies

Does ADO Works On VB 2008

Aug 17, 2009

does ADO works on VB 2008 ?i have this error when i tries to run this code

'Item' is 'ReadOnly'

and below is my code:

rs.AddNew()
rs!("pwd") = TextBox1.Text (it gives me the error here )

View 4 Replies

GetScrollBarInfo API Don't Works?

Dec 3, 2011

I'm trying to know if the scrollbars (in my case, the horizontal scrollbar) are showed in the main access window. I use GetScrollBarInfo.There are 2 days I'm, searching info about the function and the parameters, but they are hard to find.I can only find general descriptions of the API.I found some constant values in the ApiViewer 2004.

Here is my API-calling code (in a form class-module):
'vede se la scroll bar orizzontale visibile
Dim void As Integer

[code]......

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved