VS 2008 Way Of Changing When Deploying App Without Removing And Reading
Dec 18, 2010
I've got a webservice and the WSDL file it pointing to a local file for testing reasons, is there a way of changing this when deploying my app without removing and readding them all?
View 2 Replies
ADVERTISEMENT
Apr 18, 2010
problem with my code is that have a list and now need to read that list to 3different list as a title, total cost, currenlty tagged item? this is my code I have made so far:
Public Class Form1
Dim decSubTotal As Decimal
Public g_selected As String
Public m_Name() As String = {"Black Howk Down" & "Fear and Loafing" & "Fight"}
[code]....
View 1 Replies
Feb 20, 2011
Currently, my application will send the contents of a directory into a list box.
Dim folderDlg As New FolderBrowserDialog
folderDlg.ShowNewFolderButton = True
If (folderDlg.ShowDialog() = DialogResult.OK) Then
ListBox1.Text = folderDlg.SelectedPath
Dim di As New IO.DirectoryInfo(folderDlg.SelectedPath)
[Code] .....
For now, all that is inside the directory is a text file. I would like my program to read the contents of the text file and remove a set of common words, but I don't really know how to move forward here. Would it be best to create a class that holds a set of words that I would like to remove, then loop through the text file, remove any words that match those inside my class and then write what's left to a new .txt file?
View 5 Replies
Mar 12, 2010
I have used 2008 and click once to setup a deploy to a network area...however I have been asked to do a wee program for a friend.How would I create a setup file to give to them on a CD/ pendrive etc??
View 1 Replies
May 4, 2009
I'm new to VB and trying to figure out how I can replace a bit of descriptive text in a binary file. I presume its binary as I cant open it with anything but a hex editor. I've changed the text (file description) in the hex editor and saved it fine but I'm unsure how I go about saving just the section of information I need. I can work out the saving bit later.In the attached file you'll see the highlighted bit I want to edit. I need to replace the whole line or the file corrupt but I can fill it up with null characters and the numbers are just
View 3 Replies
Mar 20, 2010
I have an application that accesses a sql server 2008 database. The server and database is stored on my local harddrive and I would like to learn to scale this up to having multiple users in our office access the application which I will i deploy on a server. For now the database will stay on my pc until I am ready to put it on a dedicated server for myself but for now how do I allow the application still to access my database without allowing anyone direct access to my server or my pc drive. Here is my current connection string:
[Code]...
View 1 Replies
Oct 6, 2010
i have developed one windows service to support my front end application. I need to deploy only service project as MSI so client simply can install and no need to open services.msc for manual action.
I tired to use InstallUtil C:Myservice.exe and it is working but all client don't have VB.NET to find installUtil.
View 1 Replies
Mar 18, 2012
is there any way to hide or remove the top bar on a form/window in VB10 without changing the FormBorderStyle to None?
View 2 Replies
May 2, 2010
i have a project and i used NSIS to create a Setup file. I am able to install it to my system but some parts of the program do not work (and they work when i run my project in VB). For example i have a Back Up option that creates a back up but this does not work when i run the application via the installation file. Probably it has something to do with the directories?
If System.IO.Directory.Exists(CurDirectory + "Backup Folder") = False Then
System.IO.Directory.CreateDirectory(CurDirectory + "Backup Folder")
End If
how can i make it work from the installation file? Do i need to copy something somewhere?
View 4 Replies
Apr 19, 2011
I am trying to deploy a VB.net application that is currently using SQL Server 2008 as its database to connect to.I need this application to be able to include a copy of its data so that wherever I install the application there is no need for them to install SQL Express.
What i have been reading is that I should of been using SQL Server Compact Edition to do this. Is there any way that I can do this with using an .MDF file?If not, is it possible to convert an .MDF file to .SDF and then just include it in my vb.net app?
View 2 Replies
Apr 10, 2012
I have recently developed a back end database in SQL server 2008 R2 and attached it to a application in VB express 2010.Everything works fine and when i publish the application, it works fine on my machine, but once i try to setup up the application on another machine i get the error message: A network related or instance specific error occurred while establishing a connection to SQL Server. Server was not found or not accessible please verify the instance name is correct or allow remote connections.I have read numerous forums on this saying about changing the connection string and instance name.but with being novice i dont understand what needs to be changed etc.The sql server allows remote connections, but i am unsure what else needs changing to allow the application to work with the database on another machine.
View 5 Replies
Oct 21, 2009
How would I remove certain text from a textbox? I want it to be something like this.
Dim NewText as String = TextBox1.Text.Remove "1" Also, if there is no text, how can I keep it from crashing?
View 7 Replies
Aug 20, 2009
How do i remove all the items from the combobox?i triedVB.NET omboBox1.Items.Remove(ComboBox1.Items)
View 3 Replies
Aug 31, 2009
I have a button that when pressed I want it to remove all the ending urls that have ending with / just to remove / item on the end so it will live me a url with out / on the end if u know what I mean. [Code]
View 26 Replies
Dec 25, 2009
Is it possible to put a label on a form and automatically have it removed after a certain date?
View 5 Replies
Feb 16, 2010
I am using the follow code to obtain source code from my site:
Dim downloader1 As New Net.WebClient
Dim source1 As String = downloader.DownloadString("[URL]")
But there is code in the file which I am loading, something like:
<!-- load time: 0,05ms -->
<!-- Queries: 25 -->
But I want to remove all the <!-- --> lines from source1.
View 7 Replies
Aug 2, 2009
I'm wondering what the proper way to remove an item from an array is. The way i am doing it at the moment is:MyArray(0) = NothingIs this the best way to do it as i'm having problems with my programme and i think it may be something to do with this
View 10 Replies
May 26, 2009
I have two text boxes with a word in each. I am trying to remove both these words from another textbox.
so say for instance
textbox1.text = helllo
textbox2.text = world
[code].....
View 9 Replies
Jun 12, 2011
I Put together this bit of code. What the problem im having is Removing a Label after i place the code its in a select end slecte code . The Problem is in red.
the code
Dim Animals As String = (TextBox1.Text)
Select Case Animals
Case "Apples"
[Code].....
Everything works Accept the remove selection ... I think it has something to do with Dim LB As New Label() ... And ... Me.Controls.Remove(LB)
View 11 Replies
Jun 8, 2010
in my class i have a user defined event and i use the addhandler clause to link the event to a methodAgain this is for a download manager application im working on, and like download managers when u select an item (a download task) from the listview you want its thread log to show and be linked to the thread log so that every time the download task has new information it will be updated directly on the thread log.So addhandler clause worked perfectly for this. But now the problem im having is with removing the handle from previously selected tasks.
i am finding it hard to remove the event handle of the previously selected download task when a new download task gets selected because the previously selected task is variable. I can add a public dimension which corresponds to the previously selected task and that way be able to remove the handler everytime a new job is selected, but it seems abit sloppy to me. Actually i have other events specific to when each thread in a download changes so to remove those handlers i would need an array of the previously selected threads (and that seems even sloppier).
View 10 Replies
Mar 24, 2011
I have 3 list views: (steps)
1...One column listview_AllAddresses, read from several .txt files containing email addresses (creating a list with duplicate entries)
2...One column listview_RemoveFromList, containing email addresses populated by textbox add or drag and drop from listview_AllAddresses (working)
3...One column listview_DuplicatesRemoved, where final list is to be diplayed without duplications entries and (no code yet) items from listview_RemoveFromList removed as well
4...Write to a .txt file containing adjusted list of email addresses
Private Sub Button_ImportSource_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_ImportSource.Click
Try
OpenFileDialog1.Reset()
OpenFileDialog1.Filter = "txt|*.txt"
[code]....
Results are that I get is an exact list moved from ListView_AllAddresses to ListView_DuplicatesRemoved.
View 2 Replies
Oct 17, 2009
I have a textfile called Set.txt and what I want to do is to remove all multiple chars in the file.[code]I figured this is possible to do either checking for double letters and running a loop or maybe some regex, but i would like to know what you think the best way of doing this is.
View 2 Replies
Sep 28, 2009
I first noticed this problem using C#, but I thought at that time it was something that did not happen in VB, so I posted a similar question in the C# forums. I never saw it happen before, but it seems it does happen in VB too, so I decided to post the question again here in the hope that VB at least has something that helps me..The problem is that I have many (around 30) instances of a custom control on a Form. The custom control is just a class inheriting from Panel with some new properties. I decided to create two BackgroundColor properties (1 and 2) to allow for gradient backgrounds. I'm not sure if this matters, but I simply left the second BackgroundColor property empty (never initialized it), because I was not using it yet.After placing around 30 instances no my form, all in different levels of nesting in different FlowLayoutPanels (took me an hour at least to get everything right), I tested it out and decided it looked ok, and it didn't need a gradient background color after all.So, I went in the custom control code and simply deleted the second BackgroundColor property.The result was 30 errors in the form's Designer.vb file. It seems each control was still trying to set the property (to Color.Empty), but obviously could not find it.I could no longer access the form's design view, except if I click the 'ignore' button and lose all the controls.
Is there no way I can 'safely' remove a property from a control that is already on a form, so that the designer file updates itself accordingly and no longer tries to set the removed property?It seems foolish that I have to remove the 30 errors (actually 120, because I still need to remove 3 more properties) manually from the designer file, when I know the editor is perfectly capable of finding all references to some name and for example renaming them (the context menu Rename function), so why not delete them?I am sure I'm simply missing something basic here that I somehow never learned and never needed before in 2 or 3 years of using VB.NET.If not, do I really have to remove 120 lines manually, each hidden deep in the designer code in different lines?!I know I could simply remove all controls and re-add them, that would get rid of the errors, but it will take me forever to set them up again correctly, including the events etc..
View 3 Replies
Feb 19, 2009
I first noticed this problem using C#, but I thought at that time it was something that did not happen in VB, so I posted a similar question in the C# forums. I never saw it happen before, but it seems it does happen in VB too, so I decided to post the question again here in the hope that VB at least has something that helps me...
The problem is that I have many (around 30) instances of a custom control on a Form. The custom control is just a class inheriting from Panel with some new properties. I decided to create two BackgroundColor properties (1 and 2) to allow for gradient backgrounds. I'm not sure if this matters, but I simply left the second BackgroundColor property empty (never initialized it), because I was not using it yet.
After placing around 30 instances no my form, all in different levels of nesting in different FlowLayoutPanels (took me an hour at least to get everything right), I tested it out and decided it looked ok, and it didn't need a gradient background color after all.
So, I went in the custom control code and simply deleted the second BackgroundColor property.The result was 30 errors in the form's Designer.vb file. It seems each control was still trying to set the property (to Color.Empty), but obviously could not find it.I could no longer access the form's design view, except if I click the 'ignore' button and lose all the controls.
Is there no way I can 'safely' remove a property from a control that is already on a form, so that the designer file updates itself accordingly and no longer tries to set the removed property?It seems foolish that I have to remove the 30 errors (actually 120, because I still need to remove 3 more properties) manually from the designer file, when I know the editor is perfectly capable of finding all references to some name and for example renaming them (the context menu Rename function), so why not delete them?
View 2 Replies
Apr 2, 2009
I have a table with many values inside of it that might have single quotes around them. I need to create a duplicate table without those single quotes. I can't modify the original table as I need to use it, 'as-is' later.
I've done this with a table.Clone and using a foreach to loop through the rows and columns removing single quotes as I need and then putting that new row into the new table. It works and it's straight forward.....but
I'd like to do the same thing using LINQ. This was my attempt....
Dim myResults = From myRow In dtTable _
From myItem In myRow.ItemArray _
Where TypeOf myItem Is String AndAlso _
myItem.ToString.StartsWith("'"c) AndAlso _
myItem.ToString.EndsWith("'"c)
As you can see - I didn't get very far. I had trouble finding examples that weren't looking at a specific column in the DataRow. It looks like my code does pull back all the matching results - but I'm at a lose for how I can create a duplicate table/modify the values.
View 8 Replies
Dec 14, 2009
How would I remove files that are already added into the listview?
View 12 Replies
Nov 10, 2009
I have a userform which allows my users to go through numerous comboboxes to select a combination of items they want displayed in a datagridview. My datagridview is populated from sql queries to my database(s), depending on the choices made in the comboboxes. The first column has checkboxes so my user can pick which rows they want to keep. Once they've chosen what they want, they click a button to save those rows into a seperate sql table.
All this works well, but here's my problem. After they click the button to save to the table, or another button which simply clears the datagridview without saving to the table, I want to clear my datagridview. While it seems to work, after all my comboboxes are cleared, and I go through another iteration of choices, and I display all the rows again in the datagridview, I get a second column of checkboxes.
Right now the checkbox column is added right before the datagrid's datasource is set. I've tried adding this column outside the subroutine that populates the grid, but it doesn't work.And I've tried numerous ways to delete this column so it will be regenerated when the datagridview is repopulated. Different things either give me errors or bomb when I compile.how to remove a checkbox column from a datagridview for good?
View 2 Replies
Nov 8, 2009
suppose I have the following hirarchy:
Public Class PrimalClass
Public Event SomeEvent()
End Class
Public Class BaseClass
[code]....
this code compiles and runs.what I want to do, is remove the event SomeEvent in BaseClass so that DerivedClass won't be able to register a handler to it.
View 1 Replies
Apr 5, 2009
Whilst playing around with DataGridViews in VS I've accumalated quite a few TestDataSets within my project.
Can someone please tell me the correct way of removing these cleanly? At the moment I've been Right Clicking a DataSet (from within Solution Explorer) and either clicking 'Delete' or 'Exclude From Project'
Doing this throws up Errors in the Error list such as;
TestDataSet is not defined
TestDataSetTableAdapters is not defined
TestDataSet is not defined
TestDatasetTableAdapters is not defined
I then double click each error in turn which takes me to the actual code with the error and delete this.
I have quite a lot of TestDataSets and I'm hoping there is another way to do this much cleaner.
View 4 Replies
Dec 3, 2009
I need to add a reference for excel. But to do that i need to remove an earlier version i added.
How do i remove what i have already added so i can add another version?
View 4 Replies