Answer Questions
Atul Bahl binding textbox to datasource in code(run time)
Hi, i'm trying to figure out how to bind a text box with datesource control in code so that it could be bounded in run time. i tried this code: Dim myBind As System.Windows.Forms.Binding = New Binding( "Text" , Me .DbDataSet1.Customers, "FirstName" ) Me. TextBox1.DataBindings.Add(myBind) but it doesnt work is there any body have any help Hi, Thanks for your help Your code works fine. if possible please try to help me with my other question. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1005265&SiteID=1 here in this link. Thanks in advance Hi, Try using a binding source object: Me. TextBox1.DataB ...Show All
Greg McPherran Why does time show in Format$
I want 1/20/2007. I get 1/20/2007 4:44:45 AM. Here is the code I'm using: Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged Dim dt As DateTimePicker = sender Dim str As String 'TextBox1.Text = Format$("{0:d}", dt.Value.ToString) 'TextBox1.Text = Format$("{0:M d,yyyy}", dt.Value.ToString) 'TextBox1.Text = Format$("{0:m d,yyyy}", dt.Value.ToString) 'str = Format$("{0:m d,yyyy}", dt.Value) str = dt.Value.ToString TextBox1.Text = str.Substring(0, InStr(str, " " ) - 1) End Sub As you can see I have tried several ways but the time shows up in all but manual ...Show All
ThomasAG Enter info on the Description or History tab?
When create or edit an item, seems to me there's no difference between entering verbage on the description tab or the History tab. Seems to me there's really no need for the description tab since you can do the same on the History tab, while seeing all the history. Am I missing something We have some users complaining that they have to click on the History tab to see the history, so that's why I'm thinking to remove the Description tab all together. I have done this for a few work item types because I believe this History tab is more useful. History is like an email thread, it can keep growing and old entries go to end. Suppose that you have high level description of the ...Show All
Sangeetad PictureBox does not draw while within the form load.
We have a requirement where we must draw various lines and points within multiple picture boxes on a form. I cannot get the following code to work within a form's load event but I can get it to work if I put it within a button. Unfornately I must have it work so that when the form loads, it executes the code to draw within the load event. The following code is from a simple form named form1 with a picturebox on it that we want to draw a line within. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim eg1 As System.Drawing.Graphics eg1 = PictureBox1.CreateGraphics eg1.DrawLine(Pens.Black, 0, 0, 110, 114) End Sub ...Show All
tonn Why did not Menu Data appears when install CT4
I have installed Visual studio 2005 and SQL server 2005 enterprise on my computer(Its OS is Windows 2000 server). After that I continue install CT4 . But there is error happen . When I open Visual studio 2005 there isn't data menu on menu bar, It have only Test menu as well as some menus that default of studio 2005 as File, View, Tool,.... So all data menuItems as Schema compare, Data compare and T-SQL compare did not appear. But when I install CT4 on other computer has XP OS , Data Menu appears . Why I'm sorry, but I can not for the life of me imagine any reason to install CTP4 anymore. If you have VS 2005 Team Suite then install CTP7, otherwise CTP6. I think a new installation of DataDude will pr ...Show All
Arda Cetinkaya Putting a byte in to a text box
Hi, Please can someone paste some code for me, I am trying to put a byte in to a text box but have no iead how. I'm pulling my hair out with VB 2005 express and have no idea how to do anything. Thanks I am using the following to send data: Private Sub rightbutton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rightbutton.Click ' Send strings to a serial port. Using com1 As IO.Ports.SerialPort = _ My .Computer.Ports.OpenSerialPort( "COM1" ) com1.Write(Chr(4)) End Using End Sub I need to know what to put in to my text box sub to get it to put the data in the box, can anyone help I thoug ...Show All
Nickeay Changing path of New TFS Project
When I create a new TFS Project it stores it in the default location in sharepoint of http://servername/sites/<project name> I'd like to modify this so new projects are saved in http://servername/projects/<project name> How can I accomplish this One more thing: There are a few items that TFS installs on the WSS server (which is one of the reasons we require that it be on the same machine as the AT during setup). This includes two site templates (stp files), tfsredirect.aspx, and a registry key that tfsredirect.aspx examines to find it's report server. The stp files can be found on the installation media, they must be added to the WSS server with the following commands: cd /d % ...Show All
Akshay S Bhatnagar Requirements Management
Hi, What is recommended way to manage software requirements with Team System Thank you If you choose that its look at RASK that Mickey spoke of, becareful. I have had issues with the tool and do not think that its completely baked yet. You can also use Borland CaliberRM for requirement management. Good luck ET I don't know if there is a good solid standard answer for this question. One thing you could do is use the Requirements Authoring Starter Kit ( http://msdn2.microsoft.com/en-us/library/aa537171(office.11).aspx ). I have not actually used this, so I can't say how good or bad it is. Another suggestion is to tailor the process model ...Show All
DaveThompson Error 32000
Hi all, I have been installed tfs as dual-server using the installation guide from Microsoft. First I installed data tier.then started application tier.All went fine till I started installing TFS (services). At the end of installation it gives an error message.I tried it many time.But same error appears It is like this: =========== Error 32000. The commandline"c:\Program Files\Microsoft Visual Studio 2005 Team foundation Server\Tools\ProcessTemplateManager.exe" /setup/install "c217uss" "TfsIntegration" "C:\Program Files\Microsoft Visual Studio 2005 Team foundation \TFSetup\1033\MsfFormal-new.zip" " C:\Program Files\Microsoft Visual Studio 2005 Team foundation \TFSetup\1033\MsfFormal-Metadata.xml" returned non-zero ...Show All
arkiboys Access table creation conundrum in VB2005E
Hello, An Access database was created and opened in VB. This database has no tables. Never had. Hoped that will be the same procedure to create a table as is with an sql database i.e. right click on Tables>Define Table. The database.mdf icon is there but only Query is possible, unfortunately there is nothing to query, because the table was not defined yet. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Private Sub btnCreateTable_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnCreateTable.Click Dim conADO As ADODB.ConnectionClass = New ADODB.ConnectionCla ...Show All
nunodonato Dependancies for Visual C++ Express
Hi, i'm new here, i would like to know the dependancies i need for Microsoft's Visual C++ Express edition IDE. I have written a program that uses basic file access (read/write). The only include file i have is fstream. I really need to know the dependancies for a program such as this, as my program is due to go on a website very soon, so i need it portable. If there are no generalised dependancies, how abouts would i find them out I downloaded a program called depends.exe but didn't understand it in the slightest. I kind of understood that it was debbuging, but i couldn't tell which .dll's were required to allow the program to be mobile. When i do run the program without the correct dependancies on a different computer, I get this message: ...Show All
BlackMan890 Open file problem ...!!!
hello everyone... here's a new problem.... please help i have made a open dialog for a picture to insert in the picture box,,, but how can i restrict it to only show the picture files in computer ----------OR------------ how can i restirct to only select the picture files like jpeg, bmp, gif, etc etc thanks,,,, ok thanks, don't know how I missed that... thx for the help Hi, I've got a similar issue. There's no problem with using the filter for .txt or image files or whatever known filetypes. However, I've defined my own filetype ces but did not put it in the registry, and I don't want to do this btw. For some reason, (probably the reason I mentioned above), us ...Show All
Scott Allison Make your software into trialware
Does anybody know how to make a trial version of your software available I want to be able to make my software into something like a 30 day trial and then activate it with a registration code. How would I implement something like that in my code Would I just make a registry entry or something like that I don't even know if something like that is even possible with Visual Basic 2005. I downloaded the starter kit, but I get this error in a msgBox everytime I try to open it in Visual Basic: ================================================================ Project Template Wizard A problem was encountered creating the sub project 'SharewareService'. The template specified cannot be found. Please check that ...Show All
Eletricman Working with threads
Hi, I need to know, how can I work with threads, because I'm developing an application using sockets, and i want to create a thread for the tasks of the application, and another thread, for execute the socket operations in order to avoid blocking the execution. Thanks! Peter Ritchie, my question is.. With asyncronous sockets.. I can emulate the winsock control With the events thrown when data arrives, or when socket disconnects... Or I will have to put timers and keep watching at every moment the "state" of the socket Thanks! And referring to the examples given.. What "means" client.BeginSend(byteData, 0, byteData.Length, 0, New AsyncCa ...Show All
Octopus384 More on Random Numbers
Here's a good one for you. I have 5 variables, let's call them 'a', 'b', 'c', 'd', and 'e' Each will be assigned a number RANDOMLY from 0 through 4. However, each will hold a unique value. Only one variable can be 0, only one can be 1, etc. and so-on. How do I do this Thanks Ted Hmmm, as I'm looking at this, this presents an interesting alternative. However, let's assume my string is comprised of ascii characters that are NOT letters and they are not sequentially positioned within the ascii table. Let's say they are the following: string = "+,.$*@!" plus ChrW(43) comma ChrW(44) period ChrW(46) dollar ChrW(36) asterisk ChrW(42) at ChrW(64) exclamaition chrW(33 ...Show All
