Can Build Forms Visually But Cant Write Codes
Sep 29, 2009I am new to the .net framework. I am taking an on line class. I am lost. I can build the forms visually but cant write the codes.
View 3 RepliesI am new to the .net framework. I am taking an on line class. I am lost. I can build the forms visually but cant write the codes.
View 3 RepliesDear Experts modify UPDATE codes according to INSERT codes Style.
[Code].....
I need update codes as there are insert codes
In businesslayer, there is a inherited Class Called BaseEdit which contains contractor and base properties. There are about 30 CustomEdit (inheriting classes), all of them has methods "Load","Save" and "Delete". The require for this existing system is to add a readonly user. Possible solutions considering the cost of works:
1) Modify the BaseEdit so all CustomEdit can stay the same. The system will check 'user role' in session by using httpcontext then to accept or reject the user's action.
[Code]...
How to write the codes for searching records in VB.Net database.
View 1 RepliesI am designing an interface using vb.net and the values inputted there should be saved in a database and I choose to design my database using mysql in phpmyadmin. I already made my database in php via localhost/phpmyadmin/index.php. But I do not know what commands / codes should I write in vb.net so that i.e. the value of textbox.text would be saved in database.
View 1 RepliesI have 50 buttons on my form and have to write code for click of all that buttons. So my question is do I have to write separate codes for every button click event:
[code]...
Can I protect my codes and forms in my project from viewing ?
View 9 RepliesI am wanting to be able to check to see if two images appear to be the same, within a certain threshold.These two images are the same to the eye, but one has slightly different colors. I have tried the following example:
[URL]
Unfortunately, it only seems to detect when the images are identical. How can I determine if the images are the same within a certain threshold, with VB.NET?
When changing properties of a ToolStripMenuItem at run-time, the changes are not reflected visually. If I check the values of the property that was changed, it shows the new value, but it will not show on screen. I have tried changing the Text value and it doesn't show the new text. I have changed the Checked value but it doesn't show as checked. I have even added event handlers, but they do not trigger.
View 3 RepliesHow do i execute this code in vs2008 visually with a result?
C#
struct Cycle {
int _val, _min, _max;
public Cycle(int min, int max)
[code]....
I have been asked to remove or disable the close button from our VB .NET 2005 MDI application. There are no native properties on a form that allow you to grey out the close button so the user cannot close it, and I do not remember seeing anything in the form class that will allow me to do this.
Is there perhaps an API call or some magical property to set or function to call in .NET 2005 or later to do this?
More information:
I need to maintain the minimize/maximize functionality
I need to maintain the original title bar because the form's drawing methods are already very complex.
I have a treeview on a form and I want to allow the user to create a tree structure of their choice. What I mean by that is no limit to parent and child combinations, so basically have the same functionality as in Window Explorer.
Now comes the problem, what I want to be able to do is store this tree view hierarchy in a database, so that when they add a new node to the treeview it is stored in the database at the correct level. Then if the user closes the form and re-opens it loads the treeview hierarchy from the database.
I would really apreshiate some guidance on database table stucture and how I can loop through and build the treeview
I have recently moved from developing in vb.NET 2008 to vb.NET 2010. There is a form in the application that uses an old Ascend Gradient Caption control to visually separate sections of the form. These controls are located on a tab control. The problem isthat the gradient captions seem to be unstable. They appear in odd locations on the tab pages at runtime, and I can't seem to select them in the designer. I can choose them from the combo box on the property page and edit the properties, but they stillbehave erratically. I understand that these are older controls and was wondering if anyone has had this problem and/or could recommend an alternative control
View 1 RepliesI am trying to write code with multiple forms. The first screen is splash screen then is supposed to close and have a calculations screen. In the timer of the splash screen I wrote the following code
Option Explicit On
Option Strict On
Public Class uiHinsbrookSplashScreen
[code]....
This opens the second screen, but when I Hit Exit on the Second Screen The first screen is still open. What do I need to do next?
If I build a Windows Forms project in Visual Studio 2008, and start it with a Sub Main instead of a form, and for the time being, don't show any forms, is it considered a Console application? Will console.writeline work?
View 3 RepliesI'm trying to build an application to monitor a site to build statistics from the data being read. This HTML looks like this.
<div id="history">
<h4>HISTORY</h4>
<table border="0" cellspacing="0" cellpadding="0">
[code]...
Now I can read the html and put the text anywhere, I just don't how to read specific parts so I can separate the data out.
I have a Form with a Media Player in it. Which plays a Song.
[Code]...
It's playing in the background since the Form is hidden. When I play itin Debug, everything works fine. When I run the app outside Debug, I get this error: [URL] The Music File is there, but strangely, there comes this weird error.
A particular VB.NET project is actually throwing 'Build Failed' But when I try rebuilding again it says 'Rebuild Succeeded'. It keeps alternating this behavior. Kind of random. Any vbc.exe issue of long locking the PDB or xml files?
View 9 RepliesI have a vb.net 2008 windows form application that I was just assigned to work on. how to maintain and test changes to both the pre build and the post build events? Can you tell me how to test these events? My postbuild event, I believe calls a project file in the solution file that wraps files together in a bundle in debug mode. Can you tell me how the posbuild event works and when it is called?
View 2 RepliesI am using 2008 Express Edition. I am trying to make a Release build instead of a Debug build.Under Tools->Options, Projects and Solutions->General - I checked Show advanced build configurations. The option to switch configurations does not show up in the IDE.
After this, I went to the Project Properties->Compile and switched the Configuration from Active(Debug) to Release.After building, I looked in my project directory, however only in the Debug sub-directory was the .exe and nothing in the Release sub-directory.I have used Visual C++ Express Edition, where I noticed that if you do not change to Release in the IDE than after changing to Release in properties, resets the project to the last configuration setting which is usually Debug.how to make the Debug/Release box available in the IDE, since Tools/Options does not make it show up?
I just created a simple application. I Builded that using build->build myapp. I got .exe of that application. i runned. all went fine. but when i closed that app, even after closing it is in memory. it is still running. how to deploy it properly?
View 12 RepliesI created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()
[code]....
EDIT: Can a program have a form and a console?
EDIT2: However, the output appears on the next command-line prompt. Can a Winforms application tell the command-line to wait until it's finished instead of immediately returning?
what's the method for writing string into a richtextbox.
View 1 RepliesI have search on google but i have just find this function SteamWriter. This fonction for writing work, but the script create always a new file... I want write under the last line.And with your fonction, how i can read it line by line for use in select menu.
View 3 RepliesI have a main form with a number (in this case 9) mdichild forms. Some are visible, some not, but they are all very basic. When I write to a textbox in any child form during Main_Load it updates, when I write to a textbox in any child form inside its own _Load it updates. If I write to one from awhere else in code, including a sub in the form's own code, it fails to update.
All the child forms are identical but are distinctly separate forms created before compilation rather then NEW versions of a single form to avoid threading problems.Curiously this code worked once only. No edits were made and when re-ran failed after stopping it if found all the controls in some of the forms were invisibe in developer mode, restarted VS but still not there. Run app and at runtime there they were!!! Also all locked textboxes still accepting input.
[Code]...
I need to write a list of all my forms to the database. Not the open ones, all forms included in the project.
My.forms has no count or something and I don't know how to get them to a string.
I need this for Userrights for every form later.
So I want to post to a site with the document.getelementbyid code. What do I do when the form I want to post too has another form with the same exact id?
View 3 Repliesi wanna build a "webbrowser" into one of my forms, but not just any webbrowser i wanna build "mozilla firefox" into this browser.
View 1 RepliesI have some very simple questions about making a release build exe in vb.net using MS VB 2010 Express.
I realize that my project's executable is built in the bin/debug folder. However, when I copy this to any other location on my computer or someone else's, this executable does not function. I have read that I need to create a release build but in MS VB 2010 Express, when I use the Project-Properties menu and change the Compile tab configuration to Release and the path to binRelease, I still get the exe in the binDebug folder and not the binRelease folder.
1) Is it normal that exe's from the debug folder do not function outside of the debug folder?
2) Most importantly, if the release build produces a faster exe, could someone please explain step by step how to do this with MS VB 2010 Express ? I do not see any button on the compile tab in the project properties that actually builds the release.
I understand that I cannot use the System.Console to output information from a Windows Forms application because the standard input, output, and error streams are not run through the console in winforms apps. But I can't seem to find any documentation on where the standard input, output, and error streams are being directed to! Basically, I have a winforms app that accepts command line arguments and can be run in batch mode, however, I just want to direct some feedback to the user based on whatever method they're accessing the program. The app is used to redirect a client-server application from one server to another. In some instances, the user does it by hand (with a mouse), and other times they're doing it in batch mode (using SAS, command shell, VBScript, etc...). In those instances, I'd prefer NOT to use MessageBoxes because it will kill any processing they're doing.
View 6 Replies