Software Development Network Logo
  • Visual Studio
  • Game Technologies
  • Smart Devicet
  • SQL Server
  • Visual C#
  • .NET Development
  • Visual FoxPro
  • Windows Vista
  • SharePoint Products
  • IE Development
  • Windows Forms
  • VS Team System
  • Microsoft ISV
  • Visual Basic
  • Audio and Video

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

jcsam

Member List

MaggieChan
Zajda
Joe Horton
danny1999
Morn
averge joe
Rakesh-BNPP
ChandraP
LotusExigeS1
Jason Callas
Shailendra Kumar
DyngoMan
The Naked Programmer
SachinSurana
JGreene
motorola
vbnetdiscuss
Mark Macumber
dbdog
Ely Spiegel
Only Title

jcsam's Q&A profile

  • Visual Studio Express Editions How to check if a database record is being edited?

    hello- I'm using a default databinding Navigator, as it automatically made when draging a dataset from the data source tab to a Form. The databinding Navigator appeaers with several buttons, such as first item, previous, next, last item, add item and save. The database I am using doesn't allow nulls in some fields, therefore whenever I press the button "add item" and then any other button (such as going to the first item) an error occurs since the record was in "edit mode". How can I prevent this to happen How can I check if the record (item) is being edit in order to cancel the record editing (or even asking the user if he/she wans to save changes) before switching to another record Thank you ...Show All

  • Visual Basic serialport regex match

    Sometimes I feel so stupid. I am trying to import data from the serial port to my computer. The data will be coming from an alarm system via COM1. What I want to do is, as the data is coming in, capture a line with the word "ALARM" in it and write some text after that word to a textbox. Below is the simple code I am trying to use. If I pull the data in using textbox1.appendtext(serialport1.readexisting), it pulls all the data in fine. But, using the code below, I get the results: ** ***** ** ***** ** ***** ** ***** ** ***** Imports System.Text.RegularExpressions Public Class Form1 Dim strIncoming As String = "" Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try Se ...Show All

  • Visual Studio Team System Build Failu AssemblyInfo Task

    We've been trying to automate our builds and have done so successfully using a tool called 'Automaton' and everything has been working fine uptil now. One particular project is building locally but fails to do so on the team server. I don't recognize the error: =================================================================================== Build FAILED. C:\Program Files\MSBuild\SharedTeamBuild.Targets(137,3): error MSB4018: The "AssemblyInfo" task failed unexpectedly. C:\Program Files\MSBuild\SharedTeamBuild.Targets(137,3): error MSB4018: System.ArgumentException: An item with the same key has already been added. C:\Program Files\MSBuild\SharedTeamBuild.Targets(137,3): error MSB4018: at System.ThrowHelper.Thro ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Code4Fun Framework Timer compile issue

    Hi, I am attempting to make use of the QueryPerformanceCounter timer, as detailed in the Coding4FunTutorial. After following the steps, add a new folder, copy the dxmutmisc.cs file to the project. I get 133 errors most saying "The type or namespace name DirectX does not exist in the namespace Microsoft( are you missing an assembly reference )" ANy direction would be appreciated. Thanks Jeff Have you added System.Diagnostics to your references The only other reason That won't work is if you are somehow using .Net 1.1. This is very odd. Stopwatch is not something that works with events. It just tells you very accuratly how much time has passed. Typically games do not work on t ...Show All

  • Windows Forms ImageList with html <img> tag

    how can I add image from ImageList control to Html <img> tag my code is: Dim img As String = My .Application.Info.DirectoryPath & "\Logo.gif" Browser.DocumentText = "<html><img src='" & img & "' /></body></html>" I want to get my image from imagelist and add it to my html code can anyone tell me how to get the actual path to the image in imageliast I try the code before but I get nothing in the html page it show me hte error image that means it didnt find the path for the image ...Show All

  • Visual Studio Team System 64 bit DT

    Hi I am installing TFS DT on a 64 bit machine. THe machine already has SQL Server 2005 and SP1 (64 bit editions)...and YES, it is installed according to the TFS installation guide :).(no reporting services, default instance etc). Now, I am installing the DT on this machine and the installtion complete comes up.But when I open the management studio to check for the databases, none of the databases exist. If I try to install DT again, the Repair/Reinstall or Uninstall options box comes up. Do I need a specific 64 bit installation media for TFS or am I missing something big here (P.S: I have done a couple of Dual server installations in less than 2 hours..on 32 bit machines) I uninsta ...Show All

  • Visual Studio Team System SSL not working with TFS site

    Hi, After I created a self-signed certificate for my TFS site and assigned it (selecting port 8081 for https, integrated and digest authentication enabled), all kinds of problems started showing up. For once, from my internal network, users can't access the server using http or https. The thing is, I want them to access the server using the external URL, rather than the internal hostname. External clients are able to connect successfully though. The error that I get with internal clients is: TF31002: Unable to connect to this Team Foundation Server: {0}. Team Foundation Server Url: {1}. Possible reasons for failure include: - The Team Foundation Server name, port number or protocol is incorrect. - The Team Foundation Server is offlin ...Show All

  • .NET Development Access to remote folder

    Hi, I have an app which must read, change and save (update) files on remote PC. I have a special user/password to access the remote computer. Is there any way to loging to remote computer from inside the app, do the job and then log off. App works fine if I logging to remote PC before starting nut I don't like this. I'd like to have evrething hidden from enduser. Thanks Oleg Hi, I have the same problem. I can "net use" to the file share using a user name and password. But I can't do it using .NET code: NetworkCredential ncred = new NetworkCredential("administrator", "admin_pwd", " mymachine "); CredentialCache ncache = n ...Show All

  • Visual Studio Express Editions Project creation issues

    Hi, I recent ly downloaded Vusal C++ Express. I have gone through the tutorials but I am really struggling with some simple user issues. When I start a new poject I have been following the steps..1. File, New, then click Project. 2. In the Project Types area, click Win32, then Win32 Console Application. 3. Type in a name for the project (accepting default name and location for the solution). 4. Click Next. 5. Select the Precompiled Header and click Finish. When doing this I get the following error message "Object does not support this property or method". I have also tried to build a project with selecting Empy Project and not precomiled error. I have put in my source code and have built my project. My build fails for the follo ...Show All

  • Windows Forms How do i bind two datagrids independently to datasource from different queries?

    The topic was stupid i'll try to explain better... I have a form with two tabs. Each tab will have a datagridview. I also have a dataset with table Orders. When i dragged the orders "table" onto my first tab, a orderstableadapter was created. So far everything is fine. The question is: What do i do if i want to add a new datagridview on the other tabpage, but this should be filled only with orders that has status ID = n I have added a new "fillby" method to the tableadapter created for the datagrid in the first tabpage, but i'm not sure how i'm supposed to make the other datagrid "use" the other query i created. I set both datagridviews to use the same bindingsource - which was generated when i dragge ...Show All

  • Visual C++ which lib i should support?

    Convert a program form emvc4.0 to vs2005, i have some link problem,anyone has the experience, which is the lib that is missing, what are their names 1>Linking... 1>CFInterface.obj : error LNK2019: unresolved external symbol "public: void __cdecl CProgressDlg::SetPos(unsigned int,unsigned int)" ( SetPos@CProgressDlg@@QAAXII@Z ) referenced in function "public: unsigned int __cdecl CCFInterface::LoadDataFromCF(void)" ( LoadDataFromCF@CCFInterface@@QAAIXZ ) 1>CFInterface.obj : error LNK2019: unresolved external symbol "public: void __cdecl CProgressDlg::InitProgress(void)" ( InitProgress@CProgressDlg@@QAAXXZ ) referenced in function "public: unsigned int __cdecl CCFInterface::LoadDataFromCF(vo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Screenshot in windowed mode occluded by other windows!

    My 3D program works in windowed mode. And my screenshot capture code using GetFrontBufferData() works fine until one day I found that another on-top window was in the captured image! It seems working in the same way as the PrintScreen key. The SDK document said GetFrontBufferData() is the only way to get fullscreen antialiased image. Then how can I get only the content of my 3D window I've used GetRenderTarget() and StretchRect() to get screenshots from multi sampled back buffers. Though I haven't tried with overlapping windows I think it should work. Cheers, Leaf. ...Show All

  • .NET Development Creating a Search using VB.NET and SQL

    Okay, I have ran into a problem with my Search engine for my database i created in VS.NET (phonelist.mdf). I have an <asp:GridView> setup for the results. I have been trying to read up on SQL and implement my own search but here is what i am running into. I launch the program and it runs fine until it gets to MyCommand.Connection.Open() . The error is InvalidOperationException was unhandled by user , The ConnectionString property has not been initialized. Here is my code for the search. <% @ Page Language ="VB" AutoEventWireup ="false" CodeFile ="phonelist_search.aspx.vb" Inherits ="phonelist_search" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T ...Show All

  • Smart Device Development Running a device APP on the PC thru Pocket PC 2003 SE Emulator

    The code below runs fine thru a windows APP., but does not run thru the pocket pc 2003 se emulator. Is there something wrong in the My.Computer ... portion of the code Please help. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim file As System.IO.StreamWriter Dim Record As String = CStr (TextBox1.Text) Dim procID As Integer file = My .Computer.FileSystem.OpenTextFileWriter( "C:\HSP1.text" , True ) file.WriteLine(Record) ' Run batch file. procID = Shell( "C:\HSP1.bat" ) ' The preceding path is for Windows XP. ' The Windows 2000 path is C:\HSP1.bat. End Sub ...Show All

  • SQL Server Sql 2005 Extended Properties

    Under SSMS I can add simple text and carriage returns to an extended property associated with a column. SSMS preserves the <CRLF> formatting that I used. But when I try to read this same text using, for example, SELECT name, value FROM ::fn_listextendedproperty (NULL, 'schema', 'dbo', 'table', 'Customers', 'column', 'CompanyName') I find that "value" has the <CRLF>'s removed! What am I doing wrong here TIA, Barkingdog ...Show All

©2008 Software Development Network