|
Not to mention that there is about 400 threads in this forum relating to it.
|
|
|
|
|
I need to monitor a web page open in my browser and click a 'button' every x minutes, and if the page has changed, to pop up an alert. I have no idea if this is possible and would appreciate anyone's suggestions as to how this might be achieved. I am experienced in VB, and can understand C#.
It would not be a problem if the program had to open the web page in a browser control within the program.
Thanks.
|
|
|
|
|
|
It could be possible with the web browser control.
http://msdn.microsoft.com/en-us/library/2te2y1x6.aspx[^]
pseduo code
fetch page -> store source code
Timer ticks off and triggers event
fetch page -> store source code
compare previous code to new code;
if different do something
Just because we can; does not mean we should.
|
|
|
|
|
Hi All Respected,
I am working in vb.net, i have created a textbox according my requirements, now i got some offer from my client, he wants to purchase it, but my problem is how can i register it in vb.net 2005 toolbox, and how can i provide license to use the control, and after expiration it will off in used application and give design and compile time error.
i hope u are understand my problem, if u have any ideas pls guide me.
bye
regards Rajat.
B in Game
modified on Monday, May 12, 2008 7:46 AM
|
|
|
|
|
|
Hello All,
I am working on a VB.net application in VS2005. In which I have developed an add-in for Microsoft Excel 2003. But when I try to compile my workspace I get following error.
Error 58: Type 'Microsoft.Office.Interop.Excel.Application' is not defined.
What can be reason of this error ?
Please suggest.
Thanks in advance,
bye
|
|
|
|
|
You don't have the OFfice toolkit installed ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can you post some code, that might help to understand.
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
Hai all,
i had on gateway.xml file,like
<<?xml version="1.0" encoding="utf-8" ?>
<GateWay name="UserID">
<title>Gate</title>
<Collection>
zoo
<strpwd >test </strpwd >
<strapiID >301</strapiID >
<strurl >http://sms.xyz.com/sen.asp?</strurl >
</Collection>
>
and i need to assign strUserID variable in .net,and i had to assign the
(strUserID =zoo) strpwd =test from the xml file....
Thanks in advance
Thanks
Subbu.
|
|
|
|
|
Use the XmlDocument to load the XML, use XPath to search for nodes, then when you find a node, read it's InnerText for the value.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
write to excel file
modified on Monday, May 12, 2008 5:42 AM
|
|
|
|
|
By using the Microsoft SDK for controlling Office files via .NET.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can i have any sample code?
Hitesh sojitra
|
|
|
|
|
Sure[^]
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Imports BrainCells
Class Google
<some work="" of="" your="" own="">
End Class
I don't speak Idiot - please talk slowly and clearly
|
|
|
|
|
Funny how answering a stupid question just gets you a 1 vote ( well, yours was a joke, but I got a 1 for being honest and helpful ).
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Friends,
I have devleoped one application in VB 6.0. Packaged it and try to installing in others system.
But when i install in others system, for few of the systems the application is not installing and giving the following error message.
Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now. You will need to restart Windows before you can run setup again. Click cnacel to exit setup without updating system files.
Kindly help me for this issue.
Application developed in Windows XP , professional Edition...The system where I am getting problem is also windows XP and some are Windows 2000.\
Thanks in Advance,
Regards,
|
|
|
|
|
Well, I would assume that VB6 needs some runtime that is not present. What's your issue, does the installer not download the needed files so your app runs?
VB6 has been a dead language for 6 years and sucked long before that, why are you still using it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hi guys,
Been struggling with this and thought I had gotten it right when I realised my way affected the functionality of the databindingsource.
I have 2 databound comboboxes. The first contains a list of industry categories and the second contains the companies in those industries. I need the second combobox to only show companies that fall in the industry category selected in the first combobox. This needs to update whenever the records are navigated or the selection in the first combobox changes.
The way I did it (tried using companybindingsource.filter and refilling the company table on every selection) causes "haschanges" on the dataset and also screws up my "add new record".
If anybody could help me or point me to an example I would be grateful.
Thank you
Ed
|
|
|
|
|
Just handle the selected index changed of the first combo and then run SQL to select a new data source for the second. Sounds to me like you're using the built in SQL data source rubbish, throw that in the bin, write real code and you'll find you'll regain complete control over wat your program does.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi,
however Christian Graus already answer this question in therotically. if you have any problem in apply this thing practicaly then consider following
first of all use following statement in declaration section
Private ComboBox1LoadTime As Boolean<br />
Dim ds, ds1 As New DataSet
<br />
now fill the combo box as following at load event of form <br />
<br />
Dim str As String<br />
<br />
Dim mdins As New mdGlobal 'here mdglobal is <br />
str = "select areaname,areaid from areainfo"<br />
ds = New DataSet<br />
ComboBox1LoadTime = True<br />
ds = mdins.GetResultFromQuery(str)<br />
'in above statement i use class mdglobal which is created by me. and GetResultFromQuery return dataset<br />
<br />
ComboBox1.DataSource = ds.Tables(0)<br />
ComboBox1.DisplayMember = "AreaName"<br />
ComboBox1.ValueMember = "Areaid"<br />
ComboBox1LoadTime = False<br />
ComboBox1.SelectedIndex = -1
Now on selected index change event of combobox1 use following code
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged<br />
If Not ComboBox1LoadTime And ComboBox1.Text.Trim <> "" Then<br />
Dim str As String<br />
Dim mdins As New mdGlobal<br />
<br />
ComboBox2.DataSource = Nothing<br />
If Not ds1 Is Nothing Then<br />
ds1.Dispose()<br />
End If<br />
<br />
str = "select iteminfo.itemid,itemname,area_item.areaid from iteminfo,area_item where iteminfo.itemid=area_item.itemid and area_item.areaid=" & ComboBox1.SelectedValue<br />
ds1 = New DataSet<br />
ds1 = mdins.GetResultFromQuery(str)<br />
<br />
ComboBox2.DataSource = ds1.Tables(0)<br />
ComboBox2.DisplayMember = "itemName"<br />
ComboBox2.ValueMember = "itemid"<br />
End If<br />
End Sub
Please take care that,in above code i use sample query and my own method for fill dataset
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Yes, thank you both very much. That sorts it. It seems to be the .datasource= nothing bit that makes it all work.
|
|
|
|
|
Hello all,I'm using VS 2003,VB.NET creating a window form application. I found problem on retrieving data from my MySQL database which have varchar and tinytext column. I found error when I try to check if any data exited by using ObjRead.Read. Anyone can give me a solution on how to check the existance of the data inside the MySQL table using VB.NET?
The following are the database table structure of the command running:
Field Type Collation Null Key Default Extra Privileges Comment<br />
------------ ----------- ----------------- ------ ------ ------- ------ ------------------------------- -------<br />
LocationCode varchar(10) latin1_swedish_ci NO PRI select,insert,update,references <br />
SettingKey varchar(10) latin1_swedish_ci NO PRI select,insert,update,references <br />
SettingValue tinytext latin1_swedish_ci YES (NULL) select,insert,update,references
The following are the Code I used to check and I'm using If Statement to control the situation:
<br />
Try 'Check Server IP<br />
Dim s As String<br />
ObjComm = New OdbcCommand("SELECT SettingValue FROM pos_setting WHERE LocationCode='" & TerminalLocate & "' AND SettingKey='Server_IP' ", ObjConn)<br />
<br />
ObjConn.Open()<br />
ObjRead = ObjComm.ExecuteReader()<br />
If ObjRead.Read Then<br />
ObjConn.Close()<br />
<br />
s = ObjRead.Item(0)<br />
If (s = 0 Or s = 1 Or Len(s) < 3 Or s = "") Then<br />
'Something run here<br />
<br />
Else<br />
<br />
End If<br />
Else<br />
MessageBox.Show("Error on Checking Server IP")<br />
End If<br />
Catch ex As Exception<br />
MessageBox.Show("Error : " + ex.Message)<br />
Finally<br />
ObjConn.Close()<br />
End Try
I have put some integer into the table:
Example: LocationCode=KK SettingKey=ServerIP SettingValue=192.168.2.80
But when I run it,it shows me this error:
Error: No data exist for the row/column.
Why could this happen? Anyone can give me some solution?
Thanks for reading.
|
|
|
|