15,792,551 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by rspercy65 (Top 36 by date)
rspercy65
5-Jul-13 16:39pm
View
Reason for my vote of 5 \n Up-voted from 2 to 5
rspercy65
4-Jul-13 10:36am
View
Reason for my vote of 2 \n No source code or legitimate site to download from.
rspercy65
29-Sep-12 14:51pm
View
Is there anybody of the 9 million plus user in here that knows the correct way to use
Assembly.GetExecutingAssembly()GetManifestResourceStream(embeddedResource) in any Visual studio version(2005 to 2012) in VB. I have googled around 30+ pages and no one seams to know how to do this. I have used Ildasm on my app to get the correct assembly and file name. I can retrieve it but it will not pass to the myStream variable. In all versions of vb.net, this is all the same. I am beginning to think that it does not work at all.
rspercy65
28-Sep-12 3:39am
View
The Using...End Using is recognized in VB
rspercy65
5-Sep-12 20:44pm
View
I used my converter to covert the code(Mash-Up Code Converter) here on CP. I will be changing a few things in my converter now and re-posting it.
rspercy65
5-Sep-12 12:41pm
View
Thank you very much...I was missing the "Select" statement.
rspercy65
5-Sep-12 12:31pm
View
That is basically the same code I have posted...It does not work...The word "Key" does not go before .LinkUrl, or .EmbedUrl or .ThumbnailUrl
rspercy65
7-May-12 13:30pm
View
Dont worry about it...I removed everything that had todo with Bass and Treble from the app. The volume works great and I can adjust the Treble and Bass from my sound remote which also works good. I was experimenting with the Bass and Treble to see if I could get it to work...no luck.
Once again Thanx
rspercy65
7-May-12 10:04am
View
Found the problem...Treble and Bass are both unsupported and have been since VB5 or VB6. They only work with radios , cd players, VCR's... which can identify the specified commands. Of all the solutions I have downloaded and tried, None of them worked, including the one you posted.
The following flags apply to the digitalvideo device type:
MCI_DGV_SETAUDIO_BASS
MCI_DGV_SETAUDIO_TREBLE
and
MCI_DGV_SETAUDIO_SOURCE
A constant specifying the source of audio input is included in the dwValue member of the structure identified by lpSetAudio. The following constants are defined for the audio input sources:
MCI_DGV_SETAUDIO_SOURCE_AVERAGE
The average of the left and right audio channels.
MCI_DGV_SETAUDIO_SOURCE_LEFT
Left audio channel.
MCI_DGV_SETAUDIO_SOURCE_RIGHT
Right audio channel.
MCI_DGV_SETAUDIO_SOURCE_STEREO
Stereo.
None of these work with all the examples I have tried and they all use these flags.
Once again Thanx.
rspercy65
7-May-12 5:17am
View
That is the exact code I'm using and it does not work. My app works fine except for setting the bass and treble. I had 19 errors when I opened the project you posted above. Most of the problem is the compiler is looking at it as a Type instead of a New Class. I dont know how to fix this as I do not know C# programming. I did however convert this code to VBnet and am working on the fixes. I'll get back to you as soon as I get this working.
Thanx for your time and patience.
rspercy65
rspercy65
13-Mar-12 7:57am
View
Yes this app does access the regitry on a couple of occassions during the run, and then you dont need it for awhile after that. Its a run-once-aweek application. It is a visual wallpaper changer for the LogonUI and the desktop background. All I have to do now is write the article. Although when Windows 8 comes out, this program will be some-what useless as we will be able to change the logonUI without any third-party programs like this one. It will still be usefull to windows 7 users.
rspercy65
12-Mar-12 15:24pm
View
Right now my app is forcing the user to get admin rights. I think I'll leave it at that. I think that trying to have the application check itself would be kind of foolish when it is being done already by asking the user to get 'admin rights' before (He or She) can run the app.
Once again, Thanx very much for your help.
rspercy65
11-Mar-12 17:39pm
View
The code that Im using only checks for "ADMINS" and nothing else. Basically I want the ("program to check itself") for elavated permission and not the user, then display a message to the user to do the "Right-Click" thing and then click compatibility tab and check the "runas" checkbox.
Sorry for the inconvenience. I am thinking of just telling them in my article that the program needs to be "runas admin". Thanks for your time and patience.
rspercy65
11-Mar-12 9:45am
View
The code that I am using checks the user for elavated permission(aka: Admin). This is limiting it to a select few which I think is wrong. I want everybody to be able to use the program. For now they will just have to right click for Properties, click compatibility tab and check the "runas" checkbox.
rspercy65
19-Sep-11 16:43pm
View
Yes I Did, I had to UnInstall All Visual Studios' And Re-InStall them
all over again , download and install all the updates untill current
again. Im still working on the XP updates for VS2005.
rspercy65
15-Sep-11 20:00pm
View
I have all 3 versions of VS and it does the same thing in all of them. The ControlDesigner does not show in the Intellisense nor does it show in the add reference. I have the Advanced Options set to ".Net 4 Framework for VS10, .Net 3.5 For VS 9.0 and .Net 2.0 Framework for VS 8.0." These are all on different computers, VS8.0/XP, VS9.0/Vista, VS10.0/Win7. They are all up to date. All service packs installed for everything.
I am trying to create a button control similar to SSDiver2112's CButton except I want to create the buttons on a T83 Calculator with the same ARC style.
rspercy65
15-Sep-11 19:20pm
View
Have done all that before I posted.
rspercy65
4-Sep-11 13:54pm
View
THNX ALOT...I totally forgot about Mr. Popwell's site.
rspercy65
22-Aug-11 21:42pm
View
Deleted
The best thing todo is open the control panel and in the search box(top right corner) enter in "a" or "e". This will give you basically the same results as the GodMode.
rspercy65
2-Jul-11 18:03pm
View
Deleted
The Header is "God Mode" which I thought meant ALL control panel Items, Not a certain section like "sound", "service", or "mouse". I tried your way and it took me 5 times to find what I was looking for. I found that it is much easier just entering the "a" or "e", it's alot faster.
rspercy65
1-Jun-11 13:35pm
View
I can use it. All I need is the correct Namespaces and Classes for the Imports. I already to go.
THNX Alot guys.
rspercy65
1-Jun-11 13:15pm
View
I did not think you could mix WPF code with WinForms.
rspercy65
21-May-11 15:03pm
View
Hi Christain,
I am fairly new to WPF as this is my first project using Blend and WPF. My project is 99% complete except for that. I cannot find any easy to follow projects anywhere that use a listbox
horizontally with thumbnails. They are all pretty much all Advanced code that I dont understand right now. I will as time goes on, but for now I am quite lost.
rspercy65
13-May-11 11:32am
View
This is not working for me. I tried this and several other routines and none of them worked either. I am dragging a (.cs|.vb) file onto a textbox named tb. Here is the code...
Private Sub ProcessFile(ByVal fileName As String)
If fileName <> Nothing Then
If fileName.EndsWith(".cs") Then
Dim popupMenu As New AutocompleteMenu(tb)
popupMenu.Items.ImageList = iLAutocomplete
tb.Language = Language.CSharp
BuildAutocompleteMenu(popupMenu)
tb.Text = My.Computer.FileSystem.ReadAllText(fileName)
Else
Dim popupMenu As New AutocompleteMenu(tb)
popupMenu.Items.ImageList = iLAutocomplete
tb.Language = Language.VB
BuildAutocompleteMenuVB(popupMenu)
tb.Text = My.Computer.FileSystem.ReadAllText(fileName)
End If
End If
Thread.Sleep(1000)
End Sub
Private Sub tb_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles tb.DragDrop
Dim file_path As String() = DirectCast(e.Data.GetData(DataFormats.FileDrop, False), String())
Dim file As String = file_path(0)
Dim proc As ProcessFileDelegate = AddressOf ProcessFile
proc.BeginInvoke(file, Nothing, Nothing)
End Sub
Private Sub tb_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles tb.DragEnter
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.Copy
Else
e.Effect = DragDropEffects.None
End If
End Sub
I am using a Delegate Sub so the Windows Explorer and My App do not get hung-up.
rspercy65
12-May-11 23:55pm
View
I meant DragDrop from Windows Explorer, not OpenFileDialog. Sorry about the confusion. Your
solution does work, so I gave you a 5
rspercy65
12-May-11 10:29am
View
The file has to be opened for editing or reading.
rspercy65
7-May-11 14:03pm
View
ERROR : ThreadPool.QueueUserWorkItem(Function(o) ReBuildObjectExplorer(text)) does not produce a value.
It says it has to be a delagate Sub.
ThreadPool.QueueUserWorkItem(AddressOf ReBuildObjectExplorer, text) This works.
The other code...
BeginInvoke(
new Action(() =>
{
explorerList = list;
dgvObjectExplorer.RowCount = explorerList.Count;
dgvObjectExplorer.Invalidate();
})
};
has to remain in the sub it was created in. I tried using a Delagate sub but still no results are being displayed in the DataGridView. Here is the code I used...
Private Sub RebuildObjectExplorer(byVal text As String)
...blah, blah, blah
...
list.Sort(lastClassIndex + 1, list.Count - (lastClassIndex + 1), New ExplorerItemComparer())
explorerList = list
BeginInvoke(New Action(AddressOf PopulateGrid))
Catch
End Try
End Sub
Private Sub PopulateGrid()
dgv.RowCount = explorerList.Count
dgv.Invalidate()
End Sub
It seams to work in C-Sharp very well, but, not in VBNET
rspercy65
7-May-11 13:29pm
View
I've tried all converters and all give the same results. None of it works.
rspercy65
6-Apr-11 8:54am
View
Thanks for your solution Fredrik, Your name will be added to the code in my comments. I had to change some of the code to work with my app, but all-in-all, it works great!.
Once again, Thanx alot.
rspercy60
rspercy65
5-Apr-11 18:32pm
View
WinForms
rspercy65
23-Mar-11 4:50am
View
There is 13 different types, Cloudy, Cloudy/Wind, Partly Cloudy, Rain/Wind/Sleet,
Partly Cloudy/Win-
d...and the list goes on
The html tags are all the same(<br/> and </div>). There is 5 different forecast that I want to retreive. Here is my code
Dim patternAA As String = "<[\w]*/>{1}[\w\s/]*-{1}\r\n[\w\s/]*|\<\w*\/\>\w*\<\/\w*\>" &
"|\<\w*\/\>\w*\s\w*\<\/\w*\>|\<\w*\/\>\w*\s\w*\-\w*\<\/\w*\>|\<\w*\/\>\w*\s\w*\<\w*\/\>" &
"|\<\w*\/\>\w*\s\w*\<\/\w*\>|\<\w*\/\>\w*\s\w*\/\w*\s\w*\<\/\w*\>|\<\w*\/\>\w*\s\w*\s\w*\s\w*\<\/\w*\>" &
"|\<\w*\/\>\w*\s\w*\s\w*\<\/\w*\|\<\w*\/\>\w*\s\w*\/\w*\<\/\w*\>|\<\w*\/\>\w*\/\w*\/\w*\<\/\w*\>"
'Get the five conditions and the Images that we need.
For Each m In Regex.Matches(myTB.Text, patternAA, RegexOptions.Multiline)
strMatch += m.Value
Next
strMatch = strMatch.Replace("<br/>", "")
strMatch = strMatch.Replace("</div>", ",")
' MessageBox.Show(strMatch)
parts3 = Split(strMatch, ",")
lblCon1.Text = parts3(0)
RetrieveForecastA()
lblCon2.Text = parts3(1)
RetrieveForecastB()
lblCon3.Text = parts3(2)
RetrieveForecastC()
lblCon4.Text = parts3(3)
RetrieveForecastD()
lblCon5.Text = parts3(4)
RetrieveForecastE()
This works as long as there is no "carriage return" in the string i need from web page.
rspercy65
22-Mar-11 21:55pm
View
<br/>Partly Cloudy/Win-
d</div>
We use this string above as the data were going to find.
Using the above two-line string from a web page, we use this regex string,
\<\w*\>\w*\s\w*\/\w*\-\r\n\w*\<\/\w*\>. It works in expresso and Regex Designer and
this is the result '<br/>Partly Cloudy/Win-d</div>'. But, this does not work in Visual Basic 2010 pro. What I am trying to do is get this result so I can use it in a weather five day forecast.
rspercy65
22-Mar-11 20:27pm
View
What I need to see is this...
<br/>Partly Cloudy/Win-d</div>
Then I use the Replace statement and remove the(<br/> and </div>) tags and then place the results in a Label in a weather application
rspercy65
22-Mar-11 20:15pm
View
match the two-lines below(with tags) exactly the same.
<br/>Partly Cloudy/Win-
d</div>
rspercy65
22-Mar-11 20:08pm
View
Using my line above....How would I use it, with the single quotes, braces, brackets...what?
rspercy65
22-Mar-11 18:38pm
View
The dollar sign is not working in expresso or Rad Software Regex Designer or VB 10. I used it with
RegexOptions.Multiline. The'$' doesnt seem to work in any of these programs.
Show More