Network Programming In VB?

May 1, 2012

I have done my application programming in VB. But now i am trying to do some application related to network programming. But i am unable to find the winsock control in Visual Studio 2010.

View 5 Replies


ADVERTISEMENT

VS 2005 Network Programming Side?

May 7, 2011

using vb.net and sql server i want to go to net work programming side. where i want to work on such applications where are network based, means to say that in a company, the application will be installed on main server and client will access them.

View 3 Replies

Network Programming - Detecting Internet Inactivity ?

Apr 26, 2011

Title says it all "Detecting internet Inactivity in VB.NET"

View 1 Replies

Write Code On Network Programming That Is Window Based?

Aug 24, 2010

how to write code on network programming that is window based. most of the code i read are console application.

View 4 Replies

Struct Used - Serialport.write() But Have To Use Byte[] In BeginSend() Network Tcp Programming ?

Dec 7, 2009

I have a basic confusion between serial port and network TCP communication to devices.

My colleague uses a vb struct as the nice easy to read way to create a packet to send out via a serial port. Like this basic code sample below of his vb.net serial call followed at bottom by my c# tcp beginsend network call.

Can I use a struct as well to call out for my TCP network beginsend? By looking at the signature of BeginSend(Byte[] as the beginning of the signature for that method call to send data to a connected socket, I don't see myself being able to use a struct.

Public Structure PacketRecord
Dim SourceAddress As Integer
Dim DestinationAddress As Integer
Dim Length As Integer

[CODE].....................

View 3 Replies

VS 2008 Network App - Send Message Or Network Package To Some Of The Clients In The Network

Aug 18, 2009

Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:

[Code]...

View 6 Replies

Best Programming Language For Programming Windows Applications?

Jan 28, 2012

I have recently taken a liking to programming, and have programmed a few games in C#,my friend has asked me to program an application for him to use in his shop. But I have no idea of what language is best suitable?

View 8 Replies

VS 2008 My.Computer.Network.Ping() Cannot See Network Under Windows 7

Nov 18, 2011

I have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.

[Code]....

View 6 Replies

.net - Using A FileStream On A Network When The Network Drops?

Mar 26, 2012

I am writing some code as part of a framework for opening a file.The file is of custom type and should not be opened by more than one instance of my application. To stop multiple file opening I use a filestream to create a lock file and then keep said filestream open. This seems to work in preventing another instance of my application from opening the file ( as it will fail in recreating the lock stream in the files open code ) but if the file is on a network share and the network drops then the original application also can not access the file any more.The code to get the lock stream is as follows:

Try
' We need to keep this stream alive to prevent other applications gaining access to the lock
mLockStream = New FileStream(mLockPath, FileMode.CreateNew, FileAccess.Write, FileShare.None)[code]....

In this I create the lock stream the first time round and then if another application tries to create it, it throws an exception and stops them from getting any further. This is kind of how it needs to work, unfortunately as I said, if this is done across a network and then the network connection is dropped for some reason then I can not delete the lock stream as I get an IOException telling me a process cannot access the file as it is open in another process ( which shouldn't be happening I don't think).

View 1 Replies

Game Programming :: Programming Such As OOP ?

Oct 30, 2011

I avidly create games in VB.net. Being a hobby programmer I give my games away for free. Since I'm a hobbiest without formal training I do try and educate myself on proper programming principles and follow them when programming such as OOP. There are however some things I have obviously missed being self-taught that perhaps I would know if I were formally educated. Once such issue that has really been my bane is how different classes (from now on referred to as objects) 'know' about each other WITHOUT programming specific interaction.

Okay imagine this, you have a space game and the following objects

[CODE]...............

Now each one of these objects has a Health, X,Y and Z private members and properties that are all inherited from clsSpaceEntity for argument sake. Now one way of programming collision between them would be to code out the following logic in the main game loop

[CODE].........................

Now this might seam okay if your talking about the simple example above but some of my games have tens or even HUNDREDS of objects that interact in this basic way. Is there a way in OOP to do the following... for each thing that inherits from clsSpaceEntity check against every other object that inherits this type (except itself) and if they collide then reduce health next? This sort of ability for a type of objects/class or whatever to be 'aware' of another and how they are the same/different and interact would save me tonnes and tonnes and TONNES of coding.

View 1 Replies

Transfer Files From One Computer In One Network To Another Computer With A Totally Different Network

Jun 22, 2011

I have a problem I want to make a server and client where the server is password protected and will make the client display files/folders in a designated folder which will be in the server's current directory and the client will ask what IP and password to connect to and if the password is correct is allows the client to access the files/folders in that folder in C.D. of the server and the client can download any file within the folder by clicking a button, yet don't even know where to start.

View 7 Replies

.NET API For Music Programming?

Jul 6, 2010

In short words I am looking for a .NET translation of JFugue.Update I realize that there is no real .NET alternative for JFugue,Note: I want to emphsize that my search is on the transcription part, not the playing part, in other words, I am looking for a .NET engine that has MIDI-mapping classes etc.

View 5 Replies

C# - Parallel Programming In TPL?

Dec 2, 2010

im using tasks parallel library in .net 4.0 i want to have the ability to specify a task for each core independant of the other cores. usually in TPL, i create a task and i tell it to run in parallel, i have no control over the number of threads created nor can i control the number of cores to participate in the parallel task. also, i cant specify each particular core a different task.i'd like to know how to achieve this in TPL if it is possible.

View 3 Replies

Creating A Sub Through Programming?

Apr 24, 2009

n a program i'm using i want to be able to create a box (done that) but pressing a button, but now i need to attach a sub onto it so i can interact with it, how would i do this?

View 6 Replies

How To Start With Programming In .Net

Oct 3, 2011

So far I have worked with C Programming and C++ Programming. I am fairly new to DOT NET environment and my current project requires VB.Net skills. I need to know

1)Which books to refer for starting with VB.Net language?
2)How to Start with VB.Net Programming?
3)Are there any forums/articles for quick head start.

