Automatically Convert Properties To Program?
Sep 4, 2009
Migrating an old ASP site to .NET, and there's a load of VBScript we're porting to VB.NET.
Getting into trouble with the old property syntax, does anyone know of a tool (or other such magic) that could do this automatically?[code]....
View 2 Replies
ADVERTISEMENT
Oct 20, 2009
What is the best VB syntax for this[code]...
View 2 Replies
Apr 15, 2011
I'm actually more comfortable in Java language for developing apps. But since my requirement now is getting tighter, I need to jump forward into VB.NET
well yeah... seems need to adapt some a bit. Anyway, I typed a lot for making this setter and getter properties inside visual studio;
[Code]...
View 1 Replies
Feb 2, 2011
Within my project I have created an Entity Data Model, complete with relationship links between the various tables. I notice when I do so, Visual Studio automatically creates a property named after this link.
I have then generated a Domain Service Class based on this data model, and once again within this a property is generated representing the link, ie within my ChemicalApplication class there is a Chemical property of type Chemical.
The trouble is, within the silverlight client, I can access the ChemicalApplication data object no bother, and can see the ChemicalApplication.Chemical property, but as soon as I try to access it, I recieve an error that the property is not initialised.
Do these auto-generated child properties not automatically initialise? If not, how do i manually assign a value to them within the RIA Domain Service?
View 1 Replies
Apr 23, 2009
Using Visual Studio .NET 2008 or 2005, is there a way to automatically generate properties for each column in an SQL Server database table? I am assuming other code-generation software exists that will do this. I know with Visio I can connect to my database and it will generate diagrams by table, this would be similar to that.
View 6 Replies
Mar 6, 2009
I've got a groupbox on my form. I changed its font and fore color. The problem is that when I add a button or any other controls like a label, checkbox etc to the groupbox, the controls are automatically changing their fore color and font to that of the groupbox. How to prevent this?
View 5 Replies
Apr 11, 2012
Need to get this done: To have just ONE cell that is defined in a dropdown list with several (various) countries� currencies, and each time when I choose a currency on this dropdown, EVERY cell in my worksheet which has a figure formatted with CURRENCY will automatically turn into that currency selected only in that dropdown cell. I have imagined whether if there was a solution, that the monetary cells do not necessarily have to be first in CURRENCY format, or do they have to? Anyway, I do nt know how to accomplish this, Without the solution, I have still at this time just set all the cells with monetary amounts in simple NUMBER format, ie. no CURRENCY SYMBOL at all, till I find a solution ..
View 1 Replies
Sep 30, 2011
I would like to ask for a recommendation for my project. Basically, it's a scheduled program that shall run at a given period of time, for example, 6:00 pm daily, it includes importing an excel file and inserting it in a sql table. I have my codes with me, but I dont know how to execute this program automatically.
View 3 Replies
Feb 8, 2011
The company has a Visual Studio 2010 Ultimate project that is written in Visual Basic. The project has several strings in the resources file (Resources.resx). One of those strings (VersionSuffix) contains "" when we are distributing a normal version of our product and "BETA" when we are distributing a beta version of our product. Most of the time we distribute a normal version of our product. Therefore, most of the time the resource string VersionSuffix contains "".
Recently, we attempted to distribute a beta version of our product. Therefore, we changed resource string VersionSuffix from "" to "BETA". However, it quickly became apparent that the resource string VersionSuffix was being used as the default value for several control properties in the form designer. For example, if I draw a rich textbox on a form then file FORMNAME.Designer.vb will contain the following.
Me.RichTextBox1.Location = New System.Drawing.Point(286, 306)
Me.RichTextBox1.Name = "RichTextBox1"
Me.RichTextBox1.Size = New System.Drawing.Size(134, 33)
Me.RichTextBox1.TabIndex = 32
Me.RichTextBox1.Text = Global.PROJECTNAME.My.Resources.Resources.VersionSuffix
We are unable to find anything anywhere that indicates that this resource string should be used as the default value for control properties. Therefore, we have no idea why this resource string is being used for this purpose. We would like to change the control property assignments in the designer from Me.RichTextBox1.Text = Global.PROJECTNAME.My.Resources.Resources.VersionSuffix
Me.RichTextBox1.Text = "" However, we don't know why these strange assignments are being made. Therefore, as soon as someone adds another control the problem will most likely return. Does anyone know why this is happening and how to prevent it from happening again?
View 10 Replies
Nov 10, 2011
I am developing a VB.NET based application which requires administrative privileges in order to run properly. However I went through several tutorials online and it all mentioned how to do this using a mainifest file. The problem with this technique is that whenever the program is opened I need to type in the Administrator password, however I want this to happen automatically. (The user should not type the Admin password, the password must be entered from the code level)[code]...
View 4 Replies
Jun 22, 2010
I want to set resolution automatically when my program will run. I want to make it (resolution) 1280*1024. What should I write there in my vb.net program to set resolution when my program will run? When user will stop using my program it will get default resolution.
View 2 Replies
Jan 18, 2010
I need to be able to have my program run once a week or daily automatically and not on startup since my workstation is on sometimes and sometimes logged off.
View 3 Replies
Jul 15, 2011
Is there any way to automatically update the data viewing on a datagridview when data is changed in the database by some other processes/Program?
View 4 Replies
Jun 18, 2012
I'm working on the VB.NET VS 2010. We are creating a software distribution list. Currently a user needs to go to the Add New Programs wizard to view their available programs and then click install. We'd like to automate the clicking of the "Add" button to and kickoff the installation via a script.
View 1 Replies
Apr 27, 2009
I have a web browser on my form and it is definitely big enough to warrant a tab control, with the web browser being on the second tab. I have a button on the first tab that should have the browser navigate, but how do I make the program automatically switch to tab 2? i.e., this is what happens:
1 - user is on tab 1,
2 - user clicks a button on tab 1,
3 - the program does what it needs to do and automatically switches to tab 2
For instance, here is the button that will be clicked:
Private Sub swap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles swap.Click
If video = False Then
[Code].....
So the button will make the web browser go somewhere, I just want to have the form switch to the other tab automatically so that the user doesn't have to do it. I tried using webbrowser1.focus() to no avail. Is there a tab switch?
View 2 Replies
May 14, 2009
I want to make a program that starts at 15 and countdown to 0 automatically that's the only thing I want no buttons just automatically.
View 2 Replies
Sep 11, 2010
i am trying to make my own user authentication system after i log on with the windows authentication. I want the program to automatically start on startup and i want to enable:
NoDeletePrinter : Disables printer deletion
NoAddPrinter : Disables printer adding
NoRun : Removes run from the start menu
NoSetFolders : Removes folders from the Settings option on Start Menu
NoSetTaskbar : Removes taskbar settings
[Code]..
Because i dont want someone else to just delete or tamper with the files that my program made to authenticate me. After i enter my credentials in my program and they are correct i want to disable these. I am using Visual Basic 2010 Express and my computer is Windows 7 64 Bit Home Premium.
View 7 Replies
Jul 28, 2009
how to return a certain string automatically by the program to a spicific record in access with visual basic (visual basic 5 or visual studio 2008) .... meaning : i want after the user made a click on an image obgect the program put a word i'e a string to a record in a field in an access table...
View 3 Replies
Feb 7, 2010
Is it possible to open/start a program at a specific time/date ?
View 2 Replies
May 13, 2011
I'm trying to install an app on a windows server that is always on, but I'm running into problems. I've heard that I shouldn't make it a windows service (and would personally rather have a dialog app so I can see progress, etc) so I'm trying to use task scheduler. However, task scheduler keeps trying to close my app prematurely when it should only open it and leave it open.how I could have a dialog app run on startup (and stay running) on my server?
View 1 Replies
Dec 6, 2008
I am writing a program which sends email automatically. Sending the mail works fine. The problem is that this will be on portable systems and not always have internet connection.
Is there a way to determine if an internet connection is available before attempting to send.
View 2 Replies
Jul 14, 2009
I am linking VB.2008 with a software called R.
Different people may install R in different directories or different versions.e.g. My R dir is C:Program FilesRR-2.9.0
How can I let VB automatically detect it and return the directory path to me?
View 2 Replies
Nov 29, 2010
I have multilingual application that was done in VB2005.We recently had a request to translate the application to Arabic (Egypt), so I have been happily running through all of the forms and changing the layout for Right to Left format.I have 2 forms that are problematic though.On one form, whenever I select Arabic (Egypt), it will automatically switch the selection to Arabic (Saudi Arabia) and try to add an ar-SA resx file.On the other problematic form, if I choose Arabic (Egypt), the IDE will automatically select Chinese (People's Republic of China), then copy the contents of my ar-EG resx file into the zh-CN file, overwriting all of our Chinese translations and layout changes with the Arabic ones.
View 1 Replies
Jul 21, 2010
I have a form containes some controls (buttons) how i can make the program auto-scan these controls one by one automatically and whenever the mouse on a button the button select for a time and I can press the enter key to click this button otherwise the mouse will go to the next button and so on.
View 3 Replies
Apr 21, 2011
Let's say my browser goes to a page similar to this one below ..
Picture Is Here
On this page there is a hyper link called 'Click Here' .. when I click it, it opens another window with things in it.
How can I click this hyper link in vb.net automatically without me clicking on it with the mouse, and how do I open the window in a second web browser ?
We can assume that the first browser is called (WebBroswer1 ) and the second one is called (WebBrower2).
I know how to perform buttons clicks and do raise the 'OnClick' Events, but I don't know how to do it with a hyper links.
View 1 Replies
May 23, 2010
How would i make a program automatically align to one side of the screen, and fill the whole side? (Like windows sidebar).
View 9 Replies
Sep 24, 2009
I am trying to write a VB program to automatically detect and identify a particular device that will only communicate to my program when I have 2 or more devices plug into the USB port. One way of doing it that I can think of is to scan through the available port and do a write and read to identified the port. But that would take up a lot of time if I were to scan through say 5 available port.
View 16 Replies
Mar 1, 2012
This is going to be a lot to ask, but I'd like to convert my old GW-BASIC program to a command line program with arguments. I'd like it to operate as follows:
elapse [drive:][path]filename This is my old code.
5 CLS
10 OPEN "G:Calc.txt" FOR INPUT AS #1
20 WHILE NOT EOF(1): INPUT #1, A$, B$
30 IF MID$(A$,3,1)=":" THEN C$="DOUBLE DIGIT":GOTO 50
40 IF MID$(A$,2,1)=":" THEN C$="SINGLE DIGIT":GOTO 120
[Code]...
View 3 Replies
Feb 21, 2011
I am trying to develop a program that will allow a user to automatically log into a website with a username and password and click login, which works fine, However after clicking login i am trying to have the pragram click another button to submit a file. This is where the program bombs. This secondclick will work in a separate event but not in the same event as the login.
View 9 Replies
Dec 10, 2010
I was trying to make a program for a teacher that automatically determines random students that he or she can call on.I'm trying to make a program that will allow the user to add student names to a listbox. Then, when a button is pressed the program will output a random name from the list. I keep getting a lot of errors and can't seem to figure out why. Finally, I need an exit button that should close the program. I need to assign access keys, have a proper tab order, and assign default and cancel buttons for the form. Also, if you know how to implement any extra 'bells and whistles' into the program,I've tried making this program but it comes up with either a lot of errors, or it just doesn't want to debug. Was wondering if I could either get some help with the coding or the "how-to" on doing this.
View 2 Replies