Answer Questions
Buddhist FileUpload - How do I trap maxfilesize problems
The fileupload control works well for files < 4MB (maxrequestlength), but if the file is larger than this the program fails with: - the page cannot be displayed, or Server error in '/xxxxx' application Maximum request length exceeded How do I trap this so that I can return a better error message The failure occurs before the Page Load from any callback, so I can't see any way of trapping the error, and I haven't seen any event or property of the Fileupload control that I can set to say "Do this when Max Request Length is exceeded" I don't want to accept larger files, I'm happy to live with the limit. Regards, Robert Barnes the best place to ask would be over ...Show All
Kardi IDBToolsOptionProvider
I am unable to add a SQL Server database, or connection, to the VS.Net Server Explorer. It says that the IDBToolsOptionProvider service cannot be found. I do not find this service listed anywhere under Services. ...Show All
vic07 How to loop a process?
Does anybody know how to loop a process I have a process which is controlled by timer and I want to loop this process when the timer expired. Thanks a lot. I mean repeating a process again and again. let's say that I want to run a winamp media player and play certain song. After some preset time (eg. 30 secs), winamp will close and restart to play the same song. thanks.. Hi I'm not familiar with your "loop a process" term. Can you explain a little more about what you are trying to achieve and perhaps I can assist. Richard If it's on a timer, it will loop automatically. Or if you want something to take a certain time...then move quicker use 2 timers. Like this: When the 1st time ...Show All
Tom v E Console question
I have created a console application that will create a file and fill the file with certain information. Here is the code to explain it: Imports System.IO Imports System.Console Module Module1 Dim ProgPath As String = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Planit\Solid_4_0\Settings", "ProgramPath", "") Dim CustCodeFind() As String = {My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Planit\Solid_4_0\Settings", "Code1", ""), My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Planit\Solid_4_0\Settings", "Code2", ""), My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Planit\Solid_4_0\Settings", &quo ...Show All
Mantorok IDIV - divide be zero: error handling
Hello. I've got a problem. My software crashes and maybe it's because IDIV instruction - division by 0. Please help me how to handle it in VB6 (check value before dividing) . I found articles on that but only Java and C++ and nothing about VB6. Best regards PS. I already posted this question on other forums as well. But thank you anyway. Best regards For VB6 resources please take a look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=478161&SiteID=1 ...Show All
DarthCoder MAKING .NET CONTROLS - OCX VB6 COMPLIANT
Hi all, I have to create a .NET control. It have to run in a vb6 app. I'd like to use it like a standard OCX control. I've found in the net that it's possible. there's anyone who can tell me in which way I can do it It's simple: have a .net control and import it in a VB6 controls list by "add control". and have it working right. Dario TIA for any suggestion! Dear Toddap, Please let me know on the progress of the examples and bug fix below. In particular does anyone have experience of using .net controls as activex ocx's to be loaded by the software product 'WonderWare Intouch View' this is a SCADA system for viewing industial control data. this product is ab ...Show All
NeTBaPb Insert statement
Hi gurus I am on sql2000 and vs2003 Please what is wrong with the following: dim stringcommand as string dim command as sqlcommand stringcommand="INSERT INTO TABLE (COLUMNAME) VALUES('TEXT')" command= new sqlcommand(stringcommand,conn) ' I already have connection open command.executenoquery() I get and the following error " An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error." Thanks for any help gurus anyone plase!!!!! ...Show All
Koelho txt files
How can I access text files in VS2005 and display them in Arrays Any help or websites containing a "How to" would be greatly appreciated. Thanks! Also, more information on split() method of the string class ill try my best! :-) *chuckles...such a long day* right so, we need to read each line. Each line will be our "record". our record will then be split into an array of strings containing the record information then we can "format" these to our liking. So...lets split them first, line by line Dim theStreamReader as new System.IO.StreamReader(" filename.txt ") while theStreamReader.EndOfStream = false Dim theRecord() as String = theStrea ...Show All
Hi_i_am_Amit ByRef error though parameter is passed by ByVal
I'm getting an error while trying to fill a grid (third party). The code is as follows: Public Sub FillTheGrid(ByRef one As String, ByRef two As String, ByRef three As String) Dim s As String Dim e As Short = 0 s = (one & Chr(9) & two & Chr(9) & three).ToString e = grdUAH.AddItem(s, 0) <--- Error for this grdUAH.Row = 0 grdUAH.Col = 1 grdUAH.CtlRefresh() End Sub Though there is no value passed a ByRef, I get the error as: Byref value type parameter cannot be null. If I comment out the line e = grdUAH.AddItem(s, 0), there is no error! The stack is as below: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ****** ...Show All
BBK I need the best programmer's chair! Visual Basic programming is killing me!
Hello, All. This is a little off the subject, but not really... Its TOTALLY Visual Studio/Basic related!!! Since beginning programming with the Visual Studio Express Series, I cant get enough! I am spending hours upon hours in front of my pc programming, and my lower and upper back, as well as my elbows are killing me! Can anyone suggest to me the ultimate chair for programmers I have gone through 2 chairs already that were supposed to be ergonomic, but they dont really work like I need them to. Is there a chair of choice for programmers ! ! What chairs are used at Microsoft's Headquarters Help!!! -kaanuki- It's probably not your chair, it's your posture. Sit up straight in your ...Show All
Lee John Uploading Files
Hi there, I know how to upload a file to a remote server but it always comes up with a dialog box saying where it going, etc. Is there any code that stops that dialog box appearing. Thanks, AliQ Dick Donny, I am sorry I didn't mention this ... My .Computer.Network.UploadFile( "C:\MyFileLocation" , " ftp://MyRemoteServerLocation " , username, password, True , 500) AliQ Hi AliQ It looks like you are setting the ShowUI argument to true. Try the following and see if it solves the problem ... My .Computer.Network.UploadFile( "C:\MyFileLocation" , " ftp://MyRemoteServerLocation " , username, password, False , 500) Richard Hi AliQ, Can ...Show All
Carl Daniel Reports auto print
I have a local report using the reportviewer control. (rdcl 2005 fmt) It displays perfectly and when i click the print button it prints flawlessly. How do i print the document to the default printer automatically This seems like a basic function that i can't seem to find the answer to. Thanx Jerry Cicierega I found the answer. Its not as bad as it looks. Thois is a form called "slip.vb" I am printing to a slip printer. The form has a rpt viewer on it. The form nevers shows. It is just used as a containor for the report. I created the report as an RDL report. I coppied it into the program folder and re-named it to a RDCL extension. I then established the datasource. and it wo ...Show All
Vishal Shah datagrid column values to label1.text
hi for example;I showed my query result (select id,email from mail) on datagrid. there is four rows. id email 1 mail1 2 mail2 3 mail3 4 mail4 I want to write email values to label1.text. label1.text="mail1;mail2;mail3;mail4" how can I do :( I have been giving error msg:cast from string "email" to type "integer" is not valid what can do error row : sb.Append( CStr ( Me .DataGridView1.Item("Email", i).Value)) Dim sb As New System.Text.StringBuilder For i As Integer = 0 To Me .DataGridView1.Rows.Count - 1 sb.Append( CStr ( Me .DataGridView1.Item("Email", i).Value)) sb.Append(" ,") Next Me .Label1.Text = sb.ToString Loop through ...Show All
Leahx [VB.NET] How to merge many GIF Files into one file
I need to create a software that it merge many GIF File into one file container. My application has this form I want that when i click "Add File" it shows an OpenFileDialog and that add file's path in the ListBox And when I click "Merge File" It merge all GIF file present in ListBox And when I click "Split File" it split all GIF File present in a File Container and that It save GIF Files in the same directory of the File Container I tried to write the code but it change any bytes of the GIF Files when I merge :( and i don't know how to use Split Function in VB.NET [Off-Topic]I'm new in VB.NET and i don't know fine this new programming language Best Regards Flash Thanks!!!!! ...Show All
jk67 searching for & highlighting text
hi, i am trying to make my application search for text (in a combobox called "comboboxfind") in a listbox ("showbox") when i click on a button (called "findnow") can someone help me Imports System.IO Public Class BSP42Editor Dim search As String = "" Private Sub BSP42Editor_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load FindEntity.FindOK.Enabled = False FindNext.Enabled = False End Sub Dim loc As New List(Of Integer) Dim index As Integer = 0 Private Sub EntityViewer1_DataSourceChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EntityViewer1.DataSourceChanged FindEntity.Fi ...Show All
