9,868,710 members (43,294 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
156 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 4
Page Size:
10
·
25
·
50
Author filtered by: pdoxtader
[x]
VB.NET Dialog Form Use Help
by
pdoxtader
Answer
11 May 2013
license:
CPOL
Show your dialog first and have it immediately disable the previous form. When it closes, have it re-enable the original form.
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
forcefully stop timer tick event
by
pdoxtader
Answer
11 May 2013
license:
CPOL
timer1.stoptimer2.stop This should do it. If you're still getting one last timer event firing after that, then try setting a public boolean to false in your button, and then check for it in the beginning of your timer events. If it's false (or whatever you set it to look for), then exit...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB
VB.NET
VB.Net - Is it best to have threads use separate classes?
by
pdoxtader
Answer
10 May 2013
license:
CPOL
I guess the simple answer is yes, but only if you believe that your code would be more manageable / legible if that thread's task were encapsulated in it's own class. Just looking at what you've provided, I would have to say yes - because that thread is responsible for a socket connection....
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
How I can Capture webcam for take a photo in a picture Box to my VB .net Program?
by
pdoxtader
Answer
10 May 2013
license:
CPOL
Here's an excellent free .dll with example projects in VB/net and C#
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
DELETE returns no error
by
pdoxtader
Answer
9 May 2013
license:
CPOL
Maybe something like this? Public Function EmailExists(ByVal emailAddy As String) As Boolean Dim query As String = "SELECT Count(*) FROM [dbNewsletter].[dbo].[SubscriberT] WHERE Email=@emailAddy" Dim rowCount As Integer Using conn As New...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
VB
VB.NET
How do i restrict the no. of threads based on user input
by
pdoxtader
Answer
9 May 2013
license:
CPOL
Here's a very simple and limited example of using a delegate to update your UI control from a background thread: Public Delegate Sub UiUpdateDelegate(ByVal message As String) Public updateMyUI As UiUpdateDelegate = AddressOf UpdateUI Private Sub UpdateUI(ByVal message As...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
How do i restrict the no. of threads based on user input
by
pdoxtader
Answer
9 May 2013
license:
CPOL
1.) Create a small class that has a thread object and two date objects (start date and finish date) in it. Every time you create a new thread, use this class to create it. Set the start date then you start the thread, and the finished date then it completes it's task. 2.) Add all started...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Multiple port listening on single socket
by
pdoxtader
Answer
9 May 2013
license:
CPOL
Dave's right - we need more information... There has to be a better way. How about listening on a single port and accepting multiple (100 or more) connections? That seems like the right way to go to me. But in short - you can't listen to 100 ports with a single socket. You'll need 100 sockets....
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Is Multi Threading required for this scenario
by
pdoxtader
Answer
9 May 2013
license:
CPOL
While CPallini is generally right, I always try to keep anything that is potentially reusable, or could possibly someday exhibit unexpected or unwanted behavior out of the UI. If there's a possibility that you can build your database calls into a class you can reuse, then do that. Also, I think...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
method to print from server to local printer (thermal printer)
by
pdoxtader
Answer
4 May 2013
license:
CPOL
I'm not sure I understand all the details here, so if I'm wrong about any of this, please correct me.1.) The printer connected to your server is not the printer connected to the remote user's computer. And your remote user is not on the same network... is he/she? If this is the case, then...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
VB
SQL-Server
VB.NET
Graphics, Image Manipulation in VB.NET
by
pdoxtader
Answer
3 May 2013
license:
CPOL
Here's a class I've assembled over the years, and modified along the way. You can use it to do lots of things with graphics... Resize images, get a byte array of an image in an image box, write an image that's been converted to a byte array to an image box, save the image to a .jpg and specify...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
display datagridview as combobox dropdown
by
pdoxtader
Answer
3 May 2013
license:
CPOL
I think you'll need to build that control yourself. It's not that hard... I would add a datagridview control to your form and hide it. Then, I would add a text box where I wanted the combobox to be, and a small button next to it to serve as the drop down button. When someone clicks on the...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
WinForm
Fetch Distinct values
by
pdoxtader
Answer
3 May 2013
license:
CPOL
You can also specify it in your SQL statement, like this: Using conn As New SqlConnection(SqlConnString) conn.Open() Using comm As New SqlCommand("SELECT Distinct [ItemNo] FROM [" & LiveDBName & "].[dbo].[Groups]", conn) Using reader As SqlDataReader =...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
How to get certain pages when using routing webpages
by
pdoxtader
Answer
2 May 2013
license:
CPOL
I would respectfully submit that localhost:3806/yarrow/Default.aspx is not, in fact, the correct path, and that the other is. I also think that your code may work as-is if you simply remove the tildes (~).
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
VB
VB.NET
routing
how to draw rectangle on image with mouse in asp.net
by
pdoxtader
Answer
2 May 2013
license:
CPOL
You'll need to use javascript for that, as it's client side stuff. There's an appropriate jQuery library called Image Area Select. I think that's what you need.Oh, and by the way - I found this in less then 10 seconds searching on Google. You should get used to using Google for questions...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
I have to get a list of 2 different file types from a folder and display it in the body of an email in table format.
by
pdoxtader
Answer
2 May 2013
license:
CPOL
It's the 'Or'. While index
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB
VB.NET
Can I have my login serve as my registration page also?
by
pdoxtader
Answer
30 Apr 2013
license:
CPOL
I see that other people have made suggestions... but it seems to me that this task would be better served by the use of a cookie, rather then a database. But if you absolutely need to use a database, call a javascript function from the "onclick" method in the submit button and pass the data...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
how to generate a flip book
by
pdoxtader
Answer
30 Apr 2013
license:
CPOL
Here's a setep by step tutorial on how a flip book is produced. The demo works nicely. Code and graphics are included.Check it out here.
General Programming
»
Uncategorised Quick Answers
»
General
XML
CSS
VB
jQuery
VB.NET
How do I get vb.net to add all links within a particular div from vb browser?
by
pdoxtader
Answer
30 Apr 2013
license:
CPOL
That's client side stuff - you would use javascript for that. Here's a javascript function that will return an array containing the IDs of all the elements (that have IDs) in the chosen div. You'll have to enumerate them and decide which children you need to use. This means that all the items...
General Programming
»
Uncategorised Quick Answers
»
General
WebForms
VB
VB.NET
Browser
VisualStudio2012
Hiding hard coded credentials
by
pdoxtader
Answer
27 Apr 2013
license:
CPOL
It's easier to get those credentials then decompiling. You can just use Sysinternals Process Explorer (if you haven't seen it yet, it's task manager on steroids). With that, you can view all the strings in any running application.I'm sure there are better ways now, but I would probably...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB
VB.NET
Serial port programming....
by
pdoxtader
Answer
27 Apr 2013
license:
CPOL
Yes, you should be using Google instead of posting this kind of question here. Here are a couple of the more relevant items from skydger's searches:There's a codeproject article already about sending text messages from .net. Check it out here.Here's an article that details serial port...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
How do I add my Program to (open with context menu)
by
pdoxtader
Answer
26 Apr 2013
license:
CPOL
You'll have to write a shell extension. From what I can tell, it can be done in .net 4.0 now (although it's still recommended to do it in unmanaged code). Here's an example provided by micorsoft. It's not beginner level stuff, and the example provided is C++ - fair warning.If this is the...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Tcp chat outside of LAN
by
pdoxtader
Answer
22 Apr 2013
license:
CPOL
Hi, Your questions are very broad, so if while answering I cover parts that seem obvious, or that you already know, please forgive me.1.) What is socket programming, and is this what I needA socket is a logical construct (class or object) that we use to communicate between computers...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Networking
TCP/IP
Sockets
Re: Need a Bit of Help
by
pdoxtader
Forum Message
22 Apr 2013
You really aren't giving me enough information here... but I'll take a stab at it anyway. Either your having a problem with your drag and drop code - and only getting one file (I've had situations
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Populating the Text values to Listbox
by
pdoxtader
Answer
18 Apr 2013
license:
CPOL
Ok, So your event handler for a button click will look something like this: Private Sub oBtn_Click(sender As System.Object, e As System.EventArgs) End Sub You can use this event handler for all your dynamically created buttons by testing for each button, like so: ...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
How do i search the access database to get data of a field... so that i can check if it is repeated or not
by
pdoxtader
Answer
17 Apr 2013
license:
CPOL
You could use this function:Public Function BusIdExists(ByVal busid As String) As Boolean Dim theTable As DataTable = New DataTable() Dim thisSql As String = "" ' Prepare our select statement thisSql = "SELECT [some_colume_name] FROM [" & yourdatabase...
General Programming
»
Uncategorised Quick Answers
»
General
VB7.x
VB8.0
VB9.0
VB
VBScript
VB
VB10
Access
VB.NET
how do i manipulate the imagelist property of button through code,to change button image
by
pdoxtader
Answer
17 Apr 2013
license:
CPOL
I wouldn't do that at all if I wanted that functionality. I would use a toolstrip instead of a button. You can float them anywhere on your form, and make them transparent. You can set up a number of buttons, and hide the button with the image you want to remove, and show the button with the one...
General Programming
»
Uncategorised Quick Answers
»
General
VB8.0
VB
VB
VB10
Access
VB.NET
proxy server application in vb.net
by
pdoxtader
Answer
16 Apr 2013
license:
CPOL
Well, you're creating a new socket when you connect to it, and passing that new socket to Webproxy2 here:Dim socket As Socket = tcplistener.AcceptSocket()Dim webproxy As New WebProxy2(socket)Then, in webProxy2 it's passed to the private object clientSocket... Right? So to send that...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
how to get the height of the page in code behind
by
pdoxtader
Answer
15 Apr 2013
license:
CPOL
Yes, actually, you can. You can get the size of the browser window using javascript like this, and code accordingly. You can find a number of possible solutions here In this stack overflow article.And while there seems to be no direct way to get this to codebehind, you can always send it...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
VB
VB.NET
How to resize the image inside the PictureBox?
by
pdoxtader
Answer
15 Apr 2013
license:
CPOL
Here's a class that I cobbled together over the last few years from various sources, and heavily modified, that you can use to do image size scaling (using stretchblit), jpeg compression tweaking, take desktop screenshots, ect. You will want to use the: Public Function ResizeImage(ByVal...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB
VB.NET
Socket with data transfer in encrypted format
by
pdoxtader
Answer
15 Apr 2013
license:
CPOL
I'm pretty sure it's your text encoding: Dim dataFromClient As String = Encoding.ASCII.GetString(bytesFrom)Your encryption code is probably generating characters that can not be represented in ascII. try using: Encoding.Unicode...on both ends instead.
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Re: ZIP files not readable in Explorer
by
pdoxtader
Forum Message
15 Apr 2013
Hmmm... I was using WinRar while testing, and didn't notice this. I'll have to look into it when I have the chance. I'm sure it's just some #ZipLib configuration detail. I'll post back here and let yo
General Discussions
»
Article "Sharpziplib Or Dotnetzip... Which Should You Use?"
Re: Great Job
by
pdoxtader
Forum Message
15 Apr 2013
Thanks!
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Listing unmapped partitions
by
pdoxtader
Forum Message
3 Apr 2013
This class, as it is, will only return a list of logical drives and the physical discs they are mapped to. - Pete
General Discussions
»
Tip/Trick "Get A List Of Physical Disks And The Partitions On Them In Vb.Net The Easy Way"
Re: relpy server --to--> clients
by
pdoxtader
Forum Message
3 Apr 2013
This is just an example project. In the example project, I have the server replying to all clients so I could demonstrate that the server COULD reply to any client, or all clients. When a client c
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Looking forward to this
by
pdoxtader
Forum Message
23 Mar 2013
No, Sorry. Just reading this post I can see that you have more experience in those areas then I do. Best of luck with it though.
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: My vote of 5
by
pdoxtader
Forum Message
9 Mar 2013
Thanks!
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Looking forward to this
by
pdoxtader
Forum Message
9 Mar 2013
Wow... Thanks! I'm glad it's working out for you. When you're ready to move on to your Linux environment, check back here. I have a java client mostly finished (started it quite a while ago, but my fr
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Looking forward to this
by
pdoxtader
Forum Message
4 Mar 2013
Nice... I hope it works out for you. - Pete
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Bug in clsAsynchUnbuffWriter?
by
pdoxtader
Forum Message
3 Mar 2013
Thanks for posting this here - much appreciated! - Pete
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Client has disconnected
by
pdoxtader
Forum Message
3 Mar 2013
Hey Rusty, I hope you've resolved this by now. You'll get that error message "connection forcably closed" when you loose synchronization because there's an error on the other side that is ca
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: System.StackOverflowException' occurred in mscorlib.dll when trying throughput tests
by
pdoxtader
Forum Message
3 Mar 2013
This functionality is not bound to winforms. The example is winforms project, but the core functionality is in the classes TcpCommServer, and TcpCommClient. I provided the example so people would have
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
connecting a webcam using aforge.net in vb.net
by
pdoxtader
Answer
27 Jan 2013
license:
CPOL
This is the key line here, I think:Friend WithEvents VideoSourcePlayer1 As AForge.Controls.VideoSourcePlayerIt's not just an object, it's a 3rd party control - and it's found in the AForge class. It has Events - and I think you probably aren't handling them. I think you need to dig...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
connecting a webcam using aforge.net in vb.net
by
pdoxtader
Answer
27 Jan 2013
license:
CPOL
Hello, The error your describing - protection level errors are about scope. That object: VideoSourcePlayer1 is inaccessible from the class you are trying to call it from. In the code pieces you provided, I don't see it declared anywhere either. I would look for it's declaration, and...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Re: Client Connected
by
pdoxtader
Forum Message
22 Jan 2013
Hector, Test for the "Connected." notice in your client's callback. For example, dropping this code in your client's callback will add the connected notice to the listbox when the client co
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Small bug in find IpV4 address code...
by
pdoxtader
Forum Message
11 Dec 2012
Thanks for posting this... seems like a good fix. Just curious though... what problems were you having?
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Graceful disconnect
by
pdoxtader
Forum Message
5 Dec 2012
Hey Rusty, Sorry about the delay. Things have been crazy at work. You were right - I expected people to handle graceful disconnects themselves. If the client is going away, it should just se
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: My vote of 5
by
pdoxtader
Forum Message
28 Nov 2012
Thanks!
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: welcome message to clients
by
pdoxtader
Forum Message
19 Nov 2012
My first thought was "Just catch the 'Connected.' message in your callback.", and then I tried it... and realized that the system messages sub, as I have it implemented in the server won't pass along
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Re: Client has disconnected
by
pdoxtader
Forum Message
16 Nov 2012
Lol... Thanks Rusty. It's easy to seem like you have all the answers when it's your code. If I didn't have a little more insight into this library then everyone else, something would be wrong... peopl
General Discussions
»
Article "Reusable Multithreaded Tcp Client And Server Classes With Example Project In Vb.Net"
Page 1 of 4
1
2
3
4
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid