Not working, I think the OP for that sample is using the newer versions of Winsock, I'm using 5.0 not 6.0 but in VB.NET 2010
Mr.M 89 Future Programmers
Mr.M 89 Future Programmers
Not working, I think the OP for that sample is using the newer versions of Winsock, I'm using 5.0 not 6.0 but in VB.NET 2010
Hi guys sorry to take so long. I'm still stuck here I thought of leaving the project as is but the very same problem that I was trying to avoid occurred where many clients send the same data at the same time and many data wasn't written to the file. Is there a way to show how I can implement the solution as you have stated, I'm not a Java guru.
To simple scale the project let's use 1 text file to write to and picture having as many as possible clients trying to write to this file same time.
Hi DW
I have create a client using VB.NET using Winsock 5.0 as a socket to communicate with the server which I did it in java.
The problem is that for terminating the client first send a termination request to the server and the server grants the permit and the server send back the response but on my client side it do indicate that the server has sent something because the message box will show but it has nothing. Here is what happens in a flow.
Client Send --(exit) message
And when the server receive this will know that the client is exiting but the client waits for the server response.
Server Send --(exit) message back to the client and but this is not being displayed on my client.
The problem is with the DataArrival
Here is what I have.
Private Sub AxWinsock1_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles AxWinsock1.DataArrival
Dim Server_Response As String
AxWinsock1.GetData(Server_Response)
MsgBox(Sever_Response)
End Sub
That is a VB.NET 2010 code
The VB5.0 is
Private Sub TestServer_DataArrival(ByVal bytesTotal As Long)
Dim Smsg As String
TestServer.GetData Smsg
MsgBox(Smsg)
End If
In VB 5.0 I did receive the message but in VB.NET I don't get nothing yes the Message box will popup but it will have nothing which means it go get the message but I don't know why the it not assigning it to the variable I've given it.
Anyone who can help me out thanks.
You need to use Stream as @Jim has said. Check out this good example I found it here:
net-informations.com/vbprj/dataset/retrieve-image.htm
And here is a step by step guide too:
support.microsoft.com/kb/321900
Hi,
I'm conducting a research in web hosting and I've just found a sample online which is a simple web server, its works fine but the only problem is that the browser only display texts and the images are not loaded I don't know what could be the problem, I even increased the Bytes where is says
Dim recvBytes(1024) As Byte
To
Dim recvBytes(10240) As Byte
I multiplied the 1024 by 10 which gave me 10240 but still its slow and still doesn't load image it keep saying (15) Items remaining - loading image and it never does load image not even one.
Here is the like where I got this code from.
www.java2s.com/Tutorial/VB/0400__Socket-Network/TcpListenerbasedWebserver.htm
Please do not post multiple post on one thing.
Ow sorry, I tried separating the codes but it was combined when I posted it, from line 8 it a code to transfer back the item to the first control so from line1 to 7 it what you want then from line 8 to the end its for transferring back so please put it in two different buttons to see it working.
As hericles have said. You can do it like this.
If txt_category.Text = "Admin" Then
Me.Hide()
Frm_admin.Show() ' Or you can use .Visible = True()
Else
If txt_category.Text = "Student" Then
Me.Hide()
Frm_Student.Show()
Else
If txt_category.Text = "Teacher" Then
Me.Hide()
Frm_Teacher.Show()
End If
End If
End If
Hope this helps.
You are asking on the wrong forum. This is a VB.NET not C# forum.
Also you want to add a normal button and you want it to be a search button?
If so and if you are using Windows Form then you will need to add the button from the tools panel, I'm not clear with what you want to search and where you want to search it.
For the images (pictures) how are they related to the search result? Please clear that out too.
Also when posting try to stick straight to the point sample of how or what you are trying to do also helps us see where you are going wrong and correct you.
Here is a post where I was making this app in java now I want to make it in c++.
https://www.daniweb.com/software-development/java/threads/459759/terminate-a-command-program
Console based.
Hi Dw I'm new in C++ and I'm trying to develop an interactive app.
I want for instance to run the app and have options printed then I choose one option then the app load relevant screen.
Suppose it an ATM app where you chose what transaction you want to perform from Check Balance, Withdraw, Deposit, and Exit.
Ow I think you want to transfer the selected item to another listbox I think but haven't testing this you need to trick it up with a selected item manner. Here is the sample but I'm not sure if the code will work but it for giving you the idea because I'm not near my laptop. Also try not using social network language (short cuts).
' Transfer Item to the second ListBox
Dim Item_To_Transfer As String
Item_To_Transfer = ListBox1.SelectedItem.ToString()
ListBox2.Items.Add(Item_To_Transfer)
ListBox1.Items.Remove(Item_To_Transfer)
' Transfer back to the first ListBox the Item.
Dim Item_To_Transfer_Back As String
Item_To_Transfer_Back = ListBox2.SelectedItem.ToString()
ListBox1.Items.Add(Item_To_Transfer_Back)
ListBox2.Items.Remove(Item_To_Transfer_Back)
Try out that and see if it solve your problem.
I personally don't get you straight, but I think you want to have a calendar where you will select the date and you want that selected date to be transferred somewhere like when you select a date you want it to be displayed on Label, but I don't understand on IN and OUT and the time those are things I don't understand.
Please try en-lighting me there so I could try helping you.
Have you tried?
PictureBox1.Image = ms
Simply Declare
Dim count As Integer
As global variable then under the buttonClick event handler at the very beginning of it add this.
count = count +1
lblDisplay.Text = count
That will keep on adding the number as you click the button starting from 0 upwards.
NOTE when you terminate the program and start again the count will also start afresh to keep the count going don't close the program.
Hope that answer your question.
Well try checking you OnForm close codes.
If you have found solution you need to mark the post as Solved.
What is your question exactly?
Well the code doesn't say what you are saying, in code you are checking if the icon is visible or not and what you are doing is that if the icon is visible you are jamming and also just after it has jammed you are also hiding the icon and below that is an IF statement automatically checking on it own if the icon is not visible so in this stage because you have hidden the icon now it will just to read this because the visibility state has now change to false so it will fire the code of which is unjamming the keyboard.
Try using event handlers, I will try tomorrow to post a sample code on how you should do it because for now I'm running out of Battery and I'm not near charger
Ok the problem seem to be on your last snippet. You are blocking the events because you interlinked it. I quote "
If NotificationIcon.Visible = True Then
KeyBoardJammer.Jam()
This is correct but you need to set something that will (let say when you are pressing and hold Shift for maybe 5 seconds then NotificationIcon1.Visible = True() 'Here is what will detect when to jam and when not to.) So what I'm saying is that you need something that will do something like this but what you did wrong is also calling
If NotificationIcon1.Visible = False() Then
So the problem is that you said if the icon is visible jam the keyboard and you also set the icon visibility to false and you also have codes that disable jamming so you need to separate this with a more different event handler then the on you used.
Change the event handler don't use if icon is visible or false because you also set the visibility after calling a function which also result in the system to unjam
I think your problem here is that Timer3 hasn't been called to start ticking. What I think you need to do is on the first form load place e.g. (Timer1.Stat()) to start timer1 then maybe on timer1 you can start the second timer and ensure that you stop timer1 and on timer2 you start the third timer and also ensure you stop timer2 and finally on timer3 you can leave your codes as is and also do stop timer3 after firing the events. You need to make is sort of a chain.
Ok try posting your code here so we can have a look at why it doesn't work. Please ensure you comment on codes for easy referral.
I'm not sure if I get your problem correct here. I think you are trying to say you are able to jam the keyboard on startup or before you hide the form but after you re-show the form it suppose to jam again the keyboard but it doesn't. Am I right? If so the reason for it not jamming again is that your jamming code or jamming function is on startup or the main call to the jam function is on Form load which is a reason why it do jam on startup so what you need to know is that the form doesn't start twice while the program is on debug especially the main form or the starting form so when you hide the form you are not terminating it but you are hiding it so when you show it again it won't read the startup or form load codes because it was already running it just that it wasn't shown on screen so you need to create another function or put your codes on under the call to show the form don't remove the code or call on form load they must be 2.
The one on form load and also
The one bellow the call you used to show the form back on screen.
Please provide with detailed info as Jim has said and also I don't think a program is capable of doing anything after stop debugging what I think you mean is "On Form Exit" which the code placed here are always executed before the program stop debugging or fully terminate or exit.
Also your codes are in a form of a poor programming as you didn't label the buttons accordingly for easy referral (so that we can see that this code is for this without having to read the entire code to see what is it for, and also no comments.
Try also to familiarize your self with those things they event help you easily spot the codes.
Hi DW
I have a Canon MP250 printer which can scan, copy, and print. I want to create my own ScanGear of a direct program to instruct the printer to print, and scan. I do have the disc that came with the printer but I just want to play around with it and like create my own app that will send printing commands to the printer and scanning commands to the printer to scan documents.
The main idea is not to use any of their software but be able to communicate with it and still do the printing, scanning functions as if I had installed their software's. I don't want to have their scangear on my laptop but rather create the program that will directly communicate with the device.
Anyone know how I can create this app or any link, documentation or anything that may point to the right direction with clues.
Thank you.
What you mean by modify software? You mean like making some changes on a software? If so then I doubt you find solutions. I think the software once exported from IDE or published you can't modify it you will have to just redo or do changes on a template project on IDE and rebuild and export with modifications but in this case I don't believe you have the project of VX software in source code to be able to do that modification you said.
If your question has been answered don't forget to mark it as Solved.
Well if you are not intending to change your mind to use TreeView, or Tab then I believe you can use Minimalist's idea but what I could suggest is that you can create the text files and put them on your project Resources name as each topic then you can search them on startup and for each found file create a menu button the same way you want it and you can place a control on the body of the form that you will use to display the texts on the selected topic file.
Note that you will have to create the buttons on startup if the texts files will be updated at a later stage or if there won't be any updates meaning new files that will be added via download then you can manually create the buttons and only assign the names you can also hard code the file location if that is the case but if it will add text files later you need to automate it because you don't know what will be the name of those future files.
Ow sorry about that the error says "ObjectCollection" meaning one of you control collection's I think its your ComboBox's Collection items is using the reserved name so try putting one by one and test to see which collection item is reserved.
Well by the look at that snap shoot it indicate that the word "Collection" is already reserved so you can't use that if you want to continue with it you can do like "cCollection" just like the word "Name" is reserved on a database so to use it I normally do like this "nName"
I once done some introduction on smartcard development using java and Gemalto or something like that but then I didn't have it but I used the JavaCard SDK that enlighten something. Keep in mind that for the PIN as you said is not encrypted within a card the PIN is verified instantly and as for an ATM when inserting a card you are waking up the ATM services and they are offline till you enter a PIN then if your PIN is correct then there are two programs running one getting the response(data) from CC (Control Center) and creates a text file in drive C:\ with the similar data that is available on the card so that the card can be updated and the data be matched easy and fast that is why data is in plain text and there is another program that gives the existence of this text file couple of few seconds after it was created the time is actually the file existence timeout so the while this time hasn't passed the third program is feeding(writing back the data to the card) then the second program delete the file.
If you want to test out this take for instance a Verifone POS terminal and on the back remove both sim cards or replace them with sim with a balance of 0.00 both airtime and data so that it won't connect online the take you card after turning the device on and swipe you will see what it …
Thanks I've just found a very interesting post labeled "How to Break VISA PVV" and it gives a guide on how to access the info but it focused on PST, PVV, and Bank PIN. The problem with that guide is that it uses some off topic math which is way complicated and hard. Here is the link to it: http://www.gae.ucm.es/~padilla/extrawork/visapvv.html the other problem is that how to do these calculation on vb.net because I had a problem with ~ sign
Hi Dw
I'm currently doing my research on card development and processing. I've found out that this card has three tracks but only track 1 and two are encoded and by the look at these data I then wandered that is there a way to decrypt the info stored in this card because track one has some numbers and ^ and my name on it and space and / and some numbers but I just read the ANSI x4.16 and saw that these numbers represent information and what I just thought is to develop a program to decrypt but the question is how to do that in vb.
Anyone knows how to do this or has some references that I can look at or documentations about this.
Thank you.
But how?
On my laptop it came with a program called Power something which was able to record video with an audio and it had a webcam previewer which acts as a mirror but then my laptop crashed and I re-inserted an OS that came with it but the disk samsung issued with these laptops do not have drivers not even drivers for wifi or intel graphics and now I can't get hold of this program so I decided to try develop mine but the problem is how to record video with audio enabled or a way to embed it while the video is recorded.
Hi Dw
I want to record video with audio, the current program has two forms of which one form record external video and the other form record internal so I've reduced the size of an external video capture to lower right hand corner of my screen and set it to always be top because the internal video record is the one that record and save video to disk but now I want to include audio. Any idea of how I can include audio to a video?
I do have another program that can record external audio from built-in mic and plugged mic maybe is there a way I can say embed the audio to the video before the video is written(saved) to disc?
Any suggestion, sample of how to do this will be appreciated.
Thank you.
I personally think Visual Basic is a bit easy to learn and understand once you know the basics because VB.NET is kinder similar to english because to write a code let's say for instance you want to display a HELLO WORLD message then as you know you want to display a HELLO WORLD you simply call the tool that you want it to display the message and instruct it to do so by calling lblDisplay.Text = "HELLO WORLD" which is in english or easy to understand if you understand english and have a basics of VB.NET
Where do you get the contents that are on the first gridview that you want to pass to another form? Please post you snippet here so that we can be able to help you out.
Agree with Oussama_1, to make it fancy you will have to create your own graphics and load them using this very same tool.
@ddanbe what I think is the problem here is the he is using a timer and a timer's interval is in its default values which result in it to execute more then one time, I noticed this when I've applied a Stop call below the MgsBox so that it will display the message and stop but it displayed more then one message before stopping so what I did was that I adjusted the interval to give it enough time to fire perform the task because when you give the timer enough time to pass it can read codes correctly and fire events in a correct way.
The smaller interval value is supplied the more repetition of events. The higher the values the less repetition of events.
Ok I've just tested this and got the solution,
Firstly start by increasing the timer interval to "1000" then
Secondly add the Stop call to your code as I've told you on my first post and debug. To play around with this change the interval to 500 and it will open your app twice but when increasing the interval 2x then the timer read once code and stop.
If TimeOfDay = "08:30:00 AM" Then
MsgBox("Testing")
Timer1.Stop()
End If
Remember to adjust the timers interval on timer properties to 1000.
Hope this answer the question.
What you need to do is stop the timer bellow your expression of opening a program
Timer1.Stop()
This will stop timer from ticking
Remember if your question is answered you must mark it answered.
What is it that you can do and what is it that you want, you want to extract files from resources or progressbar for the progress of the extraction?.
No you can name the text file any name you want but inside write for instance if the user chooses theme 1 then you can write any thing in text file that will indicate that the user has chosen this them so I made an example that you write a text theme1 then you can have an if statement checking which theme the user has choose like this
Dim MyTheme As String
MyTheme = My.Resources.MyTextFile.ToString ' Not 100% sure with this line I will verify it when I'm home.
If MyTheme = "theme1" Then
' Load the pictures that represent the 1st theme here.
Else
If MyTheme = "theme2" Then
' Load the pictures that represent the 2nd theme here
...
...
And so on
The pictures that represents the themes can be loaded as resources.
Hope this enlighten you on this.
No people don't taking this the other way, but when we provide solutions we need to ensure that the OP do supply what he/she had done so far because some like to enter to this career and they will post what they have thought of making without having a clue on how he/she will do it, so for those kind of things we need to point them to the right direction then they work from there and learn it. Yes its up to them to copy and past or learn but honestly if only the code is provided as solution then obviously they will just copy and past it because its what has been provided.
We are not fighting but we are guiding one another to do best, yes the forum is also about helping others but let's make sure we help them in such a way that they understand the solutions provided.
I know this thread is a bit old but what I just thought when reading your thread is that you can create let's say pics using your preference graphic design program such as CorelDraw for all your kind of themes you want to offer, remember the pics must correspond to your UI and then "This is a thought" you can create a text file on resources and then on this file just write maybe a name theme1 to reflect that when the program loads it should use theme 1 and then you will need to code it that if the text file contains this word which theme the program should use, where is it located and so on. This may require extra knowledge on edges the X and Y so that you will be able to either stretch the pics to fit or to use the correct cut ted pics to fit the size.
I haven't tried this yet
Hi Dw community
I don't know whether it me or, but there is something a bit wrong that keep on happening so I think we should remember that we were all a students once and if we didn't work harder and put much effort in practicing code we wouldn't know what we know today.
My point is based to those of us who are now posting only to get high points. I've seen quite a number of post of a new members whom seem to have no knowledge of VB.NET programming and have assignments to do whom just post the questions as is from question paper I believe the rule of this forum state it clear that a poster should show initial work and state clearly the problem in most cases it could be an error so that the community can help in solving that error but not the doing other peoples home work so that the thread will be marked answered and get extra points.
Let's us not do this to gain extra points but let's do it to help others too learn not spoon feeding them, because they won't learn, if a question is requesting us to do the home work that's clearly shows that the OP has no knowledge of programming so instead of us doing their homework let's rather point them to Introduction guides that we find it most useful so that they learn too. This comes after I saw a thread and the OP doesn't …
Can you kindly post here the error so that it could be easy to spot the problem. Please post the error as is.