|
|
i need to create button on vb.net form which browse the c drive then choose file(includes phone numbers 1 column) with txt extension then i need to send all data(print the phone numbers)from notepad to listview located in vb form called listview1 .
kilany
|
|
|
|
|
|
Why do you want to involve notepad at all? Why not just read from the file?
---
b { font-weight: normal; }
|
|
|
|
|
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Try
Dim cone As New Conection
Dim ii As Integer = ds.Tables(0).Rows(ComboBox1.SelectedIndex).Item(0)
Dim sh As String = cone.get_Special_data("select Switch_Access_Code from Swiches where Swich_ID=" & ii & "")
b2 = ""
b2 = sh
Me.WindowState = FormWindowState.Minimized
System.Windows.Forms.SendKeys.SendWait(b2)//b2="2494:" come from //database on sql server
Me.WindowState = FormWindowState.Normal
b2 = ""
Catch ex As Exception
MsgBox("الرجاء اختيار القسم")
End Try
End Sub
some times when i click on this button will type on active window 4294: but aslo some time type 44294: and some time 4294:: and some time 4294: and some time 4449942: althought the data which comes from data base is just 4294:
why the variable b2 some time print wrong data not as want ???????
kilany
|
|
|
|
|
It's not the B2 variable that has the problem. It's SendKeys. Using SendKeys to send data or control another application is NOT reliable, as you've already found out. You're quite literally stuffing the keyboard buffer with keys that are NOT guaranteed to make it to their intended target control. On top of that, if the target control already has data in it, you could be inserting this data into the middle, or whatever, of the existing data.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
ok .. can you give me the best way t o pass a data without any lossing of data...
thanx alot friend
kilany
|
|
|
|
|
hi
how can i deploy my vs.net 2005 asp.net application(using vb.net) on remote server.
i'm unable to deploy my application on server URL
please guide me.
|
|
|
|
|
If this is going up to your ISP, this is a question best asked of them.
If this is one of your own servers, then the easiest way is to create a Setup project for your website and install in on your remote server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
there was a problem in my PC while accessing the Microsoft Common Dialog Control. It shows License problem...Can any one help me to rectify this problem?...
Thanks..
with regards.
K.Vijaya
|
|
|
|
|
I have created a sample web serivce. while running the web service, it shows an error which is regarding "user doesn't have access permissions". can any one tell me why this occurs?
K.Vijaya
|
|
|
|
|
could u please tell me is there any shortest way to create and place a new namespace into the coding? and let me know about the namespaces fully because i don't know how to create a namespace and tell me some ways to create a web service in VB.NET. thanks.
with regards.
K.Vijaya
|
|
|
|
|
if u want to use a namespace into code, justt use import statement.
eg. imports [namespacename]
so as to use web service, open a web service project, and while defining your function define them using web method tag.
<web Method>
function defination
Manish
-- modified at 8:14 Monday 17th April, 2006
|
|
|
|
|
ya thanks but i knew those already.... i have asked about how to create a new namesapce in VB.NET?... Is there any possibilities to create?.. If so can u plz explain some of the cocepts to create a namespace..?
Anyhow thanks for ur valuable information.
with regards...
K.Vijaya
|
|
|
|
|
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
|
|
|
|