|
hi
i really need help
i wish to show some data in the recordset when a user enter value into textbox. i can only manage to do the following coding but the result is not as i expected.
Private Sub Text18_Change()
If rs.Fields(0) = Text18.Text Then
Label2.Caption = rs.Fields(1)
Label3.Caption = rs.Fields(2)
Else
Label2.Caption = ""
Label3.Caption = ""
End If
End Sub
i wish that the textbox can search the whole recordset, but this code will only show the result than the pointer is currently pointing. it just wont move to the next record. i try putting rs.movenext any where in the code but the result is "No current record"
can any please help me
if this is not possible please tell me so that i think of another way
i wish this way is possible
please help me
thank you in advance
Gary
|
|
|
|
|
Hi,
I want to make a windows service that run in the process. I want that at specific time (Time Which Mention in the code) a message box will be display and when user click on OK then another application should be open.
I hope someone help me
Thanking You
(Hemant Uttam Mane)
|
|
|
|
|
Hemant_Mane wrote:
I want to make a windows service that run in the process.
You didn't ask any specific questions so it's hard to help you with any problems...
BUt, I've got one for you. What do you mean by "run in the process"?
Are you using VB or VB.NET? VB.NET is easy enough. Just create a Windows Service project. When you install the app, make sure it is using the Local System account and 'Allow service to interact with desktop' is checked.
RageInTheMachine9532
|
|
|
|
|
I want to hook the even when word document is close. how
can i achieve this i know i have to declare something like
the following
Public WithEvents appEventHandler As word.application
but somehow i get compiler error
why?
Shin
|
|
|
|
|
Hello all,
I have to read the html string from email, and display it back on the internet explore.
I have no problem getting html body of the email. but displaying back is giving me trouble.
Here what I do, (i'm using vb.net)
1) read the html body from email. ebody = mail.HTMLBody
2) write to the file in two ways regualr text string and binary string so all text (in any (i don't care)language that was able to view on internet explore). As soon as I read the htmlbody, I take it and write it to the .html file so it can view on internet explore.
<br />
1) <br />
Dim objStr As StreamWriter<br />
'creating html file<br />
objStr = New StreamWriter("c:\afile.html") ' location could be changed<br />
objStr.WriteLine(ebody) 'writing to the file<br />
objStr.Close() 'close the file<br />
<br />
2)<br />
Dim fs As New FileStream("c:\afile.html", FileMode.Create)<br />
Dim w As New BinaryWriter(fs)<br />
w.Write(ebody)<br />
w.Close()<br />
3) display the html file with internet explore
<br />
Dim ie As New SHDocVw.InternetExplorer<br />
ie.Visible = True<br />
ie.Navigate("c:\afile.html")<br />
However the text are not displaying right if the text was written in different language other than English. Let's say the sentence is written in Chinese, then it display boxes.
I tried to write the string in both binary format, and regular format.
How can I write to the text file not changing all the text font and format?
|
|
|
|
|
Hi!
I want to bind a custom collection to a datagrid. The collection inherits from CollectionBase. The binding is no problem, but I want to see a "add new" row at the end of the datagrid. How can this be done? I know this is no Problem if you use a datatable. But I don't want to copy my list to a table. There must be a way to do this with a collection, right? I even tried to implement IBindingList. No difference. Do I have to implement ITypedList, too?
Markus
|
|
|
|
|
Hi,
I want to create a menu control (support unicode) but i dont know to create it . Please tell me how to create it or sourcecode.
Please reply me as soon as posible.
Thanks
|
|
|
|
|
Hi,
Does anyone know where I can get a component that can get the possible HanYuPin from a Simplified Chinese Character in GB format?
I really need help on this!
Best Rgds,
Nickson
|
|
|
|
|
Hello Everybody,
We have an existing VB 6.0 application and we want to make this send and receive data using sockets instead of MSComm32 which it currently uses.
Questions are:
1. Can it be done using VB 6.0 effectively or should I go VB.Net?
2. I guess I may be able to use Winsock Control but I'm worried about how good VB is in terms of socket programming when compared to VB.Net?
|
|
|
|
|
I think you are best off getting VB.NET. You can still interact with a .NET DLL from your VB6 code, using COM Interop. .NET has very good support for sockets.
You could probably get a 3rd party component that makes it easy from VB6. VB.NET is so much more fun though
|
|
|
|
|
I have a code in VB of a control ActiveX that it abstracted all complexity of Windows DLL.
Should I order where? (just the sources, without EXE ).
<willians@bb.com.br>
Willian S. Rodrigues
<willians@bb.com.br>
<willian.cpp@bol.com.br>
(VB, VC++, Qt, MFC, Cobol,Clipper, Pascal)
|
|
|
|
|
|
|
|
|
hello
i wish to open a particular words or excel to let the user
see some output
the word/excel is already been create
the document have information in it
how do i set the path to open the particular file
and if posibble how do i put the path name to a combo or list box?
please help
thank you
Gary
|
|
|
|
|
Add a reference to "Microsoft Excel X.0 Object Library" and "Microsoft Word X.0 Object Library" to your application. Afterwards, both objects have functions which will open the documents.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
hii Dr-X
thank you
but is it possible that i have a small code sample on how to open it?
cause the library i have added it but i dunno how to use it
can you please tell me how to use it
thank you
Gary
|
|
|
|
|
Hi,
I am using a console application, and I want to print a text file that is on my root of "C:\", but how do I do that?
Thank you
|
|
|
|
|
Hi
are you wanting to dump the entire content out to the console? if so, you can use the stream reader class to read in the text file and dump that file using the console.writeline command..here's the code for it...
Dim _strmReader As New StreamReader("c:\test.txt")
Console.WriteLine(_strmReader.ReadToEnd)
_strmReader.Close()
_strmReader = Nothing
Console.ReadLine()
|
|
|
|
|
can any one provides me with a code to convert from gregorian date to hijrian date
|
|
|
|
|
I have three computers running on a D-Link network. The main computer is a domain computer using Active Directory. I am using Windows 2003 on all computers. (actually, I tried Windows Server 2000 also).
I am having trouble on the two computers that are linked to the domain controller. Both of these computers are using IE 6.
One of these computers, Computer A has a VB.Net 2003 webservice on it that just returns a message. Actually, before returning the message it does an eventlog write just to test that the service is being entered.
Computer B has an Outlook form that is trying to connect to the webservice on Computer A. Unfortunately, I MUST use VBScript to do this. I am trying to use the XMLHttpRequest object to connect.
I keep getting a returned HttpRequest Status of 500 (Resource Not Found) when trying to connect.
I tried to connect via a VB.Net program and also through IE 6 and they both work just fine.
I think the problem is some sort of permissions problem. However, I checked the ASPNET user and the permissions of the solutions folder in IIS and also Windows Explorer and they seem to be fine.
I also have Browsing Off and have a Default Page set.
Any suggestions would be greatly appreciated.
Thanks,
magicscreen
|
|
|
|
|
|
How to add multiple child command to parent command in vb data report(I want to add 3 child commands,all commands uses different tables).Please reply as soon as possible
|
|
|
|
|
HI
I have one doubt.I am using the webbrowser control.Can u tell me How we navigate the site with toolbar in web browser control in vb.net.Is there any property for webbrowser control acts same as internet explorer.
suhasini
|
|
|
|