[2008] Change DB In SQLStr?
Jan 21, 2009My ConnectionString connect in database AccountDB.SQLStr = "Insert into User (Name) values('test')"It is possible to change database AccountDB in the SQLStr to insert in another database?
View 7 RepliesMy ConnectionString connect in database AccountDB.SQLStr = "Insert into User (Name) values('test')"It is possible to change database AccountDB in the SQLStr to insert in another database?
View 7 RepliesHow to change the frame rate in Visual Basic 2008 Media Player? I have error: System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object. IS there any way to fix this? Here's My Code
[Code]...
OK So basically as the title says, in my browser i have tabs, now when a new tab is open and the user will go to a new page, if they click to the next tab the url box & document title remain the same (until they click a link or something) are there any methods of detecting when the person clicks to another tab so that i can code it to change the textbox and form text?
View 4 Repliesi m developing a window application using vb.net & ms sql server 2008. The date is by default mm/dd/yyyy. But i wanna change this to dd/mm/yyyy. How is it possible and where do i hv to make changes?
View 3 RepliesI'm using Visual Studio 2010 / VB / dot net 4.0, and I have a drop-down menu in my left column that switches resource languages for the end user. It reads like this:
--------English ------- <<- Engish is always the default top language option
French |
Spanish |
[code].....
I am making a program to print on a printer with auto cut. The height of page is different each print. It depend on how many lines printed. how to make this change?
I try:
PrintDocument1.DefaultPageSettings.PaperSize
but how to change its
[code].....
How to change value of addresses in vb 2008? i want to change a value of a address in vb 08, it need to change a address from an other program. I have the addresses and the types of the addresses are float, 4 bytes and 2 bytes.
View 2 RepliesI have a large project that was originally written in VB6 using an ACCESS database. I want to rewrite it in vs2008 and change the database to SQL 2008. Someone on this site suggested that I look into NHibernate, which I am trying to do. Most of the samples are written in C#. My question is, does anyone know where I can find a sample of a project that is using NHibernate and VB.net? Or is there a better way to go?
View 1 RepliesI'm developing a Windows form. It contains textboxes, checkboxes and so on. When I move these controls (e.g. cut & paste from one frame to another in the same form), their names do not change (and it's good of course) but their function and event names are changed. Why it happens? How to avoid it? It causes me to move all functions from the old control to the new one. It's a lot of work and very annoying.
View 10 RepliesI would like to change the colour of my tabs, i have searched and what I found changed the tabs, but caused it to change colour to the right of the tabs which I would like to be black. I have used this:
Private Sub TabControl1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles TabControl1.DrawItem
Dim g As Graphics = e.Graphics
Dim f As Font = New Font(e.Font, FontStyle.Bold)
Dim b As New SolidBrush(Color.Black)
[Code] .....
Along with the ownerdrawfixed. How to make the area to the right of the tabs black as well.
when I go to the advanced compile options the dropdown box (and label with info) to change the target cpu missing.Do I need to change a setting, or is there an other way to change the target cpu?
View 2 RepliesI'm connecting to an acess DB, adding data works fine, but if I want to change data in an existing record it does not work nor trows up exceptions. What am I missing? I think the db is the one causing the trouble but I can not see how?
View 4 RepliesIve never come across this problem before , im trying to change my application icon(Desktop Icon). I normally change it in : My Project >>> Application >> Icon.But for some reason when i save all , build , publish , the icon just wont change
View 3 RepliesHow do i make it so the user cant change a text in a textbox with out disabling/read only?
The reason I dont want to use the disable function/read only is because it puts the gray background on.
I don't know if it's possible, but i want to change some of the defaults intellisenses. For example when i write try and press enter, the IDE puts the catch ex as exception and the end try, but i want that the finally word it's added too.
View 11 RepliesI was wondering how i could change the screen resolution... however I have a few additional requirements..The screen number needs to be passed in (for people with multiple screens)The resolution should be reverted when the application is closed - EVEN IF IT CRASHES - or is killed with "end process tree" (ie no code required to execute to change it back) - like games do Needs to not stuff up desktop icon locations when changing to a smaller resolution
View 4 RepliesI use the code below and its working well for my needs but id like to change the *.* so that I can say search for only *.jpg and *.gif Ive tried all sorts and cant find a method via google search.
Dim aryFi As IO.FileInfo() = di.GetFiles("*.*", SearchOption.AllDirectories)
I need to be able to change a line in the regisrty an am not sure how to go about it, i have searched but nothing i can understand at the moment.
HKCU,"SOFTWAREMicrosoftInternet ExplorerDesktopGeneral","Wallpaper",0x00020000,"%SYSTEMDRIVE%WebDreamSceneBeach.html"
The part in bold is the part i need to be able to change as i am having to write a little program to change the background on the desktop.
In my has 2 ComboBox fields and 1 NumericUpDown field. I would like change value umericUpDown in depend of value in Combobox.1. if ComboBox1 and ComboBox2 is empty NumericUpDown = 02. if ComboBox1 has some value and ComboBox2 is empty NumericUpDown = 13. if ComboBox1 is empty and ComboBox2 has some value NumericUpDown = 14. if ComboBox1 has some value and ComboBox2 has some value NumericUpDown = 2
View 6 RepliesI have a big XML files with lots of Attribute names and Values.
How to get all attribute name and check with user specified name, and change its value not name..
<cont>
<have>
<xmls>
[Code].....
I want to find a specific attribute name and change the value of it...
When i run my vb project the design and the size and style of the form change The form looks like vb6 forms
View 2 RepliesHow do I change the company name of my project?
View 2 Repliesam learning some VB 2008, and I am stuck, How would I go about changing some hex values in a file that I open from my OpenFileDialog?I don't want to actually SHOW any hex code, I justneed say 04 changed to 01,02,03,04,05,06,07,08,etc. They are at 0x0001B876... I just want a user to be able to chose an option from my combobox. I know how to say ifcombobox.selecteditem = "04"
View 11 RepliesI just want to write a function which will set the Vista's wallpaper using the file name supplied.
View 2 Repliesi have 2 txt boxes with a OK button i want to change the letter in the first box from a to b trying to design a crypto app which just changes the letter to the next one like
[Code]....
In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user. I attached some screen shots of my work.
View 1 RepliesI am trying work on a Form in VB 2008 that allow our Windows users change their domain account password. My code below
Dim dcDNS
As
String =
"Vietnamohio"
[Code]...
How can I make a vb application which will cause IE to use a proxy server (localhost 8888) when the main form loads and undo this change when the main form is closed??
View 2 RepliesI'm a newbie in vb. My first project is a grading system for a certain school. In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user
View 1 RepliesSuch as with using Visual Basic 2010. what is an easy simple program to make? Like making your own calculator or whatever.If I even tried fiddling around with Visual Basic 2010, I would change Form1 to the name of the thing that I am creating, along with changing the color of the foreground/background and the color of the text too.But its the command text where I have to add text to make it work too that I would have trouble with. I ain't smart when it comes to stuff like Visual Basic.
View 1 Replies