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

Software Development Network >> Jon Braganza's Q&A profile

Jon Braganza

Member List

sigol
Bishnupada Mukhopadhyay
Bryant Likes
Carbond
Thomas Olsson
noNchaoTic
Javier Luna
search and deploy
Kent Boogaart
DDressel
Zath
Yaroslav Ivanov
Lian6006
Prashweenet
Ricardo Pinto
Filip S
m3rLinEz
hakan Altıntaş
furjaw
AndrewBadera
Only Title

Jon Braganza's Q&A profile

  • Visual Studio Express Editions Convert content of Textbox to string?

      I'm trying to get the content of a Textbox into a ListView, and assume I'll have to convert it using ToString, but can't figure out the format. Can anyone show me how to do The Name of the Textbox is txtName: private void btnAddItem_Click( object sender, EventArgs e) { lvwListView.Items.Add(txtName); }     thats correct as the overload for the Add() method is NOT expecting a string, instead you may need to do this: this.lstItems.Items.Add(new ListViewItem(this.txtAddItem.Text)); ...Show All

  • Smart Device Development Telnet and FTP servers not working in CE6

    I've configured my CE6 device to run the telnet and ftp servers, and confirmed that my reginit.ini includes: [HKEY_LOCAL_MACHINE\Comm\TELNETD] "IsEnabled"=dword:1 [HKEY_LOCAL_MACHINE\Comm\FTPD] "IsEnabled"=dword:1 I also see these values present in the registry in VS's remote registry editor for the device. On the CE device, running 'service list' shows that both services are running. The other registry settings are left unchanged. Pinging the device works fine, but telneting and ftping to it does not. I've tried modifying the registry settings on the fly (and, redundantly -according to the docs) running services.exe to refresh the settings of the 2 daemons. Analyzing the network traffic between the device and the host ...Show All

  • Software Development for Windows Vista How to manage delays in a state machine WF

    Hello, I am developping a web application who host a state machine WF.One state of the WF is wainting for an event. If this event doesn't occur before a predefined delay, some business logic is going to be executed. My problem is How to define this delay. In other words , how to define a delay for the WF Process, if WF Process remain more than the delay in one state , some business logic is going to be executed. Thanks in advance Easy enough.. in your state, drag two EventDriven activities. Rename these 'HandleEvent' and 'Timeout' respectively. In 'HandleEvent' you handle the event you are waiting for by adding a HandleExternalEvent activity (or whatever other trigger you need). In the 'Timeo ...Show All

  • SQL Server Re-installing SQL Server Express

    I recently posted this question in the SQL Server Express forum and it was suggested I also post this issue to this forum. In the hope that someone can shed some light on the problem. A couple of days ago I installed SQL Server Express and it seemed to be running fine. (I've not really had a lot of time to devote to trying it out). Today I decided to remove the software as I noticed it placed various components on differnet drives (my fault, I think). Anyway I removed everything using Add/Delete Progams and then deleted any folders left behind. Now I try a fresh install of SQLEXPR_ADV and I get as far as the "Instance Name" dialog and use the default Named instance of SQLEXPRESS and then click Next. The next dialog b ...Show All

  • Windows Forms Progress Bar

    Hello, I want to add a progress bar to my application. I want the progress bar to run when the program is busy - so I created a timer that adds a value to the progress bar every second. My problem is that when I start the timer the timer code is not called because the thread is busy doing other things.. what can I do Thanks. Thread safety is not an issue as the UI controls will only be called on the UI thread. Or do you use some controls for your background tasks Have a look here: http://msdn2.microsoft.com/en-us/library/8xs8549b(VS.80).aspx And learn to search (search.live.com or www.google.com ): site:microsoft.com BackgroundWorker -- SvenC ...Show All

  • SQL Server Important: SSIS Failure on 64 bit.

    Our SSIS package suddenly stopped loading. We have 64 bit server on which we run SSIS packages. We had problem "script task failed to load" so we started to use the 32-bit version of dtexec to run the packages. Package used to run fine. Today we upgraded our server to Sp1 and 2153 hot fix (x64) and now the package have stopped to load. we confirmed that the issue is not as inthe KB below: http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B918038 We are still using the 32-bit version of DTExec(as in SQLx86). With 64 bit we get the error "script faield to load". we are going to fix the script failed to load error but, we need help to get going right now. help would be greatly appreciated Message:- Execu ...Show All

  • Software Development for Windows Vista Installing .NET application with DirectShowLib

    I have .NET application that uses DirectShowLib. When installed on the user PC it does not work (video is not shown) unless I install Framework 2.0 SDK. Is there some aditional library that I'm missing besides directshowlib.dll > Yes. .NET Framework 2.0 was installed prior application installation. Are you running a debug version of the app (that would likely require the ..Net Framework SDK). ...Show All

  • SQL Server How to get IRowsetPosition...

    Hello everyone. I make the IRowset form IOpenRowset::OpenRowset() method because I want to use the base type cursor, scrollable and updatable. But I don't know how to get the IRowsetPosition in this case.. I want to know the current cursor position after calling IRowset::GetNextRows(). I'm developing MFC application using OLE DB interface in VM5. Thanks in advance.. When using a base table cursor the best approach to do what you want is to use the bookmark column (at column index 0). You must expose the IRowsetBookmark (if memory serves me well) and then you can reposition the cursor on any bookmark of the open rowset. ...Show All

  • Windows Forms Text Form Fields to autopopulate

    I'm creating a contract in a FORM Word Document FORM. Throughout the contract, the same company name will be entered many times in the "Text Form Fields". Can I just enter the company name once, and then have the subsequent Text Form Fields to auto-populate the company name If yes, how do I do that Thank you very much. I'm sorry but this is a development forum for questions about development on the .NET platform and the question you had posted does not fit in this category. I'm afraid I have to ask you to repost your question over to the appropriate newsgroups, which can be located at: www.microsoft.com/communities Thanks! ...Show All

  • Visual C# modify BuildItem method

    I'm using the MenuAdapter class file that is provided with the css adapters toolkit. I've been messing around for a couple of hours trying to add the following two statements to the BuildItem method in the MenuAdapter class file so I can emit an id and additional class for the list items that are generated. if (item.Value != null && item.Value.Length > 0) writer.WriteAttribute("id", item.Value); if (item != Control.SelectedItem) writer.WriteAttribute("class", "AspNet-Menu-Link"); else writer.WriteAttribute("class", "AspNet-Menu-Link-Selected"); This does add the id and class, but it is displaying on my page rather than emitting the id and class in the html ...Show All

  • Visual Studio 2008 (Pre-release) "OR" in separate calls to Where

    I'm trying to do the equivalent of this in LINQ: StringBuilder q = new StringBuilder("SELECT * FROM customer WHERE city = 'New York'"); if (westCoast) q.Append(" OR city = 'Los Angeles'"); Here's what I have so far: var q = dc.Customer.Where(c => c.City == "New York"); if (westCoast) q.Where(c => c.City == "Los Angeles"); But I end up with "WHERE city = 'New York' AND city = 'Los Angeles'"; How do I tell it to use OR instead, when separate calls to Where are made Thanks!   super_bly wrote: I'm trying to do the equivalent of this in LINQ: StringBuilder q = new StringBuilder("SELECT * FROM customer WHERE city = 'New York'"); ...Show All

  • Visual C# DllImport from C#

    Hi All, I have finished my hard job of porting a VC6 project to VC8 but now I have a problem in using functions from C#. This is the declaration: [ DllImport ( "Test.dll" , CallingConvention = CallingConvention .Cdecl)] public static extern int MyFunction(........... ); but when I use MyFunction I have following error: System.DllNotFoundException : Unable to load DLL Test.dll': Routine di inizializzazione della libreria di collegamento dinamico (DLL) non riuscita. (Exception from HRESULT: 0x8007045A) Thanx in advance for your time! Marcello I think it has to do with the DLL. It is somehow corrupt or the methods are not exported properly. If you google for the HRESULT ...Show All

  • SQL Server Dynamic Security and Rool ups

    Hi I thought I had this dynamic security worked out but I guess not. this is on AS 2000. I have a Fact table - one of the columns is a companyid, this is joined to the company dimension. For security I have another table "empcompany" which lists all the users (ntusername) and the company codes they can access. I created a member property against the company code and used MDX similar to this: filter ([Companycode].[Companycode] .members , ([Companycode] .CurrentMember.Properties ( "ntusername" ) = username )) The problem is that when I join the "empcompany" table to either the fact or to the company dimension instead of getting 1000 rows I get 80000+ rows and my numbers are wrong. Mo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Viz rebuilding unnecessarily?

    Ever since I moved to C# express 2005 for XNA, every project in my solution gets rebuilt every time I build, even if nothing has changed. If I build and then immediately build again without changing anything, it still rebuilds the entire project. Why is this happening, and how do I stop it If it's of any significance, this project was migrated from Visual Studio 2003. Before the conversion it was fine. I must unfortunately report that I am seeing the same thing. And it's particularly bad for me because I've got a long content build, even though none of the assets are changing in between builds. If I can't figure it out, I'm going to have to resort to using the XNA Content Builder (XCB) put out by the xnad ...Show All

  • SQL Server backup with READ_WRITE_FILEGROUPS option causes an error

    Hi all, I would like to perform a partial backup, but I keep getting the following error BACKUP DATABASE x READ_WRITE_FILEGROUPS TO DISK = 'C:\MyFile.BAK' GO Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'TO'. What am I doing wrong Thakns Avi ...Show All

©2008 Software Development Network