VS 2008 Share Strings With Class?

Oct 22, 2009

Alright i have 3 strings in a class1.vb. In form1 it will put in a text. In form2 it will read the 3 strings and print them on 3 textbox

View 1 Replies


ADVERTISEMENT

Share A String Into Two Strings?

Sep 16, 2010

I am working on a project and have a problem Suppose I have this text in a string, "timvisee, hi, this is some text"How should I schijden this text in two different strings.In the first string, I would like the name, that is' timvisee "in the second string should" hi, this is some text "will be shown.But the name (timvisee) may change.Also what the thing behind the name is changed to Deren. Only remains always between the name and the text are the following I hope it is clear what I mean.

[Code]...

View 3 Replies

How To Share Class Properties

Apr 17, 2010

I have an app with my own class "something".So, Im going to one of the my modules and declare public var as a class. After fillup this class by date, I would to get this date from the other module of my app. But there this var is unavailavle (its mean I have to redeclare it again. Its mean I'll lost

View 7 Replies

Share A Vb Class For 3+ Web Applications?

Dec 17, 2009

I have three different web applications that I made in VS08 vb.net. Each application uses a class that i continue to update (MyClass.vb), other than using Vault to propogate changes, is it possible to create a class or dll and put it out on the webserver and have each web app call that class or dll?

View 3 Replies

Share An Instance Of A Class Across The Application

Feb 8, 2012

I am creating a Windows application using VS 2008. This has a MDI Parent form that hosts multiple MDI children forms. I have a login form that authenticates the user and creates an instance of a user class. This has information such as UserID, Name etc. I would like this instance available to other windows. How would I implement this functionality?

View 2 Replies

VS 2005 Where To Declare A Class To Share Between Two Forms?

Aug 24, 2011

There are two forms, first form list's the employees and the second form is used to add,edit the employee record. So to pass the information between the two forms i want to use the Employee Objects.To do so, where should i declare the Employee Class?

View 6 Replies

VS 2008 Send An Object Instead Of Strings Which Includes Multiple Unsigned Integers And Strings

Aug 13, 2009

I am working on a UDP Client/Server, and currently i have them sending back and forth strings, which i convert to bytes, and then open the bytes to read. I want to now send an Object instead of those strings, which includes multiple unsigned integers and strings.

View 39 Replies

VS 2008 Using List Of Strings Or Array Of Strings?

Oct 16, 2009

I'm migrating from VB6 to VB.NET, in hence my questions below:

I have to write a function that returns array of strings.

How can I initiate it to empty array? I need it since I have to check if it's empty array after it returns from this function.

Is list of arrays better for this purpose? If I use a list - Is it empty when it firstly defined? How can I check it it's empty?

View 3 Replies

Way To Concatenate List Of Strings Into A Comma-separated Strings, Where Strings Are Members Of An Object?

Oct 16, 2009

Say I have a List(Of Tag) with Tag being an object. One member of Tag, Tag.Description, is a string, and I want to make a comma-separated concatenation of the Description members.Is there an easier way to do this than to read the Description members into a List(Of String) and then use the Join function?

View 2 Replies

Event Vs Recursion - Program That Has A Large Set Of Classes In It - Each Class Will Need To Add One Or More Strings To One Of Two Lists

Mar 14, 2010

I have a program that has a large set of classes in it. A certain incident (I won't call it an event, yet, as that has a specific meaning that will cause trouble later) needs to a relatively small subset of these classes a question. The subset of classes will need to respond to the question, but for it to be able to do so, the classes may first need to ask a similar question of the same subset, which may prompt yet a further question, though this recursion will never go more than three or four levels down. Since only a small subset of these classes will participate in the questions, while the majority will never participate, and since all of these classes are virtually identical, and I can know at design time whether any given class is part of the subset or not, an event is appropriate. The main class can raise an event, and those classes in the subset can handle the event, while those classes that are not in the subset won't handle the event. Furthermore, any of these classes can raise the event again with different parameters, as needed. Thus far, an event appears to be ideal.

The problem is this: As a result of the event, each class will need to add one or more strings to one of two lists. Event handlers can't return anything, so I can't be using the return values from functions to populate these lists.

Two options appear possible:

1) Include the two lists in the event arguments.

2) Have the two lists be accessible to all classes, and don't pass anything around.

The second part of the problem is that the event is effectively a question being asked of each class, and no action can be taken until each class has responded. If I simply raise an event and let each class respond, can I be certain that all classes that should respond have? An alternative solution would be to have each class expose a method, and call these methods for each class in turn. By doing this, I could get return values, but I would have to call the methods for ALL the classes, not just the subset that actually cares (the classes are all different types, but they all implement a common interface, and are added to a List (of ) that interface, so I can iterate through them all without much difficulty). So, the event seems more efficient, but adding a function to the common interface for the classes is the approach most certain of being a solution.

View 7 Replies

VS 2008 'randomise' The Share Values?

Jul 24, 2009

how can I 'randomise' the share values? (I am wanting to have some shares to have a higher risk than others, usually the ones with the higher value.)

View 3 Replies

Visual Basic 2008 Share A Folder

Jan 12, 2011

I have the code to create a folder, does anyone have the code to share the folder and set the permission for everyone to have full control?

View 4 Replies

Visual Basic 2008 Share A Folder?

Jan 12, 2011

I have the code to create a folder, does anyone have the code to share the folder and set the permission for everyone to have full control?

View 4 Replies

VS 2008 - How To Edit Share Permissions (not NTFS)

Jul 8, 2009

I need to build an app that can create a network share and give it full read/write permissions to everyone.
I have this code to create/delete network shares: [Code] But it only changes the NTFS permissions, not the share permissions. I'm running Windows 7 RC (64-bit) using Visual Basic 2008 Express. Does anyone have any ideas on how to change the share permissions, not ntfs?

View 1 Replies

VS 2008 - TCP File Share (Sending String)

Feb 7, 2012

I didn't saw much samples about tcp file share. They look similar to what I am using to send string. My question is : Does these codes work with any kind of files? And May I have some hints about how to do it?

View 1 Replies

VS 2008 Creating A User And Share Permissions?

Mar 25, 2010

I'm creating an application that works with another I have no control over. My application needs to be able to create a user and change share permissions. Currently I am able to make a share, but I can't figure out how to set access permissions for that share.

The idea is that the newly created user (w/ password) will have permissions on the share I create.

View 1 Replies

VS 2008 Copy File To Network Share With Username/pass Passed In The Code

Aug 4, 2010

I've been looking at accessing shared folders, read and write, via the network without being prompted by the OS for the username and password.

On this forum, and googling, I can find many things about accessing network shares, but none using code which also passes the username and password required.

What I'm basically looking for is to not have to map a drive on the users computer. Then using code, write or read files from a network share and at the same time pass the username / password required for that network share.

View 11 Replies

VS 2005 : Find The "odd" Strings From Html Class?

Dec 27, 2009

I am writing the code as I got the time from the timeanddate site as I use html class method to get the string.

Module Module1
Public Sub time1()
'Create a request for the URL.
Dim request As Net.WebRequest = Net.WebRequest.Create("http://www.timeanddate.com/worldclock/city.html?n=240")
' If required by the server, set the credentials.

[code]....

The statement of If time1() Then is incorrect which it needs a value, like if it true. how I can find out the valid time on other the site and then find the "odd" strings from html class?

View 9 Replies

VS 2008 - Creating A Tycoon Game / Make The Player Either A 'job Offer' Or 'share Offer'?

Jul 24, 2009

I am creating a tycoon game where you start at the bottom and go up the business ladder. At the end of the year, the player can either, stay with him current job, get another job or go it alone. I would like to know how I can make the player either a 'job offer' or 'share offer' when they own their own business.

View 4 Replies

VS 2008 Adding Class Object To List Or Array In A Different Class

Jun 21, 2010

I am trying to create an list or an array of a class.Here is my "Ingredient" class that I am trying to create a list of:[code]In my "recipe" class, I am want to create a list (or array) and I am drawing a big blank on how to do it. Can anyone point me in the right direction?

View 2 Replies

VS 2008 Component Class - Drag And Drop Control Onto New Class

Nov 21, 2009

