R_Vogel's Q&A profile
Visual Basic 1st time lucky, 2nd time's good, 3 times through and it crashes.
I have a program that uses a subroutine that has an output file called temp.csv. It also has a sub that reads the output file using a streamreader, then closes the streamreader, I've watched it, and it always closes, even when I get an error. Every time through it deletes the temp file because in the output sub, it appends to the output file otherwise. When I run the program, and the program tries to delete the temp file, no problems, second time, no problems, third time, I get the another process is using this file... exception. Like I said, the streamreader is closed by this point every time, I've watched it. Any thoughts I've gotten burned by this one several times in the past. It really ticked me off ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK --------------------------- And more, the Advanced button is disabled and the dialog does have the same funtionalities as described in MSDN ms-help://MS.VSCC.v80/MS ...Show All
Visual C# VB.NET 2.0 to C#.NET 2.0 (Help Please)
I'm working on Converting a VB.NET 2.0 Project to C#.NET 2.0 and need a bit of help with this... Here is the VB.NET Code i'm coverting:: statz.Items.Item(2).Text = "0" For i = 0 To CInt (ClientList.Text) ClientID(i) = ListView1.Items.Item(i).SubItems(1).Text Socket(i).Close() Socket(i).Connect(ServerList.Text, 5050) If ServerList.SelectedIndex = ServerList.Items.Count + 1 Then ServerList.SelectedIndex = 1 Else ServerList.SelectedIndex = ServerList.SelectedIndex + 1 End If /****************************************************/ ListView1.Items.Item(i).SmallIcon = 2 Unfortunatly due to the (&*%@) emoticons on here each time you saw ...Show All
Visual Basic [OTP] message show & hide in asp & vbscript
How i can use response.buffer & response.flush() for usin show & hide of message or any string. In vbscript, using asp. give any example [OTP] This forum is for VB.NET or later questions only. Try the ASP.NET forums for asp related questions, as posted earlier http://forums.asp.net ...Show All
Visual Studio Team System UI for editing work item templates?
Is there a UI that would let me edit what fields are on a work item Or I have to do everything in notepad/VSIDE with xml Hello, There is a third party Process template editor you can use http://www.imaginets.com/Default.aspx tabid=133 Hope it helps, ...Show All
SQL Server HELP!!! Can not restore database from only back up I have
I had to transfer my database from one server to another. Both are running SQL 2000. I backed the database up and moved it to the new server however when I try to do a restore I get the following message: The media set for database "xxx' has 2 family members but only 1 are provided. RESTORE DATABASE is terminating abnormally. I did some searching and found a couple of posts that mentioned something about the back up including 2 files. My problem is that the machine I backed this up from crashed when it was shut down and would not reboot so all of the data and the original database do not exist. Is there any hope of restoring this database. It is pretty critical. Thanks, Melissa :-) Wow. ...Show All
Visual Studio 2008 (Pre-release) How to reference one xaml file from another?
Hi, I have a xaml file containing Viewport3D element with some Model3DGroup. <Viewport3D> <Viewport3D.Camera> <PerspectiveCamera .../> </Viewport3D.Camera> <ModelVisual3D> <ModelVisual3D.Content> <Model3DGroup> ... </Model3DGroup> </ModelVisual3D.Content> </ModelVisual3D> </Viewport3D> Is there a way to put the Model3DGroup into a separate file and make a reference to it from Viewport3D Thanks in advance. Dear Igor, You can use the XamlReader.Load() method to read a xaml file. This code might help: Assuming your xaml code is in a file called sample.xml // Open the xml file using a File ...Show All
Visual C++ Compile C++ code To .Bin File
Hi. can I compile C++ code with VC++ or VC.Net to a BIN file How thanks. The answer depends on what exactly is this .BIN file you are talking about. An EXE or DLL is a PE (portable executable) with a specific format. What is the format of this BIN you are talking about ...Show All
Visual Studio Team System TF56044 - When Try to add users to TS Licensed Users group
Hi, We just install Team System Workgroup Edition Single Server configuration, on an server member of AD domain. No issues on installations or other administrative tasks, till we try to connect with TS Explorer and get TF53011 for domain\user etc. , in this case i try to add the specific domain user to Team Foundation Licensed Users group, using tfssecurity.exe, an on this i get TF56044 - "The identity that you attempt to edit is not an application group". I am logon as TFSSetup user on the machine, and on previsous step i have successfully add same domain user to TF Administrators group, without any problems. What is the workaround in this case, or is any detailed description of TF56044 , while searching on web it's found only t ...Show All
Visual Studio Team System Unable to upgrade for Workstation to full TFS
I installed the Workgroup version of TFS and we purchased the "full" license. I called in and received the Product Key. I entered the product key and say the command window open, stop IIS, restart IIS and closed. I am unable to add any users to the [server]\Team Foundation Licensed Users group. It keeps giving me this error "TF50626:Maximum Users(5) in License Group. Any help I had a our purchasing people buy an the "Full" Team Foundation Server 2 weeks ago. I told her just get me the product key b/c I knew that was all I need to upgrade from the Work Group Edition. All they sent was the CD...apparantly they said they didn't know what the key was and that it was embedded in ...Show All
.NET Development checking user permissions on sql server from vb.net windows forms application
Is there any easy way to check if certain user has login on sql server at all before trying to connect I am using vb.net 2005 and i made some windows forms application with sql server as backend. Windows authentication is setup, too. if i sent some login name that does not exist i still get message from sp_who which is not useful. i mean i could introduce stored procedure and return some parameter based on checking parameter / name i will send. it is clear i can not check anything without connection. it was mistake in question, but i hope it was clear what i wanted to achieve. ...Show All
Visual Studio Express Editions need urgent help about access database and application!!!!!!!!!!
hey guys i have a question: i am creating an application in which i am using an access database. I used the wizard to create the connections, data binding, etc. and the drag-and-drop-table method to display it in the form. the problem is that i am not able to (or i have not find a way to update the field of QuantityInStock) update the database. Note that i am only trying to find the code. here is my code: Public Class Form2 Dim tempInventario As Integer Dim tempInventarioenBodega As Integer Private Sub ItemsBindingNavigatorSaveItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Me .Validate() Me .ItemsBindingSource.EndEdit() Me .ItemsDA.Update( Me .ItemsDa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How best to learn 3D basics?
I've really enjoyed learning the 2D stuff, and have lots of synchronized moving, rotating and resizing pictures of stick monkeys. None of this post is a complaint to the XNA team which I think has done a great job. Unfortunately, coming from a C# but not a 3d graphics background, it's exceedingly difficult to figure out how to get simple things to work in 3d. I wasn't able to get the simple cube up and running (it was plain black) until reading a helpful forum post. I was baffled for a long time by the huge list of vertices. It took me a while to figure out that you just take the first 3 vertices and make a triangle out of that, then you take the next 3 and make a triangle out of that, etc. But it's still confusing--for example (not the ...Show All
.NET Development DateTime Conversions
I am using this line to display results on a wepage: <%# DataBinder.Eval(Container.DataItem, "Modified").ToString() %> This works and gives me the modified date as: 9/15/2006 10:55:19 I need to display it as: YYYY-MM-DD HH:MM:SS I tried to do this: <%# DataBinder.Eval(Container.DataItem, "Modified").ToString("yyyy-MM-dd hh:mm:ss") %> But this just gives me an error, what am I doing wrong here Thanks to all, I have now used this method, I have had to create it as a new string because I use the date in the other format else where. public string ModifiedReformatted { get { if (m_modified.ToString().Length > 0) ...Show All
SQL Server How to get started on Microsoft SQL Server Management Studio Express
Hi, Was trying to open AdventureWorks when i got this error: "There is no editor available "C: Program Flies.....\AdventureWorksDW_Log.LDF' Make sure the application for the file type(.LDF) is installed. How can this error be corrected I also have some error on mdf not installed.May i know how should be the initally steps to be done inorder for me to view this database. And if i do have a database from microsoft access, what are the steps that i need to do inorder to get it export to Microsoft SQL Server Management Studio Express. Please advise as i really new to it. Thanks! hi, kumalla wrote: Thanks for the info.Btw, how do we attach access database which is mdb format The form design that i have in access ...Show All
