|
Your IIS is not set up to run ASP.NET pages. You have to re-register ASP.NET in IIS.
---
b { font-weight: normal; }
|
|
|
|
|
hi,
For some time i m using crystalreport in vb.net and it worked fine.but, after some time when i re-opened my crystalreport, then i got the error : Invalid TLV Record. and then my report could not be opened even in design mode.
if u hv some concrete solution then Plz help me out....it's very urgent!
Thanx in Advance,
Sweety Shah.
sgshah
|
|
|
|
|
Hello there
I have an image with Jpeg compression. When I try to load that file it gives me error "out of memory". Can any one guide me how to load the file ? this is the code I am trying
Dim img As Image
img.FromFile("C:\test\1.tiff")
For Sample image with Jpeg Compression please download from the link below.
http://www.alm-soft.com/Rizwan/1.tiff[^]
I shall be very thankful to you for your kind support.
regards
Rizwan Bashir
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I am looking for solution and every coming on vb.net is not going to C# or working on C# not coming to vb.net. so why not ??
|
|
|
|
|
Hi,
How do we detect arrow keys(up,down,left,right) in a vb.net application? Also, what are the code values for these keys?
The application consists of a form that has an image control on it. When the user presses the right or left arrow keys, the image is supposed to move to the right or left.
|
|
|
|
|
Override the OnKeyDown method in the form. The System.Windows.Forms.Keys enumeration contains all the key codes, I think the up, down, left, right are something like Keys.Up etc.
Note, you can't use the keypress because it doesn't trap function / arrow keys for some reason.
Protected Overrides Sub OnKeyDown(KeyEventArgs e)
Select Case e.KeyCode
Case Keys.Up
' Move image up
Case Keys.Down
' Move image down
Case Keys.Left
' Move image left
Case Keys.Right
' Move image right
End Select
End Sub
Ed
|
|
|
|
|
Yup, thank you
I tried the code and it works.
The note on keypress is useful also because I was wondering why keypress does not work. =)
|
|
|
|
|
i'm getting the error
"Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index"
when i run the following code for updating the datagrid:
ID = DGShippers.DataKeys(e.Item.ItemIndex)
plz tell me why i'm getting this error.
plz give th solution too.
|
|
|
|
|
can i have a look at the code... also please write about the context in which you are wtiting the code....
u can look for the error where u are creating/adding items to the index...
these errors are of primitive kind...
learning is acontinuous process
|
|
|
|
|
I have two xml files. now i want to create a new xml file with some specific tags from these two files. how can i do that???????? also let me know, if i want to update this file later on, how can i do that.
Waiting for a Reply...............
Manish
|
|
|
|
|
hi,
How to delete multiple records in datagrid using Checkbox like yahoomail in vb.net.
If possible, then give me code for that.
It's urgent.
Thanx in advance.
Regards,
Sweety Shah
|
|
|
|
|
i will not give u the code...use your wits ....that's important...
first think, what u want to do ... u want multiple row deletion(in the front end---and of course u also have to update database)...
pertaining to each row u select, the database should be updated(or deleted)...
if u want to use checkboxes,it's fine...
each checkbox is pertaining to a row, and hence are linked to the database....
if i am not clear,u can mail me at praslearn@yahoo.co.in
learning is acontinuous process...
|
|
|
|
|
Hi, I created a .dll that contains various forms I wish to keep outside the main .exe
This Sub in my .exe's main form calls: Show_Form1()
Private Sub Show_ThisForm(ByVal sender As Object, ByVal e As EventArgs)
ThisForm.Show_Form1()
End Sub
WHERE .dll's code is:
Public sub Show_Form1()
Dim ThisForm as new Form1
Form1.ShowDialog()
End sub
Form1's Load Sub is this:
Private Sub Base_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
Text &= "please, wait..."
Show()
Refresh()
Cursor = Cursors.WaitCursor
If Con.State <> 1 Then
MsgBox("The Server is not available", MsgBoxStyle.Critical, "Cannot Proceede")
Close()
Else
Try
Retry:
myClient.DownloadFile("http://www.site.com/", ResFile)
If Init_Parser() = True Then
Text = "Ready!!!"
Get_Info()
Else
Close()
End If
Catch
If MsgBox(Err.Description & Chr(10) & "Would you like to try again?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Connection failed") = MsgBoxResult.Yes Then
GoTo Retry
Else
Close()
End If
End Try
Cursor = Cursors.Default
End If
End Sub
Now, here is the THING: If (myClient.DownloadFile) succedes everything goes just fine, but if it fails then my .exe's main form minimizes and the programe start using all CPU power(will not release it)
If I press (pause) to debug, it stops at this line (***)
Public sub Show_Form1()
Dim ThisForm as new Form1
Form1.ShowDialog() (***)
End sub
I have no idea what's going on, can anybody help?, please!!!
In theory, Form1 should close and the .exe's main form should regain focus
-- modified at 0:07 Monday 17th April, 2006
|
|
|
|
|
You've created an endless loop with the combination of structured exeption handling (SEH = Try...Catch) and the GoTo Retry statement. You really should not use GoTo especially when you redirect the code back into the Try block.
Restructure the code and see how you go.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
First of all, Thank you for your help. I just noticed that I did not explain the issue properly.
When myClient.DownloadFile fails, the execution goes into the CATCH statement, and asks the user if he wishes to try again. The problem occurs when the user press's NO; if so, the only line of code that is executed is:
Close().
skiping the GoTo statement.
The entire Base_Load sub completes (I could not detect the the endless loop, but, if this was the case, the execution would reamin between the Retry and the GoTo statements. is this not right?). Since both the .dll project and the main app belong to the same solution, I can debug both projects simultaneously; if a endless loop were created the debuger would pause(on my request)execution in any of the lines in between the loop(**)
Try
Retry: '(**)
myClient.DownloadFile("http://www.site.com/", ResFile)
If Init_Parser() = True Then
Text = "Ready!!!"
Get_Info()
Else
Close()
End If
Catch
If MsgBox(Err.Description & Chr(10) & "Would you like to try again?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Connection failed") = MsgBoxResult.Yes Then
GoTo Retry '(**)
Else
Close()
End If
End Try
instead of in the .exe's main form line: (***)
Public sub Show_Form1()
Dim ThisForm as new Form1
Form1.ShowDialog() (***)
End sub
Please, do not missunderstand me, I am not, by any means, proud of my "code", nor refusing to modify it. I am trying to understand what the problem is so that it would not bit me again
By the way, the only reason why a I using .ShowDialog instead of .Show is because the user must resolve that dialog in order to continue working with the .exe (is this approach wrong?)
Once again, thanks a lot for helping me learn how to Fish your are very kind.
|
|
|
|
|
You've still created an endless loop in your Try/Catch with no hope of ever stopping it if the error condition persists indefinitly. Restrcuture it so it only tries for a limited TIME or a set number of ATTEMPTS before completely giving up. And don't EVER use GOTO's. It's just not necessary.
While Attempting = True
Try
' yada, yada, yada
Catch
' yada, yada, yada
End Try
If successful Then
' return to caller
Else
update 'Attempting' tracker
EndIf
End While
' If we get here, the process has failed repeatedly and we've given up...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
does anyone know how to create custom project wizards for Ms vb 2005 express edition? i searched the web for a little while with no success. i found how to do it in c# here[^] but cannot convert the code to vb.net.
any help is greatly apprectiated.
- Kyle
|
|
|
|
|
The following code is a VB6 Standard EXE. I create an Excel app using OLE Automation. I only want One Excel app to be opened at one time. If the Excel app is already opened, I reuse it to update the cell value.
If the user close the Excel and re-click the Command1 button in the VB app, the app should create a fresh excel app. However, the code below show runtime error. How to check whether the user have close the Excel app created by VB? Please advise... Thanks.
---------------------- The Code -----------------------
Option Explicit
Dim myApp As Excel.Application
Private Sub Command1_Click()
If myApp Is Nothing Then
Set myApp = New Excel.Application
myApp.Workbooks.Add
myApp.Visible = True
End If
myApp.Cells(1, 1).Value = "Hello"
End Sub
Pedestrian
|
|
|
|
|
You can avoid the runtime error by using this.
Dim myApp As Excel.Application<br />
Private Sub Button1_Click()<br />
myApp.Workbooks.Add()<br />
myApp.Visible = True<br />
myApp.Cells(1, 1).Value = "Hello"<br />
End Sub
I have no idea, how to check whether the user has close the Excel app.
I’ll be back n 12 hours
Regards,
Chatura Dilan
|
|
|
|
|
Thanks... I have found the solution, just check for Visible property of myApp object solve the error...
Regards,
Pedestrian
|
|
|
|
|
Just wanna know if vb ver 5.0 is compatible with windows xp and wher can i get the relevant information?
I would like to know whether VB 5.0 is compatible with Windows XP and wher can i get the relevant information?
|
|
|
|
|
Yes, VB6 apps will work on XP, so long as the VB6 Runtime is installed. THe problem you have with getting information is VB5 hasn't been around for about, oh..., 10 years or so.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
So wad are the codin for the vb 5 in wins xp,as currently the codin i have for copyin of files sometimes does not work in wins xp. So is there any specified code for the transfer files in vb 5 if we use wins xp?
I would like to know whether VB 5.0 is compatible with Windows XP and wher can i get the relevant information?
-- modified at 23:11 Sunday 16th April, 2006
|
|
|
|