Click here to Skip to main content
Page 1 of 4
Page Size: 10 · 25 · 50


Author filtered by: pdoxtader [x]
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.
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...
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....
Answer 10 May 2013   license: CPOL
Here's an excellent free .dll with example projects in VB/net and C#
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...
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...
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...
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....
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...
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...
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...
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...
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 =...
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 (~).
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...
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...
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.
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...
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...
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...
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...
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...
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
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: ...
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...
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...
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...
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...
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...
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.
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
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
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
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.
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
Forum Message 3 Mar 2013  
Thanks for posting this here - much appreciated! - Pete
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
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
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...
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...
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
Forum Message 11 Dec 2012  
Thanks for posting this... seems like a good fix. Just curious though... what problems were you having?
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
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
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

Page 1 of 4
1 2 3 4


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid