|
this shd make you clear
http://www.c-sharpcorner.com/Articles/NSInCSandVBNETSSK.asp
|
|
|
|
|
K.Vijaya,
All you need to know about how to create a NameSpace in VB.NET.
http://www.vbdotnetheaven.com/Code/Apr2003/011.asp
Hope this helps,
~Brad:->
|
|
|
|
|
ya itsvery useful..... thank u
with regards,
K.Vijaya
|
|
|
|
|
i m getting error in fetching data from an xml file. I am using vb.net
Format of xml is such that it consist of nested tags.
<asa>
<sd>dfds</sd>
<sds>
<dg>sd</dg>
<gh>sdf</gh>
</sds>
<er>sdfds</er>
</asa>
i am not able to get data of nested tags(dg and gh)
Please help me regarding this.
Manish
-- modified at 8:04 Monday 17th April, 2006
|
|
|
|
|
querying xml data with xpath queries
http://support.microsoft.com/default.aspx?scid=kb;en-us;317069
|
|
|
|
|
Thanks a lot.
It works fine.
|
|
|
|
|
when i try to run my application from IIS by using following command:
//localhost/mysite/
then it does not load my default.aspx page.
and when i type
//localhost/mysite/defualt.aspx
then it give the following error
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/AgentImage/Default.aspx'. Line 1...
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default" %>
-^
what could be the reason
plz help
|
|
|
|
|
You're question would be better handled in the ASP.NET Forum. Regardless of the language it's written in...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
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
|
|
|
|