Clearing All Tab Pages And Bringing One Tab Back?
Dec 7, 2010when i use
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.TabControl1.TabPages.Clear()
[Code]....
when i use
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.TabControl1.TabPages.Clear()
[Code]....
I have the following query that should be bringing back a single date, however, it is bringing back the first date in the table, completely ignoring the Where clause.
'Get days pending
Dim AgePC As String
Dim sSQL As String = "SELECT [DateStamp] FROM [Activities] WHERE "
sSQL &= "[ClaimNo] = '" & Me.txtClaimNum.Text & "' AND [Activity] = 'PCAC' OR 'PCTE'"
Dim conn As New System.Data.OleDb.OleDbConnection(sConnectionString)
Dim com As New System.Data.OleDb.OleDbCommand(sSQL, conn)
Try
conn.Open()
[Code] .....
My boss has given me an asp.net web application that was done by his former employee. Now my boss has no contact with that employee. He wants me to make some changes in that web application. I went through the application. There is no documentation present for that application . Its a huge application. It contains many directories. I think it was a team work. It has many asp pages, aspx pages, jsp pages, xml pages, css pages, etc... How to understand other person or team's website or web application that was written in asp or asp.net and vb or vb.net?
View 4 RepliesIm trying to effectively, Save a listviews items to A database (after clearing it) then load it all back in to the listbox, would this do it? becuase it just doubles what ever is in the listbox @ the time,
Dim ConnStr As String = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = " + System.Windows.Forms.Application.StartupPath + "data.mdb"
Dim DT As New DataTable()
Dim SQLStr As String = "DELETE * FROM [keys]"
[code]....
I am using Stanav's PdfManipulation2.AddImageToPage(..., Pages) for iTextSharp library (v5.1.3) and was not able to add the image to specific pages: e.g. to add to only page 1 and 3 of a five pages PDF
Dim Pages() As Integer
Pages = New Integer() {1, 3}
PdfManipulation2.AddImageToPage(..., Pages)
Calling AddImageToPage() with the the optional Pages parameter will add the image to all pages though.
I have a form on a .NET webserver using aspx pages with the vb code-behind pages. The form collects the entered data and then emails it, that part works fine.Right after it gets emailed, this code checks to see if the email was sent or not and then updates the landing page accordingly. I used to use just an IF THEN statement, but now that doesn't work in these new .NET pages. Here's the end of the code that I am having difficulties with:
[Code]...
I have heard of setting server specs to have HTML pages parsed as PHP pages by changing the .htaccess or httpd.conf files. Is there a similar solution to have HTML pages parsed as ASPX pages?
A website I am working on does not want their PageRank to lower since their HTML pages are already indexed and used on other websites but wants to use some dynamic features of aspx pages (like include the navigation file so that changes to the nav will only have to be done in that one file).
The project im working on for school im setting up a bill statement..depending on what letters are put into the textbox's should change to the num that is set for the variable letter. This is the code i have right now and its giving me 2 issue's. One is that when it gets to the line changing input1 to num1 it gives me an error saying that cannot convert from I to double or int type. Second problem im having is that the value's are not being converted to numbers. Its staying as lowercase letters and therefore not doing the math.
[Code]...
I'm trying to code a button, and I can't seem to get the addresses of the data fields within access. I have already linked to the particular database as a data source. I want to write new information into the data tables.
View 10 RepliesWe've migrated the application from VB 6.0 to VB.Net If more than one MDI child form is open, a mouse click to an inactive form will not bring it to front unless I click on the Tiltlebar.
View 4 RepliesHow do you bring values from one form to another? Ive a car price which i need to carry over to another form as i have check boxes which if selected will change the price. How do i solve this?
View 20 RepliesMy project is in VB.Net 2003. Actually it is a converted project from Vb to Vb.Net. If we run the application windows is not in focus, window is going to background. How to resolve this error?
View 3 RepliesMy project is in VB.Net 2003. Actually it is a converted project from Vb to V
View 6 RepliesI don't know if this is the right area for this question or not...Whenever I click my asp button on my website it brings me back to the top of the page... Is there any way to change that?
<asp:Button ID="Button84" runat="server" Text="Get Weather (DPG)"
Style="width: 125px; position: absolute; left: 5in;" />
I am working with graphic methods. I am trying to create a piano using brushes, pens, and rectangles. I have 14 white keys and started making the black keys. For some reason I cant get the black keys to overlap the white ones. Is there a command to send the black rectangles to the front?
View 6 RepliesI'm trying to bring a transparent user control (being used as a drawing layer) to the front, over a page that will be playing video.Me.BringToFront() didn't seem to work, and when I tried Me.SetTopLevel(true) in the load, this gave me an InvalidOperationException. Here's what I have so far, sorry for the commented lines.. lots of trial and error (I'm very new, just an intern at the moment)[code]
View 3 RepliesWhen I attempt to bring a database into my VB.NET project, I get the following error message:
Could not load type 'Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager' from assembly
'Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage,Version=9.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a'.
I'm having a problem when I'm bringing up a hyperterminal session and using sendkeys.send I'm using process.start and it will show the first dialog to make the call....all is fine. You click OK and another dialog pops up with a DIAL NOW button.
[Code]...
i have this program which records the every printing made on a local computer.I am to record the number of pages of the document to be printed and the number of printed pages. i have this code but i don't know the number of pages and number printed pages always return 0 [Code].
View 1 RepliesI am using an image button and on click of it i want to go to visited page.Now i am using - Response.Redirect(Request.UrlReferrer.ToString()),It is going to previous page, but when i am in a page of some user details where the link is looks like - users.aspx?userid=25 and i visit some other page and click back(image button) i want to see the same userdetail page. How to track that.
View 2 RepliesI have a search page with a couple of pulldowns. Dependig on the values of them I show a grid matching the searched criteria, basically a table with links the user can navigate to. My problem comes when the user wants to navigate back. At the moment I have a "Back" button which simply redirects the user to the initial search page. I think it would be a good improvement to have the values of the pulldowns filled in with the values the user selected, this way when he presses the "Back" button he would not have to restart the whole search process again.
View 5 RepliesI'm not sure what I did, But I would like to get my toolbox back to normal where I can put it back on auto hide and such.
View 3 RepliesWe have a server application and a client application that communicates with each other using socket.
When the server application sends 2 messages about 16-31 ms apart, the 1st message is received by the client application with little delay (like 16-32 ms after it was sent). But the 2nd message is received by the client application a lot later (like 200 ms later) than when it was sent.
We already disabled Nagle algorithm (set NoDelay = True) in the socket in both the server and client application.
We are having problems with sending back to back emails on one of our web sites. The site is built with .net framework 2.0.We can send the first email without any problems on every try. But to send a second email you need to wait about 20-30 minutes.the problem.One thing we tried was changing the smtp email server. We tried a third party smtp server but the same problem persisted. So I think the problem is not with the smtp server but with our .net code.
Imports Microsoft.VisualBasic
Imports System.Net
Imports System.Net.Mail
[code].....
I am creating an application that will be faced with multiple decisions to make and I want to know if it is possible to create around 20 if statements to excute or decide between before excuting?
The application will encounter multiple websites but each website will have the same elements but not neccessary in the same order so I was going to tell the app to loop through the IF statement and if the condition is met to run that sub routine where it starts over and loops through the IF statements until next condition is met.
Is this possible in VB.NET or is 20 or so IF statements to many to use at once?[code]...
I have a dBase file named PROBA, with two cells: "VNEV", "KNEV".I would like to see the records back-to-back in a Msgbox.
Imports System.Data
Imports System.Data.Odbc
Public Class FormCount1
Public Sub Recordszm() Handles MyBase.Load
'TODO: This line of code loads data into the 'DataSet1.PROBA' table. You can move, or remove it, as needed.
[Code]...
When you are using the tab to enter a textbox, How do you select all the text so when you begin typing it eliminates the old text?
View 1 RepliesI have written text to a form using DrawString but now want to clear the form and reset the "next" writing position to the top of the form display area. BTW This is NOT a text box!Using Me.ResetText() clears the text from the form but does not move the position back to the top. The next line is written immediately below where the last line was previously displayed!
View 2 RepliesI have three textboxes and a button. The button's role is to clear all the textboxes. This one textbox that I don't want to clear keeps clearing. What do I have to do for this one textbox to not clear up when the clear button is pressed ?
View 2 RepliesHow would I go about clearing IE's history from with VB? I've looked on the internet and couldn't find anything, and I honestly don't have a clue about how to do it.
View 1 Replies