|
It sounds like you are gathering lots of different ideas in your mind....
|
|
|
|
|
Gabby Mills wrote: A simple example would be upon clicking a button on the website the visual
basics program would start/open then execute certain code ...
Also if possible I need this process to not be visible to the user?
Easy; execute the process on the server
You can compile the code, execute it, and relay the results to the computer. That opens up a can of worms of abuse.
Running code on the client will be harder. We have a thing with untrusted code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
There maybe some acceptable uses of such an architecture. We use it for an integration into a browser-run hospital information system. A web page of that HIS contains a link with a special protocol, and that protocol is connected with our application.
For this to work, you need to install the VB program on the local machine, and also register your protocol. Take a look at the registry at HKEY_CLASSES_ROOT\http or https or ftp for examples how a browser gets started when a webpage is to be opened.
|
|
|
|
|
You cannot do that, it is a security issue. How would you feel about some website running a program on your PC without your knowledge?
|
|
|
|
|
I have requirement that dragging one by one icons (pictures) from treeview control and dropping into the picture box.
already i have attached the images to treeview and dragging the icon also done.
presently I am not able to drop it to the picturebox with exact location specified also if want to keep one more icon it's overlapping with the previously dropped images. Kindly help me to solve the same
|
|
|
|
|
In which environment? WinForms[^], WPF[^], ASP.NET? There's also an example on vb-helper.com[^]
If you need help with your code specific, then I suggest you include it in the question.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Can anyone help me to create license for my application ...
|
|
|
|
|
I really wouldn't bother with licensing any more but you've got plenty of choices: "licensing sdk .net"[^]
|
|
|
|
|
I want to scrape a table from web page but the content of table doesn't exist in the source of page
the table created on the fly by java script
this is the source of page
<HTML>
<HEAD>
<TITLE>Cisco Unified Communications Manager Express GUI</TITLE>
<SCRIPT Language="JavaScript">
GUIVersion = "7.0.0.1 (Compatible with IOS 12.4(20)T)"
var MWinC
var newestDN = 0
var retryTimes = 0
var changeBit = false
var FeedString = new Array()
FeedString[0] = "Router config has been successfully changed."
FeedString[1] = "Configuration has been successfully changed."
FeedString[2] = "Configuration change failed."
FeedString[3] = "Other telnet session active. Write delayed."
var FailReason = new Array()
FailReason[0] = "Please report the following error: "
FailReason[1] = " Ambiguous Command."
FailReason[2] = " No Matched Command."
FailReason[3] = " No Matched Help Command."
FailReason[4] = " No Matched Alias Command."
FailReason[5] = " Config Locked Down Too Long."
FailReason[6] = " Configuration Change is not allowed."
FailReason[7] = " Wrong Tag Value."
FailReason[8] = " System is writing config to memory. Your change is aborted!"
FailReason[9] = " Parser return code failed."
FailReason[10] = " Invalid ITS command option."
var GenFeed = new Array()
GenFeed[0] = "Add the new extension to a new phone?"
function ksBanner() {
MWinC = "<html><head><style>BODY{\n margin-left: 0pt; \n margin-top: 0pt;\n}"
+ "</style><title>Cisco Unified Communications Manager Express</title></head>"
+ "<body><IMG src='logohome.gif' alt='Cisco Logo'>"
+ "</body></html>"
return MWinC
}
function Greet1() {
MWinC = "<html><head><title> View Window </title></head><style>BODY{BACKGROUND-COLOR: #cccccc} H2{PADDING-RIGHT: 0.25em; PADDING-LEFT: 0.25em; FONT-WEIGHT: bold; FONT-SIZE: 0.9em; PADDING-BOTTOM: 0.25em; MARGIN: 0.5em; COLOR: #666699; PADDING-TOP: 0.25em; FONT-FAMILY: Arial, Verdana, Lucida, sans-serif; BACKGROUND-COLOR: #cccccc }</style><body>\n"
+ "<H2>View Window</H2></body></html>\n"
return MWinC
}
function Greet2() {
MWinC = "<html><head><title> Change Window </title></head><body>\n"
+ "<h2>Change Window </h2></body></html>\n"
return MWinC
}
</SCRIPT>
</HEAD>
<FRAMESET rows="0,*" frameborder="0">
<FRAME name="banner" src="ITSMain" scrolling="NO" frameborder="0" marginwidth="0" marginheight="0" noresize>
<FRAME name="dispframe" src="javascript:parent.Greet1()">
</FRAMESET>
</HTML>
however i can get the content of the table from browser developer tools
any suggestions
|
|
|
|
|
Depends on how the page is implemented; you could contact Cisco and ask them.
Otherwise, you'll be hunting the JavaScript, looking where it dynamically loads the data. It'll be fetching XML or JSON from a URL, probably passing some arguments along. You can usually see it fetch this data in a tool like Fiddler/WinPCap.
Alternatively, there's a WebBrowser-control that acts like a webbrowser, but that can also be access using code. You could automate that to do whetever the user would do.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
i have an access database with a particular column which contains the words "male" and "female", and would like to know the number of times each word reoccurs. and display the value in a label. thanks @all
|
|
|
|
|
You use a WHERE caluse to filter the dataset eg
Select count(*) from Table WHERE ColumName = 'male'
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
thanks will try this right away
|
|
|
|
|
Assuming the colun is called Gender, and the table is called Person
SELECT [Gender],Count(1)
FROM [Person]
GROUP BY [Gender]
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
thanks alot it worked as expected. But please how do i sort out and select files using two columns?
|
|
|
|
|
Sort using an ORDER BY clause
Select using a WHERE or HAVING clause.
I suggest you learn some basic SQL - try here: SQL Tutorial[^]
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
Hello, my apologies if I'm on the wrong forum. First time posting a code question anywhere since I was a student. (It's been a while.)
I'm trying to create a Customized ComboBox for an application and I want to have a property which is a list of strings. I've simplified my code down to just that to make things hopefully simple.
I can create normal properties that are just string variables and they work in the designer. But when I try to make a property that is a List(Of String), it appears to work but I get the following error when I try to add a string to the list in the designer.
> Constructor on type 'System.String' not found.
My code is below:
Imports System.ComponentModel
Public Class CustomComboBox
Inherits ComboBox
<Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design", _
"System.Drawing.Design.UITypeEditor,System.Drawing")> Private MyListOfStrings As List(Of String)
Property MyListOfStringsProperty() As List(Of String)
Get
Return MyListOfStrings
End Get
Set(ByVal value As List(Of String))
MyListOfStrings = value
End Set
End Property
End Class
Any help is appreciated, Im'
|
|
|
|
|
Imports dao
Imports System.Data
Imports System.Data.OleDb
Imports VB6 = Microsoft.VisualBasic
Imports Microsoft.Office.Interop
Imports System.Object
Imports Microsoft.Office.Interop.Access
Public Class Form1
Private Sub ExportOneTable()
'EXPORTS TABLE IN ACCESS DATABASE TO EXCEL
'REFERENCE TO DAO IS REQUIRED
Dim strExcelFile As String
Dim strWorksheet As String
Dim strDB As String
Dim strTable As String
Dim objDB As Database
'Change Based on your needs, or use
'as parameters to the sub
strExcelFile = "C:\Ravi\MySpreadSheet.xls"
strWorksheet = "WorkSheet1"
strDB = "C:\Ravi\SSG_INVY.mdb"
strTable = "company_details"
objDB = OpenAccess(strDB)
'If excel file already exists, you can delete it here
If Dir(strExcelFile) <> "" Then Kill(strExcelFile)
objDB.Execute( _
"SELECT * INTO [Excel 8.0;DATABASE=" & strExcelFile & _
"].[" & strWorksheet & "] FROM " & "[" & strTable & "]")
objDB.Close()
objDB = Nothing
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ExportOneTable()
End Sub
End Class
|
|
|
|
|
Tell us the error you are getting - we are not psychic!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
Which line?
Error message?
|
|
|
|
|
And the error is?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
hi
Dim job = From J In QryGen.co_jobs Where J.co_id = 1013 And J.industry_mas_id = 5 Order By J.job_id Descending Select New With {J.job_id}
this my query. in this I would like construct the query on runtime for where condition.
sometime need to include some other fields to where condition.
I need help.
Thanks in advance.
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
Try chaining the Where clauses:
Dim query As IQueryable(Of Job) = QryGen.co_jobs
If filterById Then
query = From J in query Where J.co_id = 1013 Select J
End If
If filterByIndustry Then
query = From J in query Where J.industry_mas_id = 5 Select J
End If
Dim job As IQueryable(Of Job) = From J in query Order By J.job_id Descending Select New With { J.job_id }
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
can any one help how to license my application both offline and online... And i want to know for offline where will be the registration keys stored
|
|
|
|
|
zuber ahmed wrote: can any one help how to license my application both offline and online Only if you intend to write one and get stuck. If you're looking for some ready-to-go code that implements said functionality, I'd recommend Google.
zuber ahmed wrote: And i want to know for offline where will be the registration keys stored If you're going to write it, then you decide where they go. There's however no place where the user cannot look if he/she has administrative rights. Whatever you access locally, my debugger will know.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|