Topics
-
javascript:window.open() in a DataGrid HyperlinkColumn
by Guest rpeters- 1 reply
- 5k views
please reference: http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=219 I have a hyperlinkcolumn in a datagrid which fires off a javascript from the DataNavigateUrlFormatString that looks like: "javascript:window.open('Report.aspx?Report=Sample');" The new window opens fine. The problem is that the browser window where the javascript is called loads in a page with "[Object]" as the only thing on it. I do not want the calling page to go anywhere. This is a javascript issue. any help is appreciated ... rpeters
Last reply by Gazzo, -
picture size and strach
by Guest mcerk-
- *Gurus*
- 2 replies
- 1.9k views
picturebox is it possible, to fit a picture to a picturebox without straching it? I want to maintain proporcions, and change the size of the picture.
-
-
How to connect to DB2 to get data and call programs using ADO.NET
by Guest jtorrespla- 0 replies
- 2.4k views
Dear all, is it possible to connect to an AS/400 using ADO.NET and get data from DB2 tables and call RPG programs?. If it is possible, how is the response time? Thank you in advance for your help. Regards, Joan.
-
Simple SQL Query In VB.Net
by Guest avissoft- 4 replies
- 5k views
Hello! I am complete noob to VB.Net !! I am trying to use MS Access Database and trying to make a simple SQL Query in VB.Net!! Can anyone tell me on how to go about ? Thanks!
-
Casting Error
by Guest tikki- 0 replies
- 1.7k views
Sub GetTotal() Dim value As Double value = 0.0 OleDbCommand1.Connection.Open() OleDbCommand1.CommandType = CommandType.Text OleDbCommand1.CommandText = "SELECT SUM(amount) FROM cody" ' Put the total amount into a variable. value = OleDbCommand1.ExecuteScalar() lblTotalAmount.Text = Value OleDbCommand1.Connection.Close() End Sub error: An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll Additional information: Cast from type 'DBNull' to type 'Double' is not valid. Help is appreciated. This is my final bug and it just popped up :(
-
I need a text box with a mask for dates. I am trying to use MaskedEdit TextBox but got totally confused: 1. Text property is not set after I type text into the box 2. FormattedText is set but with prompt chars, even when PromptInclude = False 3. Once a mask is defined it appears in text box even after code: txt.Mask="" txt.Text="" Can someone clarify?
Last reply by vnarod, -
Visual Basic & Visual Studio .NET
by Guest avissoft-
- *Gurus*
- 5 replies
- 3.2k views
Hello! A program created in VB requires Runtimes...does program created in VB.Net requires some runtimes too ??? If no then t means the .exe created is standalone..!! Am i rieto ? Thanks!
-
-
Problems Installing VS.Net
by Guest avissoft-
- *Gurus*
- 7 replies
- 2.1k views
Hi! I have Visual Studio .NET ...5 CD Set..when i start the setup it works correctly..and starts copying files..after updating components, asking for stuff to install etc. It starts with file copying from disk 1...as soon as it asks for disk 2 i insert disk 2..but it won't accept disk2..and shows the dialog again saying insert disk2 any one knows whats the problem ?? P.S It stucks on a file named msenv.dll the disk is contaning the file msenv.dll and its getting copied perfectly..!!! Please help!! Thanks!
-
-
Add Values of a column
by Guest tikki- 2 replies
- 1.7k views
I have a database w/ 2 colums (itemName, amount). I have a label at the bottom of my form that i want to display the total value of all the amount variables, but I am clueless how to get it to work. I have established OleDBCommand1 to select all the values from the amount column, but don't know how to get it to add the values together. Any help is appreciated.
-
Stupid question
by Guest PaulRuebens-
- *Gurus*
- 3 replies
- 1.6k views
Okay am I missing something or what? I can't seem to find teh drive list box......did they take it out of .NET?
-
-
String Manipulation Problems
by Guest tikki- 5 replies
- 1.7k views
Greetings, I am working on a small program to track the debt my brother is in to me (he borrows a lot of money ;)). The data file is a basic txt file of with a format like this. Gasoline $-20.00 Food $-5.00 Washed my car $+10.00 I am reading in the txt file using StreamReader on form load and wrote a sub procedure called GetDollarAmounts() which uses a for loop to go through each character and look for the $ sign using SubString. When it finds that dollar sign, it then reads in the appropriate sign and Substrings to the first number and does a do...while to get all numbers (via an IsNumeric function I wrote). It finally puts the dollar amount in a…
-
input mask of textbox
by Guest Cheung- 3 replies
- 4.6k views
Hey, Can I add input mask of a textbox controls in a windows form? my requirement is simple, when user type in number, the textbox automatically displays the format "###,###.00" . use type: 123456 the textbox shows : 123,456.00 THANKS!!
-
VB6 DLL works great in VB6 but not in .Net
by Guest klabranche-
- *Gurus*
- 2 replies
- 3.4k views
I wrote a network enumeration DLL using API calls like NetEnumServer ect... Everything works wonderfully in VB6. I wrapped up the functionality in a DLL and tried to create a .Net example using the COM DLL. Now I am getting an invalid parameter or Browser not available error when I call the method that uses the NetEnumServer API call. Everything is the same except for .Net. Otherwise, I am using the same computer, same DLL, and practically the exact same code to call this method in .Net as I did in VB6. The only difference in .Net is the syntax changes. Anybody have any idea why the NetEnumServer API would crash in VB.Net even when being called from a VB6 COM objec…
-
-
Stupid question
by Guest PaulRuebens- 2 replies
- 1.6k views
Okay I'm doing a basic program to see how VB NET works. It simple in that I want to just list the drives on my machine. So far here is my code dim sDrives() as String dim i as integer sDrives = Directory.GetlogicalDrives() For i = 0 to Ubound(sDrives) Console.Writeline(sDrives(i)) Next Problem I'm getting is that I get an error back that says "Directory not declared"....... did I do something wrong? Thanks!
-
Learning VB.NET or any lang of .NET framework
by Guest vkraman-
- *Gurus*
- 2 replies
- 2.5k views
Hi, I read with interest the very long thread created by Ciaranreilly on learning VB.NET under subject "VB6 -> Vb.Net...feeling pretty stupid..." I wish to add that to learn any of the .NET based languages, one has to have the basic understanding of the underlying .NET framework. That should be the start point for learning .NET languages including VB.NET As VBians, we should only feel ecstatic about VB having matured into a fully OO language. The code module in VS.NET IDE for VB is now like VC++ ATL COM app wizard where lots of system generated code used to be. This is somewhat uneasy for hardcore VBians who adore the VB IDE. By keeping the system generat…
Last reply by divil, -
-
use code to "click" a button
by Guest Cheung- 1 reply
- 1.7k views
I have a Base form which has a button on it. I have a child form which inherits Base form. When the child form is loaded, I want the code of sub "button_click" of both forms run. What can I do?? Is there any code that "clicks" the button for me? Thanks a million!
-
-
- *Gurus*
- 6 replies
- 1.9k views
I use to use this code to trim spaces like back spacing in vb6: varlenght = Len(txtKeypad.Text) - 1 txtKeypad = Left(txtKeypad.Text, varlenght) This does not work in vb.net. Any suggestions please!!! Thanks!
Last reply by vbnow, -
-
Resource Files...
by Guest Perl-
- *Gurus*
- 1 reply
- 1.8k views
Ok i have 2 projects (for simplicity)... both of which have resource files needed to be used. I know how to call and load the one for the start project using the 'System.Reflection.Assembly.GetEntryAssembly' to allow access over the resoruce file associated with the main program. The problem i am having is with the dll and loading the 2nd resource file. I have tried the 'GetCallingAssembly' with no prevail. Any help would be greatly apperciated :)
Last reply by divil, -
-
Will Someone try & try to debug this code?
by Guest littledump-
- *Gurus*
- Leaders
- 10 replies
- 2k views
I think youll be able to see whats wrong Module JepCode Public JepSplash As New VRSplash() Public MainJepForm As New VR_Jeopardy_() Public CatColl, QColl As New Collection() Public i, j, k, CUsed(4), QUsed(5), randomnum As Integer Public JepQs(4, 5) As Questions Public JepCs(4) As Categories Public ItEquals As Boolean Public JepMedPen As New System.Drawing.Pen(System.Drawing.Color.Yellow, 7) Public JepThinPen As New System.Drawing.Pen(System.Drawing.Color.Yellow, 1) Public Structure Categories <VBFixedString(100)> Dim Category As String <VBFixedString(100)> Dim CatFile As String End Structure Public Struc…
-
-
An unhandled exception
by Guest glendower-
- *Gurus*
- 8 replies
- 2.8k views
I keep getting an error when ever I run a project in vb.net. If the project has been created on my PC I get the error, however if the code was generated on another PC - no problems occur. Even a simple project with a blank form fails with the same error An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object. Execution fails at the 1st line Public Class Form1 'fails here with line in green Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This ca…
Last reply by divil, -
-
Who's Online 0 Members, 0 Anonymous, 44 Guests (See full list)
- There are no registered users currently online