Hi there, I need some assistance with a regex pattern.
What I am trying to do is filter files based on a regex expression
What the expression needs to do is find files that do not start with [f-z]\d{5} but do end in \.(dat|set)
I did try [^[f-z]\d{5}]\.(dat|set) but unfortunately it did not...
I am new to WPF and am having a few problems detecting whether the left or right button is pressed during a DragEnter event.
I was expecting a MsgBox to appear but I get nothing.
Thanks for any help
XAML Code
<Grid>
<Button x:Name="btn1" Content="Button" HorizontalAlignment="Left"...
I have a small problem which I hope you can help me with
I have a RichTextBox which contains a small amount of text entered by the user
I have written the code to highlight certain words as they are being entered, similar to syntax highlighting
The problem is that the RichTextBox undo history...
Firstly, thanks for replying
The following should give you some idea what I was trying to do
Dim Conn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Dpath
Dim Rs1,Rs2 As New Recordset
Rs1.Open("SELECT Location, Point, Area FROM Ta WHERE (Vsat Is...
What I want to do is load two tables from MS Access into VB.NET and modify the data they contain with SQL statements
I have managed to copy the two tables into a dataset, but now I am stuck on how to run SQL commands on them
Someone did say that if your data is in a dataset you cannot use SQL...
String comparison, Case Insensitive
On way of doing it would be using the String.ToLower method
Try replacing
If item.contains(tbSearch.Text) Then
with
If item.ToLower.contains(tbSearch.Text.ToLower) Then
You can also use the IndexOf method, which allows you to specify case-insensitivity. It...
Please can you have a look at this and tell me what major thing I have got wrong, PCallback is called twice and then my program unexpectedly closes.
Const sBoard As String = "####@##$##.####" & Chr(0)
Public Pstatus As PluginStatus
Public sbBoard As New StringBuilder(sBoard...
Am I way off with:
<DllImport("YASS.dll", EntryPoint:="SolveEx", CharSet:=CharSet.Unicode, ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function SolveEx(ByVal uiWidth As UInteger, ByVal uiHeight As UInteger, ByVal pcBoard() As Char, ByRef...
I understand the basics, but it is not something which I have dealt with recently, hence the question.
In the rare instances when I have used unmanaged code it has mostly been for using unmanaged Win32 APIs.
Thanks for replying.
Can anyone please tell me how to declare this unmanaged function in my VB.NET project, I have been at it for hours and I am getting nowhere:confused:.
The integer's and even the struct I can probably manage, but I am having real problems with pointers and the callback.
The function in the...
I am not sure if I have working on this too long, but I can not see a better way of finding the largest value of A, can you help?
For your information
The size of the form can change
Grid is a 2 dimensional array of squares which are drawn onto the window
Private Function CCC() As Short...
Apologies for not getting back sooner,
The database is on SQL Server and connected to my program by ADO.NET
It was probably not the best or the most efficient way of completing the task, but I ended up reading each record individually and running it through a regular expression.
Thank you for...
I am trying to write some code to add string arrays (Sitem) into an arraylist (Slist), but for some reason all the items in the arraylist end up containing the same string array (Sitem) values.
Text File excerpt
Runner
Lake
01-04-1994
09:43
Stalk
Pool
03-04-1994
09:46
All Slist items contain...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.