20,285 Topics
![]() | |
Hi- How can I change the content of the PictureBox control based on user entry? I'm assuming it would be similar to this: [CODE]If (TextBox1.Text = "Test") Then Picturebox1.Picture= (testpic.jpg) End If [/CODE] | |
Hello, I've been trying to create a function to calculate and return the total payment. RadioDay is a radio button with value of 7 while RadioHour is 70. Somehow I am getting InvalidCastException "Conversion from string "" to type 'Integer' is not valid." from the part where I want to … | |
please i need help here. i want write code for label control into my application. i wrote the code below, but was not getting the labels when i run the program. [CODE]GroupBox.Controls.Clear() Dim lbl1 As Label = New Label() lbl1.AutoSize = True lbl1.BackColor = System.Drawing.SystemColors.Control lbl1.Font = New Font(lbl1.Font.FontFamily, 20) … | |
i want to comare textbox value with datagridview items before adding this textbox value in datagridview | |
I am trying to use sql to sum a column in my access database and put the result of this in a text box. The code I have got is the following, but this is coming up with the error below. [QUOTE]Error : Conversion from type 'DBNull' to type 'String' … | |
hello today i start writing an application which uses mdi forms(its new to me). and i use the following code:(i set form1=idmdicontainer=true) , is this correct way to create mdi forms ? further i write the code : there i have 2 more forms (form2 and form 3) Private Sub … | |
Hi all, I was going through a lot of resources on how to populate a dataset.And i kind of got an error when trying to populate the created dataset with 4 select statements. but my sql uses the where clause,the other statements i saw select certain columns and go to … | |
I have a question about best practices as far as opening and closing the database connetion in my app. Currently I am opening and closing each time the database is accessed with a query or update. Should I be doing this? It’s a lot of opens and closes. Or maybe … | |
*new to C#* I have created a form , with a working coding , but i need an extra assistance. Somewhat , i am stuck on trying to figure out how to let the 3rd combobox value , determined by the first and second. Like this : [Main Form](http://i.imgur.com/1rePOge.png) For … | |
When one sets the DropDownStyle property of a combobox control to DropDownList, the system (from windows 7 on, not sure I had this problem in Vista) changes the appearance of the field, so that it somehow reminds one of a command button. I definitely need the DropDownList behavior, but I'd … | |
i need to on button click be able to search for an image rename and move the image to a new folder on next frm load pic box with an image base on the name of the file inside the folder | |
Hi Experts my excel data is copied successfully to the listview. But on importing to database, I get this error. InvalidArgument=Value of '5' is not valid for 'index' ParameterName:Index ================= I have 2 problems ================= Problem 1: What should be the problem when I importing from listview(I think it is … | |
I have earlier created the databases in the sql management studio. but a friend of mine said it would be possible to dreate the tables directly in visual studio and update to the database. I have tried to do it but I can't seem to make the tableadapters etc. because … | |
Hello, I have a listview1 in my form. And my form has the ability to fullscreen itself. In the meantime, I have this code: ListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize) But that would only depend on the listview's headersize. or the column's header width. I would like my all columns to share equal width. For … | |
HELLO! I've been debugging my code for an hour now. seriously. So I have this string: SQLString = "UPDATE `etmsystem`.`main` SET `timeIn` = '22:00' WHERE `main`.`serialNo` = '70002B4A8F9E'" actually the TIME and the SERIAL NO. here is to be represented by a variable. But I changed the code into that … | |
Good Day, how can i put a username and password in form? in Visual Basic 2008 | |
I receive this error  when I have this code: Private Sub EditUsers() Try Dim dt As New DataTable dt = ExecuteQuery("UPDATE tblUsers SET UserID = " & txtUserID.Text & ", UserName = '" & txtPassword.Text & "', Password = " & txtPassword.Text & ", LastName = '" & … | |
hi, I am using the Rich Text Box, Now I want to open the Word File, (It may be of 2013 or 2007) How Can i do This? !!! Important Thing !!! No matter if I have to import any of the Word addon or else.... But That should Work. … | |
Hello all, It’s a problem which is giving me pain. I have a table agent_registration which have following structure: agentID agentname patentID 001 a NONE 002 b 001 003 c 001 004 d 002 005 e 003 So, whenever we register a customer whose agentID is ‘005’ then how can … | |
This is a module that can be used to save tiff images pass in from a file dialog. This module was translated from C# to VB.net, and the original project can be found [URL="http://www.codeproject.com/Articles/16904/Save-images-into-a-multi-page-TIFF-file-or-add-ima"]here[/URL]. I do not claim rights to this code. You can copy this code straight down into … | |
I have created a form , with a working coding , but i need an extra assistance. Somewhat , i am stuck on trying to figure out how to let the 3rd combobox value , determined by the first and second. and what i wanted is , something like , … | |
Hi, im currently developing a picture viewer. i would like to capture the last used time of each picture into MS access database. in my picture viewer im able to choose he pictures one by one after selection, when i click a button and the slideshow will play. i need … | |
Dear all, I want to develop a webservice that returns a json like the following: http://niceq8i.tv/mobile/api/cat/get_sounds How to make the functions has a direct link like that and return the json code without any xml code Thanks in advance... | |
I am working on a small application in VB.NET. The program needs administrator privilege for doing some tasks. Is there a way to ask for administrator privileges during the execution if the program? What is the general way of changing the user account under which the application is running? Actually … | |
Hello everybody, Ι want to make an application that does multiple mathematical actions such as solving second degree equations and indentities I've created all the forms I need for it work but I cant create the main form that the user will use to choose what action will be executed, … | |
I'm just wondering how to add a save feature to the Binding Navigator tool strip as it isn't a feature by default. I'm using VB Express Edition 2008. Thanks! | |
Am working on a project right now and almost stuck at a point. Say, I have a text document with contents like: `abc,123.xyz;praise;end,file,clear` Now I want abc , 123 . xyz ; praise ... in an array. I used split method with array of characters. Though I retrieved abc,123,xyz,praise,end,file,clear I … | |
Hi all, I am a naive programmer to VB and VB.Net, I have mostly used C# and now I am stuck at a simple point as follows :- CollectionView.CollectionChanged += Function(sender, e) RebuildSearchIndex() I don't have any idea how to replace "+=" as its showing some error. Requesting you all … | |
Hello All, I am populating my frame from different pages and showing the output as a grid. Following is my xaml code :- <Frame x:Name="mainFrame" Grid.Row="1" JournalOwnership="UsesParentJournal" /> and xaml.cs :- mainFrame.Source = New Uri("Views/ProductsPage.xaml", UriKind.Relative); But I want to change the selected/unselected (focused/non-focused) row colors in this frame and … | |
Hi all, I have a question about deploying a Visual Basic 2010 Express build application silently on remote computers. When I published the app, an setup.exe file was created in project\bin\Debug folder. Now I would like to install this app to multiple machines (in the same domain). Usually I do … |
The End.