I'm trying to change a forms title at runtime where it = my textbox's text. But I can't even get it to change to "test". When I try to google it, it comes up with vb6's
.caption = "test".
When I try to search it on the forum, it gives me a error message saying:
"Error 502 Bad gateway"
I am trying to change every form title bar and border to green in my project. How do you change the all the forms title bar and border to green without changing other window applications title bar and border?
I am using Windows 7 64-bit and Visual Studio 2010 (VB.Net)
I am trying to write a media player using the wmplib.dll for playback. Everything is working but I found a one problem I can't find an answer to. How do you find the songs duration before actually playing the song? the code I am using is below. I get an error when I try to update the slider with the current position. The messagebox returns all zeros. (i.e. 0 - 0 -0 ).
' SET FILE NAME Dim sFile As String = "D:MusicSongsArtistsEaston Corbin�1-Easton Corbin�4 - The Way Love Looks.mp3"
I'm building a Visual Basic program to allow me to change my desktop background through VB. I've made it so the user can select a file and set it as the wallpaper but i'm wondering if there is a way to allow the user to decided on the position eg Stretch, tiled or centre.
Below is a short section of code from an application I am working on. What I am trying to do is to get a counter value to show when the application is minimized. When restored back to normal state, the name string is applied. It works, but it takes several minutes to change, and then never updates again. Not sure what the issue is.
[Code]...
I also tried a direct string conversion in the "elseif" part. No difference.
How I can set a Textbox or the report header title programmatically at runtime? Like as in a form - Me.text = "Sales Report" Depending on how I query the report I'd like to give the report a descriptive report name.
I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:
Im writing a app using vb.net, which has multiple front ends e.g a windows service and a windows forms app. Ive got all my business logic and database stuff compiled into 1 project (producing a dll) then the different front ends as different projects calling the dll.
In the backend / dll project Im connecting to 2 databases using app.config to store the connection strings and DataSets / TableAdapters. This all works fine .... Until
When I deploy the windows app, it deploys the exe and the dll produced by the backend project. when its installed on a client PC, Im need to point the app at a different db server and therefore need to change the connectionstring, but its packaged up in the dll.
is there any way I can use a settings file within my windows app (therefore deployed with my windows app) where I can define the connectionstring, which onload gets passsed through into my dll, so the backend connects the correct database. I know how to pass standard settings through (strings etc) but the my.settings.connectionstrings seem to be readonly.
I am beginner. When ever I close the form it reopens. I am closing it from the title bar (X). if we add a button and code it end or me.close(). it is working but when we try it from title bar (X) it reopens.
i have a program i've made a while, and one of the users wants to be able to load his own images to the background instead of the plain grey that is there now. i've searched and searched, and basically can get this working
i just slapped that onto a button just to get it to work as i was experimenting. but that only works for a file of that name, on my computer, in that folder. what i'm looking to do is get it so a user can browse his own directories for images and upload them as the background on the form. and be able to save the settings as well. but so far i have only seen different ways to load preset images that you can load. if it's even possible? i'd assume that you'd use the openfiledialog command, but i'm not that well versed in vb as of yet.
I have a forms application and I have multiple localizations for it. I've figured out how to add a button to a form, to change the localization and then read all the labels/etc and change them to the other language.What I would want to do instead now is click a button and it changes to the other language the current form but also the entire application so that any other windows opened while the application is open open in that other language.[code]This is the code I use when a button is clicked on a form to change it to Hindi the current form. However I want to when the button is clicked, change application to continue to run on that localization instead for the remainder of the time it is open.[code]
I have a forms application and I have multiple localizations for it. I've figured out how to add a button to a form, to change the localization and then read all the labels/etc and change them to the other language.What I would want to do instead now is click a button and it changes to the other language the current form but also theentire application so that any other windows opened while the application is open open in that other language.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Present <> OriginalCulture Then
I am working on a project that uses a .txt file to store data for my arrays. Everything is working correctly i.e. I can read the file and write to the file, my issues when I exit out of runtime I get this msg
Quote:
M:My4BVB....Customer.txt
This file has been modified outside of the source editor. Do you want to reload it?I understand what it means, what I would like to know - is there a way to stop it from popping-up?
How do I change my code so that it will change the Value of the My.Settings.* to what TextBox1.Text is
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If RadioButton1.Checked = True Then My.Settings.Acc1 = TextBox1.Text And My.Settings.Pass1 = TextBox2.Text
I have 2 Comboboxes on my Form which also has a DataGridView. One ComboBox is populated with Font Names and the other is populated with a range of Numbers (Font Sizes). On a button click I've added this code
just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one
I try to create a MDI child form that should be resizable but it should not have a title bar visible. Is it possible? Or is there a better method to display child windows within a main form than displaying other forms. In this case the panel would be visually better than the form but the panel cannot be set to act as a child like a form.
Every windows window has an icon, title, minimize, maximize, close button. those rest on a bar. this bar's height changes from xp to vista to 7. how can i obtain it's height?
How do we overwrite config file at runtime. I have four config files for DEV, TEST, UAT, PROD. Based on user selection I need to overwrite the default config file completely with one of the selection specific config files. These config files not only have appsettings section, but also has complex cutom sections and subelements with lot of attributes. I need to overwrite and refreshsections dynamically at runtime. I know there are so many articles on editing appsettings sections. But I want to completely overwrite the entire file.
I am working on a contract to repair problems in a application that interfaces with a custom built digitizer tablet.The application recognizes the tablet at startup, initiates calibration to locate the pad limits and then saves those limits to file.During the run of the application the user has a cursor that is changed to a line with a X on the left hand side of it. The user then uses this custom cursor to click in a PDF document where they would like the contents of the Digitizer pad to be placed. When they click a box signifying the size of the digitizer pad along with the same blank and X appears. What I have been having issue with is that the box and the line with the X appear most of the time but on occasion the line and X appears at either the top or bottom of the box and the click is no longer at the line with the X but somewhere in the middle of the box. This really screws up things and often the user has to uninstall and re-install the application to get it righted.
The values that save the calibration points are bound to variables during the build process, there is a separate routine to calibrate the digitizer pad if the user desires to do it again.
Public Structure IconInfo Public fIcon As Boolean Public xHotspot As Integer[code]......
In my app (written in VS 2003) I use OleDbDataAdapter's to load data. I have some functions that enable be to change the OleDbDataAdapter.SelectCommand.CommandText at run time, by adding a "WHERE" or "HAVING" section to the SQL command, or updating the "WHERE " or "HAVING" section. This way I have have generic load data functions. (load all invoices for Customer 123, load all invoices for the year 2009, or load all invoices for Customer 123 for the year 2009).
With the new VS 2008 TableAdapter, the TableAdaper.CommandCollection property is Protected. How can I edit the TableAdaper.CommandCollection(0).CommandText at run time?
I'm trying to create an object Of a specific type. I've got the following code, but it fails because it can't cast the new table object to the one that is already defined. I need table to start of an IEnumerable type so I can't declare is an object.
Public sub getTable(ByVal t as Type) Dim table As Table(Of Object) Dim tableType As Type = GetType(Table(Of )).MakeGenericType(t)
[code]....
is there a way of changing a variable type at runtime?