View 2 Replies

Linear Programming With VB?

Oct 25, 2011

I want to use VB for linear programming. Can any one tell me the best approach or give sample codes.

View 2 Replies

Parallel Programming In .net 4.0

Mar 31, 2011

I have been reading up on the parallel programming and even now still a little confused on the whole concepts. Lets say I have a single project with about 5 classes that interact and have local variables in methods and variables accessible to all methods in a single class and even 1 or 2 variables accessible to all classes accessed through instantiation. Now using threads I know that global variables would be overridden by multiple threads if there were no locking applied but local variables to a method/function do not, right?

So if I ran the project multiple times meaning as a new process, the methods and variables would be thread safe right and no data corruption occurs? So to implement parallel programming using the task factory, if I created a project that basically creates tasks and each task is basically running an instance of another project, then shouldn't the variables and data be thread safe and safe from corruption? But what if I had the output files and they named by Output & datetime.now.tostring, would there be conflict issues and I ask this knowing that I have seen this happen when trying it. [Code]

View 1 Replies

Programming - Or Vb 6.0 Idk The Difference

Aug 20, 2010

i was wondering how do you know if your programming in vb.net or vb 6.0 idk the difference.

View 12 Replies

Programming And The Language .net?

Oct 21, 2010

I have a general question about the programming language vb.net. I wonder how I should see the vb.net language compared to a "lower generation " language like for example C+.For example if you had to develop a CRM application , can you build such an application in both programming languages with the same amount of detail and efficiency?

Is it right if I say that the "language" vb.net is an abstract version of for a example a lower language like C+ in a way that the same possibilities are possible as with C+ but more efficient so it takes the programmer less time? So basically if you would compare it with building a house in C+ you would need to build a door with all the separate pieces while in vb.net you would just place a door as a whole. But this does not mean the possibilities of building a house as a whole are fewer.

So now comes my final question: can vb.net be seen as a true programming language like C and can somebody who masters vb.net be seen as an equally good programmer as somebody who masters C+. Or would the C+ programmer in this case be superior?

View 1 Replies

VB Programming Usually Im A PHP Programmer?

Feb 10, 2009

I'm new to VB programming usually im a PHP programmer, i am advancing fairy fast on the structure, theres one thing i have been stumped on[URL]..What im trying to do is when i put the detaisl in the fields, i press save and then am prompted to save with my own extension

[Code]...

