-
- Stop Visual Studio Designer from Rendering Control
by Nabeel Allana
- 5 Replies
- Last post
by Nabeel Allana
- I need some help. I have a control I made (a custom label) inherited from a panel. When I use the control in a form, the label constantly flashes on the visual studio designer. The control has its code in its mybase.paint event. Anyone know of a solution
-
- error on parameter list
by alk3ovation
- 6 Replies
- Last post
by PEng1
- Hey everyone, I'm writing an application that reads from an excel file and puts information into a database for individual accounts. I know the import works and the information is correct because I tested it using a StreamWriter. But now I'm actually trying to insert the info into an Access Database I created. I'm pretty much a complete novice when it comes to databases and I read through this th
-
- Connection to database soooooo slow!
by Grahamrounce
- 8 Replies
- Last post
by Anthony D. Green
- I'm using code like this
Dim da As New SqlDataAdapter( New SqlCommand(selectCommandText, myConnection))
Dim ds As New DataSet
nRecs = 1
n = da.Fill(ds, recNo, nRecs, "ATable" )
to get individual records from a db. The connection is open all the time, each access only retrieves about 50 or 60 bytes, yet I can still only get about 5 records a second fr
-
- SQL Query
by MaLew
- 6 Replies
- Last post
by MaLew
- I have generated the following query using Access to select data from my database
Code Block
SELECT Results.MemberID, Results.Position, Competitions.CompType, Competitions.CompDate, Competitions.CompID FROM Results, Competitions WHERE (((Results.MemberID)='lew26820') AND ((Results.CompID)=[Competitions].[CompID])); This query runs perfectly in Access but as soon as try it in VB
-
- Timer & Some other...
by Zeelia
- 6 Replies
- Last post
by Stephen Weatherford MS
- Hi! I would like to know how i can make "time intervals" or whatever you want to call it. I want my program to wait a couple of seconds before doing the next work in the code. For example: If WebBrowser1.Visible = True then WebBrowser1.Visible = False End If -- HERE, I WANT THE PROGRAM TO WAIT 8 NORMAL SECONDS -- Dim frm as New Form2 Me.Hide frm.Show() -- 2 -- When i go to my programs se
-
- adding handler to a button generated at runtime
by anubisascends
- 10 Replies
- Last post
by spotty
- everytime I try to add this code: AddHandler btnLogin.Click, AddressOf mybutton_click it gives me the following error: name 'mybuttom_click' is not declared. Here is the code that I am using to create the button:
Imports
System.Drawing Module formsLogin
Public Function loginForm()
Dim
btnLogin As New
Button With
btnLog
-
- Does Visual Basic support Data Access Objects (DAO)?
by Rick.B
- 5 Replies
- Last post
by Jason Payne
- Hi all
I'm a newbie to Visual Basic Express 2005. I have a bunch of working modules in Access VBA which I'd like to port to Visual Basic Express 2005 and a separate MDB file. But I don't seem to see any reference in Visual Basic Express for DAO 3.6.
I suppose I could rewrite the code for ADO but it's going to take A LOT of rewriting. I'm already adapting some of the code to VBE2005 n
-
- AboutBox
by QWERTYtech
- 6 Replies
- Last post
by QWERTYtech
- I noticed that I could add an AboutBox to my project and I have done so. Now I notice that under the description textbox on the form, that it tells me " Description: (At runtime, the labels' text will be replaced with the application's assembly information.Customize the application's assembly information in the Application pane of Project Designer.) "
Where do i go to find the Applica
-
- Explorer's Send To
by ofireps
- 14 Replies
- Last post
by ofireps
- Hi everyone,
I'm currently working on a very importent project, and I have a problem. On the explorer, when you right click a file, on the context menu, you can choose the "Send To" submenu, and there there are options. What I want to do, is to use that option, and to "Send" a specific file to there. It's not always a folder to send to it, it's sometimes a printer driver
-
- SQL Query
by MaLew
- 6 Replies
- Last post
by MaLew
- I have generated the following query using Access to select data from my database
Code Block
SELECT Results.MemberID, Results.Position, Competitions.CompType, Competitions.CompDate, Competitions.CompID FROM Results, Competitions WHERE (((Results.MemberID)='lew26820') AND ((Results.CompID)=[Competitions].[CompID])); This query runs perfectly in Access but as soon as try it in VB
-
- Problem with XPath
by Syco54645
- 6 Replies
- Last post
by Dick Donny
- Hello,
I am having some problems with XPath. First off, I would really love to
read some good documentation on it. I feel that the vb.net
documentation on XPath usage is just terrible. If you know of any really good
documentation for XPath with vb.net, please point me to it. Now on to
my real problem.
I have xml like this
<foo>
<bar>blah</bar>
<bar123>
-
- Wininet FileTime problem
by pro2c
- 5 Replies
- Last post
by Crazy Dave
- I'm using VB.NET 2005
I have a problem decrypting the date and time recieved from WinInet for a file on an FTP server. When i use cuteFTP i get the correct date and time, but using wininet API i get: (should be 31. March 2007 10:31:00): dwHighDateTime = 29848447 dwLowDateTime = -1396356608
I read somewhere that i should convert it like this: X = DateTime.FromFileTime(10000000 * (high+low
-
- How to read the value of a DataGrid cell
by Rich G
- 3 Replies
- Last post
by Rich G
- Hi,
What I need to do is very simple, but I cannot find the syntax.
I only need the value of a named column in the current row. As in:
dim var as string = datagrid1.columns("JobNumber").value
In VB6 that was the syntax, but 2005 does everything but the ".value"
in intellesense.
How do I get the value in the column called "JobNumber"
-
- problem using Opacity and TransparencyKey
by pol86
- 14 Replies
- Last post
by pol86
- hi,
i want to use a background image on my form that is semi-transparent. So i use the property opacity and TransparencyKey, but i discovered that if i use opacity, my TransparencyKey not work (is visible).
How can i solve the problem
thanks
-
- Adding and moving controls in IDE
by Ian_Carr
- 7 Replies
- Last post
by Ian_Carr
- Hi
I had been using VS2005 for a while and it worked fine, but one day the controls stopped responding to the mouse in the normal way. They also changed the way in which they are drawn when added to the form.
If I try to draw a control, such as a button, it ignores my sizing attempts and becomes 136 by 136. If I try to move the control or resize it, once added to the form, I have to move the
-
- Unable to Delete FTP Directory
by Mamidanna
- 4 Replies
- Last post
by Mamidanna
- Hello,
I am unable to delete directories from a FTP server. However I am able to delete from windows explorer/IE but not from my c# code. I always get the following error
System.Net.WebException: The remote server returned an error: (550) File unavailable
The following is the C# code I am using.
try
{
string URI = HostName + AdjustDir(dirpath);
F
-
- Datagridview Scrollbars Freeze up after binding datata to the control
by Kohl.Mike
- 4 Replies
- Last post
by Dick Donny
- Problem: Scrollbars are not functioning after the datagridview control is populated with data.
I am having a hard time trying to figure this out, but I am loading an excel file into a table, and then binding the table to the datagridview control. However, after the datagridview control is filled. The scrollbars seem to be frozon. I have tried loading a table with 10 rows and tried other sizes a
-
- How to Open Outlook Express through Vb.Net Code
by Vasanths R
- 2 Replies
- Last post
by Tdmiller10
- Hi,
I want to open Outlook Express / Outlook ( Depends on availability) on button click of a Vb.Net form
Can any one provide me the sample code
Thanks in Advance
-
- Create a new FORM with a special function.....
by QWERTYtech
- 3 Replies
- Last post
by cybertaz69
- Okay, I have created a new form called New Item.vb . I want this form to have some sort of "box" that allows the user to select what type of "New Item" they want to create. For example, I want to have options to create a HTML page , PHP page , etc. Then have a Create button to send back the variable to open the corresponding "template". How would I go about this
-
- translate VB code into VB.net code
by nonamehero
- 5 Replies
- Last post
by nonamehero
- Private Sub Form_Load() d = Now d = Format(Now, "dd-mmm-yy")
PivRefFILE = "\\GLNSFS1\groups\POS\GWW_MMS_DATA" & "\Tasks\PivRefreshCheck\T_LOG" & Format(d, "yyyymmdd") & ".LOG" Open PivRefFILE For Append As #1 Write #1, "Pivot refresh for " & d - 1 & ". was started at " & Now() & ".&q
-
- Maskedtextbox
by NetPochi
- 5 Replies
- Last post
by tkerns
- hello. A question please. how can I give the focus to a maskedtextBox
-
- Multiline textbox doesn't show line breaks
by G Holden
- 1 Replies
- Last post
by listen_thunder
- I have a problem where the multiple line text box is not showing the values in multiple lines. Eveything is on one line.
I am reading multiple line text in from an external source and assigning it to the underlying (bound) record. The data shows fine in the textbox but there are no line breaks. In debug, when I print the value of the underlying field after assinging it, it shows in the de
-
- Help with making a server.
by somenewbie
- 4 Replies
- Last post
by somenewbie
- I'm new to .NET but have been using VB6 for a long time. I've never gotten too advanced with it but I make some apps that me and some friends use for various things. I've tried several times to move to .NET, and now I'm trying out Visual Studio 2008 beta 2.
I like the controls and other various things but I can't make the simplest of programs anymore.
I like Winsock from VB6. I could
-
- Problem installing .net framework from setup file
by MsdnUser007
- 1 Replies
- Last post
by Bruno Yu - MSFT
- hi
i created a windows service in VB.net. i created setup file for it.
i want it to run on machines which do not have .net framework installed on them.
so in the pre requisites for the setup file i added .Net framework.
but one problem with it is the launch conditions editor. it is having a requirement for .Net framework by default. i cant remove it. so i modified it to install the fra
-
- Error Login failed for user ''. The user is not associated with a trusted SQL Server connection.
by ACCOUNTINGONLINE.US
- 4 Replies
- Last post
by ACCOUNTINGONLINE.US
- I used to connect fine until I upgraded from visual basic studio standard to vs professional
how can I be able to connect back to my database; I checked the connection string and the server explorer, they connect fine when i click to test ; but wen I try to run the program i get the above error
Code:
Public Class ProductDB
Public Shared Function GetProducts() As