Answer Questions
senthil_palraj_e81a78 Postbuild and prebuild scripts
I am using the newly released CTP 5 and have been trying to use the postbuild scripts and prebuild scripts to add certificates as well as permissions for a database. However, when I try to deploy the project I get an error saying that it can't find a procedure when trying to assign the permissions and it looks like the postbuild scripts and prebuild scripts are being combined and run together, both before any of the other database scripts (tables, procedures, functions, etc.) are deployed. My question is there a better way to deploy the permissions for the database other then putting them in the postbuild script or is there a way to fix it so that the postbuild scripts is run only after the main database scripts are run ...Show All
ReneeC Autocomplete Combobox
I'd like to mimic Access's autocomplete combobox with the NotInList event. User can start typing and if the text exists it will appear... if it does not and user hits enter, an error messagebox "does not exist" is shown. Please can someone help direct me to a solution in C# I guess one way would be to check the key press, if its "Enter" then check the item you can implement the keydown event on the combobox, using the designer view for example. click on the combobox to bring up its properties then click the events icon (lightning symbol) and double click the keydown event to create the event. then something like this in the eventhandler: if (e.KeyCode == ...Show All
Darren M. Bork Create a structured text file
I would like to know if anyone know how I can create a text file or whatever by the VB Express Edition that by the user interface they write their names and adress and other stuff like this then the program get all this information make an structure with this information and print everything estructured. For example I have two textboxes: 1o txtbx - The user types his/her name (Eg.: Caroline) 2o txtbx - The user types his/her adress (Eg.: 5th Avenue) Then the person click a button the program gets this information and put it in a text file like this Name: Caroline Adress: 5th Avenue And print I reallly apreciate your answer Hi israelsaba, This is a sample code to write to ...Show All
George2 Reading a web page...
I have been trying to read from a Web page inside of a WebBrowser control. I can read the entire page code, but can not specify certain areas of the page to read, like a text box. I would like to be able to read just the text box in my web page and have it write the context of the web page text box over to my application textBox... This is the closest I've been, but I can not get it to work at all. It will do the "if ()" event, which is just a message box, but it will not copy the web pages text box contents to my application textBox. <input name="txtName" type="text" id="txtName"> in order to get that element, I would do this: HtmlElement theTextBox = this.theWebBrowserCont ...Show All
St&#233;phane Beauchemin Refresh add-in MS Project is not picking up dates from tasks in team system and distorting start dates
URGENT HELP !! I have a project plan where items are scheduled using the leveling tool. All the tasks setup in MS Project were initially published to team system correctly. On a daily basis, users will update the tasks in team system by entering the actual start date in a customised field called actual start date along with completed and remaining work. Also on a daily basis, I access the project plan and 'refresh' the data so that the actual start date, completed work is updated in the project plan. Upon doing this, I will save the changes and then manually level the project plan so that any newly added tasks are scheduled accordingly and then save. At this stage, I am happy with MS Project's scheduling of tasks and ...Show All
jlansing visual basic express database design capabilities
I started a database model in Visio 2003, but learned that it's capabilities for printing table and column definition properties are practically non-existent. Does Visual Basic Express have the capabilities to print, or export to Excel or Access, the full range of table and column definitions including the notes/descriptions for each column and their datatypes This would be for documentation purposes. Thanks! The best way to document the tables and systems is to use a combination of tools. Yes you can get some images from the VB Express Edition, but not all. My suggestion would be to drop over to sqlservercentral.com and have a look at there script library, there you will find examples ...Show All
enric vives How to get MAC Address on remote Computer using VB.NET
How to get MAC Address on remote Computer using VB.NET. ok, right click on "references" in your solution explorer, then go to "Add Reference" and add System.Management.dll in the project. Try compiling now - does it work Would it be possible that you can post the code in VB Thanks, Thank You, but I can't add System.Management and System.Management.Instrumentation namespaces. Warning 1 Namespace or type specified in the Imports 'System.Management' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any ...Show All
dangrmous Inputbox
Hi all, I'm new to this forum and I am in search for help. I just started with VB.NET 2005 and I'm having difficulties with an assignment. Maybe someone could help me out a bit I'm supposed to make an inputbox appear, and if OK is pressed while no text is entered (empty) I want to show a Messagebox wich tells the user to give some input and when OK is clicked on the msgbox, the inputbox should re-apear. Dim txtPlease As String = "Please type the answer below" Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Select Case ListBox1.SelectedIndex Case 0 If InputBox(txtPlease, " " ) = "answer" Then ...Show All
Chris Bailey 3d Models in VB
Would it be possible to make a program that converts 3d models in VB There's a bit of a story behind this. I am currently very involved in a Delta Force 2 gaming community. We have completely disected the game and such. The game uses 3di files for its models. Here is the problem: We are wanting to convert models from the older and newer Delta Force Games to DF2. There have been conversions from DF2 to older and newer games, but never the other way becuase they use different versions of the 3di. Is there anyway that a program could be made in VB to convert the files correctly I could supply a 3d file from both games if needed. I'm sure it would be possible if you had the right information at hand. ...Show All
Looney Problem with using Excel Com object
Hi! I am trying to open a csv format file (*.txt or *.csv), and save it as excel file format. It will be appreciated if you let me know what is wrong with my code. Thanks in advance. DK ' Include the following at the top of the Module: Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Dim Filename As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Filename = TextBox1.Text Dim oApp As Excel.Application oApp = New Excel.Application Dim oWBS As Excel.Workbooks oWBS = oApp.Workbooks Dim oWB As Excel.Workbook Dim DT As Excel.XlTextParsingType Dim TQ As Excel.XlTextQualifier Dim FF As E ...Show All
furjaw C# Book
Can anyone recommend a good C# book for a beginner I don't know any C or C++ but want to learn C# and eventually XNA :) Thanks Hi Rich, Thanks for the book surgestion, I'll have a look at that one. I have also just found out that O'Reilly are doing some pdf ebooks called ShortCuts (these are cut down versions on just one subject) I have bought some of these and they are quite good. http://www.oreilly.com/store/series/sc.html Scott I just bought "Sam's Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit", and I think it's really good. Comes with the original Microsoft CD with Visual C# 2005 btw. And the first book on programming for beginners I've seen that doesn't start wit ...Show All
UncleSam89 FTP Uploading
hi. i just wanna know the code for uploading a file usnig an ftp, a code that will let me enter the server, password, username, and the file to be uploaded. tanks whats the error message :-) you can just place that message into a textbox for example then paste it here. So drag a textbox on the form then instead of MessageBox.Show(), do a Me.TextBox1.Text = ex.ToString() if you dont need to specify credentials then you can take out the credentials class. The code was an example that you need to modify to your needs. This is generally the way to upload a file to ftp or another site actualy i don't understand (" ftp://somesite.com/filename.txt ", data) this one what link do i have to put, it's here that he ...Show All
gon_no1 Strange Rollback / Get Specific Version / Undo behavior
One of our internal teams is perplexed by the rollback behavior in Team System. Specifically, when we try to revert a file or file(s) to earlier versions and check them in. Like so: 1. Pick a file that has several versions in your project. We'll call it foo.cs. 2. Open foo.cs in the editor. 3. Do a "Get specific version" on foo.cs, to an earlier version (earlier changeset). 4. Note that foo.cs is now, correctly, replaced with the earlier version in the editor. 5. Check out foo.cs. 6. Check in foo.cs. 7. The conflict dialog is displayed. 8. Select "Auto Merge", then OK through the dialogs back to the editor. 9. Note that foo.cs is now reverted to the latest version in the editor! This is utterly unintutive to me, because the e ...Show All
Kevin Dente Unable to read data from the transport connection:
hi, i am trying to send email using VB2005 but i am getting this Exception. "System.IO.IOException = {"Unable to read data from the transport connection: net_io_connectionclosed."}" while from same machine i am able to send email with same SMTP server from OutLook Express. what could be the reason I'm having a weird case of this problem. I've done the obligatory Google search on the "net_io_connectionclosed" issue and have found numerous postings from people with the problem. However, I've not yet seen a good solution, or a solution that applies to my case. I've set up an ASP.net page (2.0) to send out weekly Newsletters to my subscriber database (7500+ email addresses). When I attempt to send the e ...Show All
SOAC No backslahes in regular expressions for work item rules? (MATCH pattern attribute)
I attempted to write a regular expression to disallow backslashes in work item titles. It looks like this in the work item type definition XML: <FIELD name="Title" refname="System.Title" type="String"> <MATCH pattern="^[^\\]*$"/><!--disallows backslashes--> </FIELD> However, the server rejects it: Xml validation error at row 11, column 13: The 'pattern' attribute is invalid - The value '^[^\\]*$' is invalid according to its datatype 'http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typelib:NonEmptyPlainConstant' - The Pattern constraint failed. Looking up the "Non empty plain constant" in typelib.xsd, I can see that backslashes are prohibited! <!-- Non-empty plain constant --> ...Show All