View 2 Replies

What Is Programming Process

Aug 20, 2010

I want to know what is the programming process of Visual Basic 6.0 i.e how does the program compile, like in vb.net it is converted to MSIL, how does the programming process go in VB 6.0

View 3 Replies

Which Softwares For VB 6.0 / 8.0 / 9.0 Programming

Jul 16, 2010

I am a new visual basic learner and I already have some difficulties in finding the proper softwares to start my first programs. I will have to develop in vb6.0 and 8.0 (.net 2005) and 9.0 (.net 2008), what softwares do i have to use? From my search, I will have to use Visual Basic 6.0, Enterprise Edition (or another edition) for 6.0 programming, right? And for 2005/2008 vb.net programming, could I use visual studio 2010 for both languages or is that better to use visual studio 2005 and 2008? Well i guess i might be a bit lost in all those different terms.

View 6 Replies

Why Use VB Over Other Programming Languages

Feb 24, 2011

Why use VB over other programming languages?

View 2 Replies

.net - Programming Readability With Strings?

Jun 22, 2011

While working on a project I have come across a way of not having to check if a string isnull or empty

dim sb as new stringbuilder
dim bob as string
sb.append((bob & string.empty).padLeft(10, " "))

Here, bob is not instantiated but doesn't throw a null reference error. In situations like this, is it more readable to do the above code or the below code?

if string.isnullorempty(bob) then
sb.append(string.empty.padleft(10, " ")
else
sb.append(bob.padleft(10," "))
endif

I personally think method #1 is more readable and maintainable.

View 3 Replies

Address A Commandbutton Via Programming?

Oct 27, 2010

Dim obj As CommandButton
' I would like to do smth like this, the name of the button is in a variable
a = "Commandbutton1"
Set obj = a
obj.BackColor = vbBlack

View 16 Replies

Asynchronous Programming Using CallBack?

Feb 1, 2010

I have a class with a mthod which does a a time consuming task. I know how to start the method in a separate thread using the Threading.Thread class. What I want to do is use callback so as to have the method report its result to another method when completed. I chose to use the asynchronous Begin/End call pattern.

Private Function BeginConnect(ByVal URl As String, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult
'Some Code
End Function

[code]....

View 13 Replies

Asynchronous Socket Programming?

Feb 23, 2010

i'm creating an Asynchronous socket programming in vb.net. i've utilised the code from Asynchronous client and server code frtom the following links:m a new user so could post only one link fully)When I try to connect the for more than one client the second client always waits until the first clientcompletes the call. i want the clients to accept calls at the same time

View 1 Replies

Beginner Programming With If Then Else Statements?

Oct 8, 2011

I am trying to create a program that calculates the prices of different payment methods of a buffet.The program requirements are simple. The buffet start in 1/7/2011 and ends 31/8/2011. Payments methods are online, cash and coupon. coupon is only valid from 1/8/2011 to 31/8/ 2011. 1 child is free for every 2 adult that pay. There are different prices for weekends (sat and sun) and different prices for weekdays. [code]

View 3 Replies

C# - Area Of Focus In .Net Programming?

Mar 1, 2011

In an article in techrepublic about 10 tips to go from a beginner to an intermediate developer

one of the auther's suggestion was "try to become an expert in at least one area of focus" and learn advance idea in depth about that area. With this in my mind I have programmed for about a year mainly for database application in .NET envirnoment (VB/C#), Currently I want to focus or be an expert in at least one area of .NET environmt. As a resutl I had skimmed some area in .NET such as WCF,WPF, ASP.Net MVC ...etc (just reading an overview of different books). My current job . also demand on database programming mainly for desktop application.

So can you suggest me a list of areas of focus in .Net where I can delve on it beside my current job.

I am not sure whether they can be an area of focus I had some ideas such as SOA with WCF

MVC web application Database design and modelling

Edit @sajoshi I have some strength on data modeling and objected oriented design and mainly I like to work in domain modeling and object persistance with ORM tools.I have little interest on UI design.

View 6 Replies

Clearly VB Programming With Microsoft VB 2010?

Apr 16, 2012

i am stuck on chap 10 question 3,6,10, i dont know why they are giving me a hard time.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved