Topics
-
-
- *Experts*
- 8 replies
- 1.2k views
I'm no able to connect to the db what's wrong with the following connection string? myConnectionString = "server=GTT-PC-LIHUANG;Database=master;user id=sa;password=;"
Last reply by miwaypro, -
-
- 1 reply
- 1.3k views
ExecuteDataSet or any other Execute.. doesn't set Autoincrement property! adapter.ExecuteDataSet(datasetobject); datasetobject.Table[0]["ID"].Autoincrement return always false! How can I retrieve DataTable object with Autoincrement Value set?
Last reply by bri189a, -
-
- Administrators
- 1 reply
- 769 views
Hello, I am using ASP .NET. I would like to be able to catch different type of exceptions, and translate them to my languadge. How could I distinguish the different type of exceptions? Does every exception has a number, that will enable me to relate it to a special translation? I would be glad to receive any help on localizing exceptions. Thanks, Aleksandar
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 6 replies
- 1.1k views
Very Basic Data Binding Issue (ListBox updating) Hello All, I went through a video tutorial (via http://www.franklins.net/videos.asp) on basic databinding but am not able to get the same results and it's driving me nuts. I've used databinding before but have no clue about this very simple scenario. Here's the scenario: I created a new vb.net Windows App project in VS.Net 2003 Pro. I then dragged a database table (from Server Explorer) to the form to create a connection and adapter, then generated a dataset (dsEmployees). I then added a ListBox, 2 TextBoxes and a DataGrid to the form. I bound the components to the dataset (listbox & one textbox to emp_lname…
Last reply by Troy_Dot_Net, -
-
- 0 replies
- 815 views
My application needs to connect to a network folder to get some configuration files. When the network not available then it returns very fast. but when the network is busy the application tries to connect and get the files for long minutes. Is there any way i can say try tp connect and get files in 1 or 2 minutes and error out no fast network and continue with next process in the application.
Last reply by kaisersoze, -
-
- Administrators
- 3 replies
- 893 views
How to deploy web services on https server? I manually copied all files and created a Virtual directory (VD) and pointed the VD to the physical location. I am able to see the methods on https://myws/page1.asmx. But, when i click on any method, and clickon invoke button, the page takes me to page not found and link changes to http://myws/page1.asmx/method1. Can any one troubleshoot
Last reply by kaisersoze, -
-
- 1 reply
- 1.3k views
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load DbConnCC = New OleDbConnection(connectString) DbAdaptCC = New OleDbDataAdapter(querySQL, connectString) DbAdaptCC.Fill(DbDataCC) DataGrid1.SetDataBinding(DbDataCC, "ccdata") End Sub This code... along with any other type of binding gives me the subject error. This is the basic code, I have stripped out the try...catch and other stuff I had while trying to narrow this down... and I can't. I have googled this for hours and am lost. This is the simplest form that I can think of to get a binding done and it won't work. I know it's the …
Last reply by Machaira, -
-
- Administrators
- 5 replies
- 1.1k views
hi i am using vb.net and winforms i have a datagrid which to it i am binding a dataset which has two relational datatables... when i bind each dataset's table individually to the datagrid they show... fine.. its in my relationship i am getting the error message which is highlighted below.. thanks in advance..sonia 'global variables in forms module Dim filepath As String ' allows user to get the path of the textfile to be retrieved Dim oDT As New DataTable ' Datatable to hold the dataset's table which is being passsed from another page Dim oDSParentChild As New DataSet 'the dataset which is holding the two relational datatables Dim oDSMeanReport …
Last reply by sony, -
-
-
- Leaders
- 5 replies
- 996 views
Hi all, I'm developing an application terminal to read a serial port, and i'm using VB.NET 2005 Team System Beta2, and when i received the data (text) i wanna put it into a textbox but an error appears telling that is not possible to access to the textbox that is in another thread :-(..... and i was searching trought the web about it and i found a code snipet in C# and i would like to have this translated to VB.NET here's the code private void Log( string msg) { rtfTerminal.Invoke(new EventHandler(delegate { rtfTerminal.AppendText(msg); })); } Appearly this code solves my problem, if anyone could translate it i would…
Last reply by IngisKahn, -
-
- 0 replies
- 658 views
Could anyone help me with a problem I am trying to compile a dll from the command line using vbc.exe. I am using the following code: vbc /t:Library Catalog.vb /r:System.Data.dll /out:bin/Catalog.dll and I keep getting the error message vbc:?????? BC2001: ????'Catalog.vb'??????? Can anyone tell me what the problem is. Many thanks Martin For reference the contents of the Catalog.vb file are as follows: ' Catalog.vb Imports System.Data.SqlClient NameSpace Worldshop Class Catalog Public Shared Function SP_GetBB() As SqlDataReader ' Create the connection object Dim connection As New SqlConnection(connectionString) '…
Last reply by tbcmartinharvey, -
-
- Administrators
- 3 replies
- 4.9k views
I get "Access denied" when using Dim wordApp As New Microsoft.Office.Interop.Word.App Hello, I am using VS 2003, ASP.NET and VB. I get a server error "Access denied" when I try to execute the following code: Dim wordApp As New Microsoft.Office.Interop.Word.Application the error has the following text: Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access is denied. ASP.NET is not authorized to access the requested resource. Co…
Last reply by Alex_bg, -
-
-
- Administrators
- Leaders
- 12 replies
- 2k views
I want to get the numeric code for errors that are catch by "Try-Catch" keywords but I don't know how to do it... I can get the error message description, no problem on that, but I need the code number too, like: "Error 210: The file is write protected"
Last reply by PlausiblyDamp, -
-
- 1 reply
- 884 views
Hi, This is a little about my last post, but i'll ask for help in other terms. Basically, i've a Terminal that reads the COM port and i'm using VS2005 Team System Beta2 an VB.NET, i'm making all ok about the settings of the serial port and so on but i cannot show the received text into a textbox. Problem:Cross-Thread.... can not access to the textbox because in a diferent thread... How can i solve this and show the received text without any problem, i thought o could solve this using the delegates but i was unable to do that ( that was the objective of my last thread ) any help? I saw an example but in C#, that invokes the method AppendText() of the textbox and i…
Last reply by Nate Bross, -
- 2 replies
- 901 views
hello, how can i bind a group of textboxes to the fields of a datatable with only one record?? i whant they to fill automatically when the datatable is filled and to update the database when changed (vb.net 2003) thank you
Last reply by Troy_Dot_Net, -
- 0 replies
- 1k views
I am trying to use VB.Net and WinFaxPro SDK to read the WinFax logs but I am getting the error "QueryInterface for interface wfxctl32.ISDKlog failed". I have the following imports: imports wfxctl32.COleWinFaxAppClass imports wfxctl32.CSDKSendClass imports wfxctl32.CSDKLogClass Here is my code: dim logObj as new wfxctl32.CSDKLog dim msgID as string dim STANDARDFOLDER_WINFAX_OUTBOX as short = 6 msgID = logObj.GetMessageListFirst(STANDARDFOLDER_WINFAX_OUTBOX,"") How do I use the log class in VB.NET????? What am I missing?
Last reply by alanw, -
- 1 reply
- 821 views
I want to make my own outlook program (at my way :cool: ) but I don't know where to start! I don't know, for example, how do I connect to the server and load the emails, how should I save then to the disk.. Any help would be appreciated :)
Last reply by Machaira, -
- 1 reply
- 889 views
Whenever I try to connect to the server's DataBase the following message is displayed: ERROR [HYTOO][MYSQL][ODBC 3.51 Driver]Host 'Informatica' is not allowed to connect ot this MySQL Server. MySQL server is running on Win 2003 Server, so, how can I config win2003 server to allow host 'Informatica' (my work computer) to gain access to the MySQL's Database? (if it haves anything to do with win2003 server at all...)
Last reply by EFileTahi-A, -
- 1 reply
- 3.1k views
Hello, I'm trying to create an Excel chart ... I'm based on the "Create an Automation Client for Microsoft Excel" When I write the following code: oSeries.XValues = oSheet.Range("A7", "A22") nothing changes to the generated chart (same result when I leave out this line of code!) and I don't take the values of this column (A) to the axis X... Where is the error? I have 2 series so I tried the following: .SeriesCollection(1).XValues = oSheet.Range("A7", "A22") .SeriesCollection(2).XValues = oSheet.Range("A7", "A22") but I take this error: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in microsoft.visualbasic.dll…
Last reply by lal bhi, -
-
- Administrators
- Leaders
- *Experts*
- 13 replies
- 1k views
ok.. i have a drop down list that is populated by the following code // Set the exp year drop down list values. int currentYear = DateTime.Now.Year; int finalYear = currentYear + 5; ddlExpYear.Items.Add(new ListItem("", "")); for(int i=currentYear; i<finalYear; i++) ddlExpYear.Items.Add(new ListItem(i.ToString(), i.ToString())); works fine but it gives me the values 2005-2010 How can I tweak this to get it to show 05-10. I basically need to get a month value out of one ddl and then the year value in the other ddl and be able to assign them to an int in like this '1206'. Any suggestions? Thanks
Last reply by reagan123, -
-
-
- Leaders
- 5 replies
- 945 views
I have this function: Dim Cert As X509Certificate = X509Certificate.CreateFromCertFile("C:\cert.crt") Instead of grabbing the contents of the file, I would rather have it grab actual data from within the program... example: Dim certificatevalue As string = "this would be the contents of cert.crt" then.. Dim Cert as x509certificate = x509certificate.createformcertfile(certificatevalue) basically i don't want the user to have access to the crt file.. thanks for any help!
Last reply by trend, -
-
Who's Online 0 Members, 0 Anonymous, 38 Guests (See full list)
- There are no registered users currently online