Software Development Network Logo
  • VS Team System
  • Visual FoxPro
  • Visual Basic
  • Microsoft ISV
  • SQL Server
  • Windows Vista
  • Windows Forms
  • Smart Device
  • Visual Studio
  • Visual C++
  • .NET Development
  • Game Technologies
  • Visual J#
  • Visual C#
  • Windows Live

Software Development Network >> Banslug's Q&A profile

Banslug

Member List

Ian M
HurlyBurly
forwhat79
ItsMe!!!
David Yeo
MARUN
Patrick-swa
Mostafa Hafez
mizuno
John Smiths
GoldenFingers
Behzad Karim
j.skinner
ChrisA
FrankHsu
vnpro
scorpionguy
Peter_P
Ravs
CMU
Only Title

Banslug's Q&A profile

  • Visual Studio 2008 (Pre-release) Problem accessing MDF file with DataContext

    Hi, During Linq installation, the Northwind database was placed at C:\Program Files\LINQ Preview\Data. This folder contains the NORTHWND.MDF file along with some other files that I am not sure if I need. The following code works fine: string path= @"C:\Program Files\LINQ Preview\Data\NORTHWND.MDF" ; DataContext db = new DataContext (path); db.Connection.Open(); But it stops working if I copy the NORTHWND.MDF to another folder (say C:\MyFolder) that's empty (and rename it just in case to NORTHWND2.MDF ) and then use string path= @"C:\MyFolder\NORTHWND2.MDF " ; // etc. Then I cannot ...Show All

  • Visual Studio Team System How: Change the saved login and pwd used by VS 2005 RC1 and TFS Client Beta3?

    Where does the Visual Studio RC1 or rather the VSTS Client that comes with Team Foundation Server Beta 3, save the login and password if the checkbox "remember the password" on the login dialog is checked The Team Foundation Server I am using was installed on a stanalone server inside a workgroup so the authentification is done explicitly or implicitly once the password is saved using the above option. My actual question is how can I change the saved login and/or password that is implicitly used by the VS to login to the TFS The only workaround that we have come with is to change the password of the account in which case the Visual S ...Show All

  • Smart Device Development reading XML

    Hi, Have any body knows how to read XML file in C++ for pocket pc. Thanx Shrikant Its very similar to Desktop (may be with very little tweak), Following example codes should help  http://www.codeproject.com/soap/ce_xml.asp df=100&forumid=15723&exp=0&select=565785   http://www.codeproject.com/ce/cetreeview.asp         ...Show All

  • Microsoft ISV Community Center Forums Number formatting

    Hello, I have a program that inserts data into Excel via a form made in VBA... Everything works great, however, it inserts the data as Text and i need it inserted as currency. I tried creating a variable as currency and setting the range needed to be currency, however that did not work. I also tried creating a macro, however, that did not work. Does anyone have any suggestions as to what code i can use Thanks in advance. You should set the numberformat of the excel cell (or column) to a currency format before inserting the data e.g. to change the number format for column A: Columns("A:A").Selec ...Show All

  • Smart Device Development Pulling environment variables off connect PC from Pocket PC

    I have an app written in VB for a Pocket PC 2003.  From that app I would like to check the connected PC's environment variables for the username.  Sort of a single sign on approach.  I haven't found any API or code that does this.  Has anyone done this before There's no API for that. If you really need it, please consider adding Web Service which would accept variable name and return its value. ...Show All

  • Visual Basic Assigning to variables in a structure dynamically by using the field name in a string

    Hi, I have an issue where I need to be able to take value pairs i.e. fieldname and value - and assign them to the correct fields in a structure. e.g. structure X Field1 Field2 Field3 Field4 end structure Values "Field2", "xyx" "Field4","pqr1" So I need some method of assigning to the correct field in the structure - much like you can with recordsets i.e. rs.fields("<fieldname") = x. Is there a way to do this Regards Michael You can use reflection to do this. Your other option is to store values as a dictionar ...Show All

  • Windows Forms Serialize Class

    Hi there, I wrote a Webservice to send emails. This Webservice takes an objectarray for the attachments. This is the class for the Attachments: Public Class Attachment          Private aByteArray() As Byte     Private strName As String = ""     Public Sub New(ByVal xstrName As String, ByVal xaByte As Array)         Me.Byte ...Show All

  • Windows Forms DataTable Troubles Galore

    Hello, I am trying to do the following in my code: I query the database and obtain the information in a DATATABLE. At one point in time, I need to delete all the rows from the datatable and add say 3 new rows. Here;s how I go about doing it: For i = 0 to loGenTable.Row.Count-1 loGenTable.Rows(i).Delete Next loGenTable.AcceptChanges() I then go on to add a new ro ...Show All

  • SQL Server Obtaining TCP/IP Port and Pipe name

    Hello All, Does anyone know how to obtain the TCP/IP port and the pipe name for an instance I would have expected to see these properties in smo.server.configuration or smo.server.settings. What am I missing here Thanks Rob Take a look at Microsoft.SqlServer.Management.Smo. Wmi .ServerInstance. ServerProtocols property is a collection with information about each protocol settings. WBR, Evergray -- Words mean nothing... ...Show All

  • Visual Studio Example Subreport (local report)

    I have problem in processing subreport. If who have a example about processing subreport. Please show me how to get it or where i can download it. Thank you very much. http://forums.microsoft.com/msdn/ShowPost.aspx PostID=13649 ...Show All

  • .NET Development Problem with asynchronous HttpWebRequest

    Hi, I'm having a problem with asynchronous HttpWebRequest. It's a simple http client-server. For most of my users (which uses the client) it works fine. However, a few of them get sometimes the exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: The attempted operation is not supported for the type of object referenced at System.Net.Sockets.Socket.get_ConnectEx() at System.Net.Sockets.Socket.BeginConnectEx(EndPoint remoteEP, Boolean flowContext, AsyncCallback callback, Object state) at System.Net.Sockets.Socket.UnsafeBeginConnect(EndPoint remoteEP, AsyncCall ...Show All

  • Visual Studio Team System Deleted Project using TFSDeleteProject but Source Code Root Still Showing Up

    I deleted a project using TFSDeleteProject (with the force option) but my VS 2005 IDE Source Control Explorer still shows the deleted source code folder root (with a single TeamBuildTypes folder with a red X thru it).  The funny thing is is that if I go to another machine and log in with the same credentials the particular folder does not show up.  Looks like there is some sort of hanging artifact on my local work machine that isn't getting udpated. I have the "Show deleted items in Source Control Explorer" unchecked and I still see the problem.  BTW, I am using Beta 3 Refresh. One thing that is different with this ...Show All

  • .NET Development Windows halts loop excecution

    I hope this question is in the correct forum. Here is my problem. I have a generic while loop that is repeatedly calling a function. This function handles receives in socket communications. The problem is that windows will stop executing this loop. All of a sudden it will just pause. Once you force a refresh of the form that contains this loop (by minimize/restore, etc), the loop will start executing again and will never pause again. Initially, I thought it may have something to do with the socket communications. So, I replaced the socket function with just incrementing and displaying a variable. Sure enough, the display would start counting ...Show All

  • Visual Basic I got a Problem

    In my project developing in vb6, I have a problem that I ask you to help me. 1- I need to display Text, Pictures, color texts with different sizes and ability of editing the texts all together in something like Textbox or richtext box.Would you please guide me 2-I tried to view a word document to solve this problem but If any bookmark exisit, OLE controle will confues and I don't want my final user to see the MSOffice Word. Is there any standard way to do this 3- I tried to change this hypertext to HTML and view it in my form with webbrowser control, but I couldn't view those HTML files . Please tell me how to view a HTML document v ...Show All

  • Windows Forms Switch from Form1 to Form2 in VB2005 HELP

    I have 2 forms (form1 and form2), when a button on form1 is clicked, I want to show form2 upon form1 without closing form1 and go back to from1 when a button on form2 is clicked, it might help if form1 stays unabled while from2 is showing. Im having trouble because when trying I duplicate instances of a same form. Got an idea of how I can do this . What about adding something like this to both of your forms: Private Shared thisForm As Form1 Public Shared Sub ShowForm() If thisForm Is Nothing Then thisForm = New Form1 End If thisForm.Show() End Sub Public S ...Show All

©2008 Software Development Network