I want a RichText box that will allow me to type basic vb code and then have this code executed. Similar to what could be done with SQL statements and ExecuteNonQuery, is there something similar to this for VB?
I was wondering how I would send a formatted vbscript block of code to the vbscript scripting interface for it to execute? I have tryed Windows script host but dont understand how to implement something like this using it.
I can run it using script control but I need an alterative method for 64-bit computer because i of the installer script that installs 64-bit components that only use the 64-bit version of scripting interface.
Even if its an idea with starter code i think i can build on that as long as you give me something to go on and explain your reasoning.Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda
I'm looping through an array of controls and need to know which controls an end-user has the ability to (via JavaScript or directly) change the value that gets posted back. Where can I find such a list?
So far I have this:
Private Function IsEditableControl(ByVal control As Control) As Boolean Return TypeOf control Is IEditableTextControl _ OrElse TypeOf control Is ICheckBoxControl _ OrElse GetType(ListControl).IsAssignableFrom(control.GetType()) _ OrElse GetType(HiddenField).IsAssignableFrom(control.GetType()) End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try If TextBox1.Text.Trim <> "" Then If TextBox2.Text.Trim <> "" Then
[code]....
When the button is pressed, it all works and the following files are created: yahoo.dll and yahoo.pdb My question is this: What is the code to load the already compiled yahoo files to execute the code again, without having to recompile the code?
I want to execute a code after every 5 min.I am trying to develop the application in .net and using the C# as a backend language.My basic requirement is a C# code which executes after every 5min which i click a start button on my .net form.
I know this requirement may seem weired to many of you but it is one of my project requirement.Is it possible to add code in Sp and execute in .Net exe. Like on button click i call one SP that SP returns few line of code and then program execute the code.
Been spending some time on Codility.com recently and it crossed my mind; how do they execute the code you have created (Specifically pertaining to C# and VB.NET) ?
What I am basically wondering is how would I take a textbox on a form type some code in it and then run that code? Is this possible without 3rd party tools?
Can anyone think of a clever way to execute a piece of code every time a form opens, application wide? I have an app with about 45 screens, and I don't want to drop code in each form load event.
Can anyone think of a clever way to execute a piece of code every time a form opens, application wide? I have an app with about 45 screens, and I don't want to drop code in each form load event.
how to run code "in the background".As a form is loaded into memory I have the following code filling a listbox from a database table with this sub.I read in one of the documents about making code efficient that I could make this execute in the background.The list box is not needed immediately.
Private Sub getReleaseChoices() Dim da As New OleDb.OleDbDataAdapter() Dim cn As New OleDb.OleDbConnection(gCnRefString) Dim ds As New DataSet()
I have an app that allows a user to type in code that can be executed much like vba code in the office world.I currently execute this code with the Proprietary Dexterity code used with MS Dynamics - GP.However, my users need to be able to run outside the Dexterity world.The easy answer is to allow them to type in vb scripting or vb code instead of dex code.However, I can't find an easy way to dynamically execute their code within my methods.CodeCom looked like it could be the answer, but If i'm reading it right, I would have to know what libraries the user is using in their code for vb.Thus, I thought to simply limit them to vb scripting.Unfortunately, I can't find a way to execute vb scripting from within vb, (all the articles are ancient and most links fail - thus I gotta believe there is an easier way).I'm at a deadline where I developed the prototype but trying to use sql statements failed miserably when trying to execute.
I am totally new to VB2008, so please bear with this likely dumb question.
I have seen numerous "my first program" tutorial that show you how to create your form, put controls on it, etc. I can get through those just fine.
However, I am wondering: If I compile a set of subroutines into a .exe, how do I indicate which code/sub to execute initially? I am an old school programmer (remember COBOL?), and we always had a starting point; a set of code execute, that initiated execution of other subroutines, functions, etc.
I have dabbled in VBA for Excel, and MS Access, and even those, you indicate in the interface, and menus you create, that first bit of code that brings up the menu, or perhaps the program's main interface.
I'm trying to accomplish something fairly simple in VB that I do everyday in JavaScript.I need to parse text between two strings (HTML tags mainly) that have multiple occurrences.
Sample Data:
<tag>test</tag> <tag>test2</tag> <tag>test3</tag>
If I wanted to grab the data in the 2nd <tag> in JavaScript I would simply do this:
var result = string.split('<tag>')[2].split('</tag>')[0];
And the only way I seem to get that to work in VB looks like this...
Dim from = string.IndexOf("<tag>") Dim [to] = string.IndexOf("</tag>", from) Dim result = string.Substring(from + "<tag>".Length, [to] - from - "<tag>".Length)
I have some code that access an API out on the web. One of the API's parameters allows me to let them know that I am testing.I would like to only set this parameter in my code when I am testing. Currently, I just comment the code out when I do a release build. Is there an automatic way of doing this based on the build configuration?
I have a VB.NET application with Enable application framework checked, and Splash screen set. At the same time, I need to run some code before the splash screen is loadedMyApplication_Startup seems to go later, so it's not suitable. I understand it's possible with custom splash screen, but would prefer any other way to make it without more complex customization.
Suppose I have two buttons btnCheck and btnOK. I want to execute few lines code of btnCheck from btnOK. So that When I click on btnOK, btnOK's code as well as BtnCheck's Code should be executed one after the other. How can I do this in vb.net
im having a speed issue with a puzzle solution generator i am developing. its currently running fine.. but i would love to have it tick faster then 1 millisecond.is there any way i could get my code to execute up to uS(microsecond) speed? or even faster heh. i just need a continuous loop faster then a timer that can update the UI, or form?
I am calling a sub from a form load event. The procedure that is being called adds columns to a listview and then loops through an array to populate the listview. I have another procedure called after the loop that does not execute when the loop completes. Please advise as to what I am doing wrong for the code not to execute after the loop in the if/then/else statement or why it is not executing if I remove the if/then/else statement and just placed the called sub after the loop or why the code does not go back to the form load event and then call the next called sub.[code]
Is it possible to create and execute code at runtime?Eg, I make a string with this as the data: MessageBox.Show("Test")Then I 'run' the code from this string to produce a MessageBox
I was reading a old post, and came along this post in particular by jmcilhinney... [URL]He states Quote: Originally Posted by jmcilhinney The other alternative is to do your initialisation from the constructor instead of the Laod event handler. My question is...how/where is the constructor? I can't seem to do the right internet search to find out how to do this.
Basically that line just figures out the grade no major code work there, what I want to do is execute that specific line with different variables without running the whole application and navigating to the point in the application which for this segment would be completing a 150 question exam, or coding some #temp page and running it from there.