I have a listbox that displays SSRS report names and a separate listbox for displaying email addresses. Both report names and email addresses reside in separate SQL tables. This application allows my users to select an SSRS report, report parameters, export method and email a URL link to one or multiple recipients. This part works very well. One particular report has 6 recipients and I have been trying to come up with a way to automatically select these 6 email addresses whenever this one report is selected but I haven't had any luck being the neophyte .Net programmer that I am.
I'm creating an application that will be visiting several different sites.Each site will have the same elements but not necessarily in the same order.On a previous post I was told to use the Select Case to choose between the choices.Can Select Case be used to choose between Webpage elements?Let's say that on one site the first web page element is choose button A but on site two it will choose button B.
Dim makeachoice As String makeachoice = webbrowser1.element button A Case signin
I have been trying to add an SQLDataAdapter control onto a webform in Visual Basic 2008 professional and Express editions. This control and others remain greyed out even when selected; they can only be seen when 'Show All' is selected in the toolbox. Is it that these controls are not available in the type of form?
I've checked various forums but have not seen a clear answer. I've tried some of the solutions proposed but none has worked. I've also reinstalled the application; then uninstalled, rebooted, reinstalled, but to no avail.
I got a third party control from a website after googling.Inorder to use that control, I simply right-clicked the Toolbox and selected "Choose Item". Then Browse to that dll file location and selected that file.Now it is added to the toolbox. But do I have to register the dll now ? Or, will it work when I distribute my app ?
I'd like to disable the 'Refresh' option in the right-click menu for internet explorer. Our application uses Javascript, ASP.Net and VB, but I'm sure it'll need to be done through Javascript.
I have a button called 'populate'. I need it to randomly select items in combobox1 when I click it. Here is what I have tried doing but it doesn't give me the desired results.
Dim sacostofsyscheckout As Integer Randomize() sacostofsyscheckout = CInt(CInt((1500000 * Rnd()) + 3000000))
I'd like to disable the 'Refresh' option in the right-click menu for internet explorer. Our application uses Javascript, ASP.Net and VB, but I'm sure it'll need to be done through Javascript
I am writing an application using Visual Basic Express 2008 and I need the right and the left mouse click to both act like the left mouse click. That is the right mouse click should not display a menu of any sort and be able to select items just as the left mouse click.
I have a project with about 30 forms and each form has about 30 labels from DotNeBar (its a controls suite). If in the future I decide to change that suit for other, how can I replace the DotNetBar labels with the ones of the new suite? In other words, how can I replace a bunch of controls for others automatically?
I'm facing a problem with my code. it's all about an if command. When the variable xglobal doesn't fit the rule (if xglobal >=0 and xglobal<=xlimite) a message box should appear, so it does. However, after being closed the message appears again and so on.
Below you can find the code:
Public Sub Button5_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button5.MouseDown If e.Button = MouseButtons.Left Then
The VB application is automatically getting closed whenever the code is invoking any common dialoge control especially when the MS office Enterprise edition 2007 is installed.
Visual Basic 2008/2010 - How do I automatically click buttons in a sequence?I have about 15 buttons that automatically goto a website, then it clicks on certain links and does save as page. They are working beautifully, now i have to automate this process. already have a code in place to wait for the website to finish with each button so i am not sure if i can still use a timer to complete this process?
I have a bunch of custom controls I've made - and these are by default added automatically to the Toolbox. A nice feature. However, I want to hide certain controls from the toolbox. Is there a way to do this?
I have a rather large project that several developers access via MS SourceSafe. The issue at hand is the ToolBox lists many, thirty plus, items that start Cached.(the name that follows Cached is the name of a class or Cyrstal Report in the project. There are also many items listed, they have the same "gear" icon, without the word Cached prefix on the class name.
My question is, how can I get these items out of the ToolBox so they never come back?
I found it unusaul that I can't load my toolbox items of my Visual Basic 2008 SDK after I just intalled Microsoft Windows7 Phone SDK. And, my property items are not complete, only the property of the main form is displayed, the properties of the controls in the form can't be displayed. I tried right clicking on the toolbox area -> choose items... and then I got this unusual message "an error occured loading this property".
I am using Vb 2010 I am trying to generate a report in my project; however, i can't put the report viewer on the form. I can see it but can't drag it as if it's not enable.
This may or may not need to be moved to the deployment folder...Okay I have a vb.Net application that connections to a sql server 2005 database "TacticalDB" while debugging the application I was using the connection string,
Dim con As SqlConnection = New SqlConnection("Data Source=.SQLEXPRESS; AttachDbFilename=" + Application.StartupPath + "DataTacticalDB.mdf; Database=TacticalDB; Trusted_Connection=True; User Instance=true")
Which works fine, but I have moved into getting the application ready for deployment and so I created a setup application in the same solution as the application. Now I have added the database file with the setup but when my application gets to the con.Open() line it catches an exception,
System.Data.SqlClient.SqlException: Database 'C:UsersJohnDocumentsVisual Studio 2008ProjectsBlackout_ScoutBlackout_Scoutinx86DebugDataTacticalDB.mdf' already exists. Choose a different database name. Cannot attach the file 'C:Program Files (x86)MicrosoftSetup1DataTacticalDB.mdf' as database 'TacticalDB'.
[code]....
Now I only have the one place where the application should look for the Database and thats Application.startupPath/Data/TacticalDB.mdf and if im running the newly installed exe it shouldn't look back in the myprojects folder but it is.
is it possible to group similar controls in a form so instead of having to change every control's property I could just change the property for the entire group?
My project, which has 2 user controls in it- does not display the user controls in the toolbox. Has anyone else had this problem, and/or know of a solution?I have tried adding other user controls to the project, they do not appear in the toolbox.I have tried creating a new project, and it's user controls DO show up in the toolbox. If I add the user controls from the first project to the new project -THEY show up in the toolbox for that project.So it must be something tweaked out with the project right?
I am quite new to the VB scene, and am still quite confused by the variety of options presented as far as choosing the correct project type.I have been coding for roughly 4 years now and consider myself still to be a beginner. My past experiences include, hmtl, C++, vba, assembly, and a few others which I'm sure currently escape me.However, VB is a whole new boat and I'm just not sure where to get started with what I want to do.I've Googled the internet, went through the MSDN, and even did some tutorials.My current dilemma is I wish to make a program that will do a the following: Allow a User to download a set of data from an embedded web page.Open an excel file Download more data from a different web page.Open another excel document..I'm sure this is probably quite simple to do (read: I hope...). However I'm just not sure where to begin as far as choosing a project type. Additionally I'd like to have it set up with buttons, where button1 reads something along the lines of "Step 1: Click Here to Go and Download Data", "Step 2: Click Here to browse to excel file", etc etc.What type of project do I chose to get the stuff done on my list?