I am searching for the Component Class. When I go to "Add New Item" ,in my project their is no Component Class Item in VS 2008. I would like to Drag and Drop control onto my new class and I can't see how to do this ?

View 6 Replies

VS 2008 Reference Parent Class From Inside Child Class?

Apr 11, 2009

I have a 'property management class' that contains several functions and properties. I have several other classes that use the 'management class' as a property to derive the value of several of its other properties.Is there a way for me to reference the outer class from the 'management class' functions without having to pass it as a parameter? I ask because several different classes can have this 'management class' as a property and am having a hard time typing the parameter.

View 7 Replies

Prepend A String To All Strings In A List Of Strings?

Aug 5, 2010

I have a list of strings. For each string in that list, I want to prepend another string. I wrote a method to do it, but I was wondering if there was something already in .NET I could use to do this. It seems like something that could be built in, but I was not able to find anything.

Here is the method I wrote:

Private Function PrependToAllInList(ByRef inputList As List(Of String), ByRef prependString As String) As List(Of String)
Dim returnList As List(Of String) = New List(Of String)
For Each inputString As String In inputList
returnList.Add(String.Format("{0}{1}", prependString, inputString))

[code].....

It works, but I would rather use built in functions whenever possible.

View 5 Replies

VS 2008 - Share Files From A Computer To A Computer That Are Connected In?

Dec 21, 2009

How do you share files from one computer to another that are connected in one wireless internet connection? I mean, it's possible using shared folders this means it could be possible in vb.net too..

View 1 Replies

VB 6 And 2008 Strings?

Nov 22, 2009

im wounder how to make a string error like that in vb so if the user write echi and not echo on a string it will get a error like a other variant of this if richtextbox1.text = ("ecoi") then msgbox("string error") but only on 1 string

View 3 Replies

VS 2008 - How To Send Strings To Other PC

Aug 17, 2010

I'm going to start a project so what I need to do is make something that is kinda like an email. I am working with the register part of it because just like an email you have to select who to send it to.

View 5 Replies

VS 2008 Add Color To Some Strings?

Feb 1, 2011

I read a text file and I want to make some changes and still save it as a text file.The change is to add color to some strings. How to do it?

1 2 3
3 4 5
4 5 7

Then

1 2 3
3 4 5
4 5 7

View 7 Replies

VS 2008 Arrays And Strings?

Apr 27, 2009

I have been summoned with the task of taking a tab delimited file and converting that file so it can be read by a third-party program. I am trying to think of the best way to do this, but I am having a hard time. Here is a view of the raw data that must be altered:

fkstoreidHeaderMarkB1RegNodateofbusinessNoRegEntriesTipsOverRingsVoids$Voids#NetSalesDP1_2GuestsDP3GuestsDP4GuestsDetailMarkfkdaypartidRecTypeGLB2Sales
1061HNULL101/01/2008NULLNULLNULL113.263512785.4714453137D2041005NULL2220.25
1061HNULL101/01/2008NULLNULLNULL113.263512785.4714453137D3041005NULL9170.19
1061HNULL101/01/2008NULLNULLNULL113.263512785.4714453137D4041005NULL670.75

[Code]...

I am toiling with the best way of doing this. So far, I am not having much luck. I have used arrays quite successfully in Java, but I am not sure that this is the best way to go here. I would have to get how many lines there are and read each line. Make the changes, and then go on to the next line. I think scanning the document line by line using a loop is the best way. However, I am not sure.

View 4 Replies

VS 2008 Comparing Strings?

Aug 10, 2009

Hopefully this question will have an easy answer; I've tried searching for the answer myself, but I don't know what to search for (I don't know what you would call this).

Is there a way to compare a string to see if it matches more than 1 value?

[Code]...

View 6 Replies

VS 2008 Comparisons Of Strings

Aug 30, 2010

I have a database of tables that I needed to do some comparison work on and sql server is limited to the means of doing string comparisons. I put all the data into lists and thought of using [URL] or string.contains but does not seem like it is working right. It is large amount of data and I need to be able to make some matches in order to avoid the manual checking of each string. Here is sample data and code;

[Code]...

View 1 Replies







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