Going back to your original code:
Your youssef funtion tests if it is youssef who is logging in.
It should return True if it is youssef.
It should return False if it isn't youssef.
The logic...
Type: Posts; User: Inferrd
Going back to your original code:
Your youssef funtion tests if it is youssef who is logging in.
It should return True if it is youssef.
It should return False if it isn't youssef.
The logic...
@.paul. Did you compile to x86 or x64? Try both.
Just for giggles, try testing:
Process.Start("C:\Windows\System32\SnippingTool.exe") under both options.
SysWOW64. Were you not paying attention?
From ybriK's code:
If IO.File.Exists("C:\Windows\System32\msconfig.exe") = True Then
Process.Start("C:\Windows\System32\msconfig.exe")
Hey william,
It's probably this line
strFirst = strName.Substring(Row, intSpace).TrimStart
Row changes as the selected index. The first name always starts at the first character of the...
I will say it again: when running a program compiled to 32 bit on a 64 bit Windows OS, attempts to access certain system folders are redirected to their 32 bit counterparts.
It is true for...
Are you compiling your program to 32 bit? When a 32 bit program is run on a 64 bit Windows OS, then attempts to access certain system folders are redirected to their 32 bit counterparts.
...
I still don't do Data, so I can't explain why the effect you are seeing happens, buuuut.....
When using your DataTable, try casting your data to the appropriate Type:
For Each row As DataRow In...
I tried your code with a ListView containing 50,000 checked items, and I was amazed at how slow it was. It had only managed to append the first 100 items in 51 seconds. This extrapolates to over 7...
Is there a reason you are using the | character in your command? Are you trying to do something else, that you haven't mentioned, that is also not producing the expected output to the RichTextBox?
...
Hey, Crystalii,
Consider this line form your CheckStatus method:
Dim CurrentPrayer As String = allTimes.LastOrDefault(Function(kvp) kvp.Value < CurrentTime).Key
Firstly, should the prayer...
The function currently returns the CRC as a UInteger so that you can convert it to a string for display in any format you desire.
If you are only interested in an 8 digit hexadecimal string with...
The text string you gave as an example in Post #1 is being treated as a record with 14 fields, each field delimited by a comma. For the purpose of calculating the CRC, the fields are being...
I like what Joacim has done there. It's like watching Picasso paint: don't know what the hell is going on, but the way it all fits together is fascinating :p
Just as quick note, though....
Your For Loop is starting at 0 and stepping -2 which isn't helping (the code in the loop never actually executes).
For i = 0 To bArr.Length - 1 Step -2
The following should help get you...
Hey Españolita,
I think you may have a couple of problems there.
You seem to be doing what I typically do; getting confused over array upper bounds and array lengths. By this I mean that an...
Did you try setting the Attribute name to "classname" and checking its Value against "commentaction"?
If b.GetAttribute("classname").ToLower = "commentAction".ToLower Then
Only send nice...
Aye, I overlooked the case where frmResultsViewer is launched from a Button Click, without double clicking a .tbx file.
Now you're using My.Application.CommandLineArgs(0) you need to use a...
Don't forget those numbers are hexadecimal, so you'll need to include the hexadecimal literal prefix
Private _subscripts As New Dictionary(Of Integer, String) From {
{1, ChrW(&H2081)},...
From the MSDN: The Command Function "Returns the argument portion of the command line used to start ..... an executable program developed with Visual Basic."
The point of adding the Try...Catch...
I can't see anything there that would cause an error, if you tried to launch your App by double clicking on a file with a valid RTF format (renamed as a .tbx file, of course).
So, from the code...
Ah, good. Ignore my last post then :P
And I thought I had bad luck.....
Well, oddly enough, it doesn't work for me. However, the following does; although with me being in the UK, and you being in Norway, then YMMV as they say. (for...
The errors don't matter (it's as you said: the unusual way the browser is loaded with HTML code). However the text there does make a difference.
The code you are using is searching for the text...
Well at least there's hope still. I was half expecting you to get a 404 error page or something similar.
Another question, though: When you scoll down to just below the video box, do you see...
Nice. It wouldn't hurt to check that the colour it returns is a valid colour before using it, though. Look to the Color.IsKnownColor Property, which returns a Boolean.
Dim bckColour As Color =...
If td is Nothing, then trying to access its NextSibling Property will throw a NullReference Exception as "Nothing" has no Properties to access. Similarly if NextSibling is Nothing then trying to...
Select Case True ? :)
Dim coupon = CDec(ShoppingListView.Rows(0).Cells("clmCoupon").Value).ToString("c")
Same Row, same value.
Something like:
The Form has a StartPosition property. You can set it to Manual in the Form's Properties Window in the Designer and then set its Location property as required
You mean the controls overflow at the right hand edge? I'm not seeing that effect when I try it.
The Client Area of a form is the portion of the Form inside its Title Bar and margins, i.e. purely...
I imagine they would be very close to the original size of the Form
Try substituting Me.ClientSize.Width and Me.ClientSize.Height for 540 and 400 respectively. (The Me.Width and Me.Height...
CChar(vbCrLf) will return vbCr as a single Char, so the above will split the string only on Carriage Returns, leaving any vbLf characters as the first character of every split line (except the first...
The error message states "File format is not valid." Are you sure the file path you are supplying to the RichTextBoxEx.LoadFile(String path) method is the path to a valid RTF file? Have you checked...
Your Form1.Designer Code will contain something like:
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
...
Assuming you have your copied data assigned to a string variable, you could strip out all the white space (space characters and line terminator characters) from that string, and then build a new...
You should not be splitting up the String representation of the date returned by the DateTimePicker's .Text property.
Instead, work with the DateTimePicker's .Value property which returns a Date...
You know, I swear before you edited your code, you had
Dim ItemSelection = ListBox1.SelectedItem declared at Form level, outside the BGW's DoWork event handler.
Of course it will give problems...
I mean replace
Dim ItemSelection = ListBox1.SelectedItem
with
Dim itemText = ListBox1.Text
and then replace all subsequent occurences of ItemSelection with itemText
And after all that,...
Try substituting
Dim itemText = ListBox1.Text
for
Dim ItemSelection = ListBox1.SelectedItem
I think it is easier on the brain if you break it down further, so you are not mentally doing multiple comparisons every time you write an If clause.
Example using a Button and two TextBoxes:
...