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

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

Michael_75

Member List

The_Learner
Jamie Thomson
Phillip S.
Macinkross
Szymon Kosok
pepellini
MaciekWojcik
Peter Mackay
jrcdude
xboxracer
Salman Maredia
Rihaz
Zhiwei
Praveen Dayanithi
Gilles Lafreniere
arashikage
Tom Waters
vito1281
JimmyDin10SC
Butterflyangel02
Only Title

Michael_75's Q&A profile

  • .NET Development FileStream running slow in Window's forms but not in a windows service

    Hi, I'm runnning the same piece of FileStream code (see below) in a simple windows form and in a service but the code in the windows form is running 50 odd seconds slower (7 seconds in the service, 59 seconds in the form) . The file that i'm running the test on has a size of '1.56 MB (1,641,874 bytes)'. using (FileStream s = new FileStream(@"c:\ss.drs", FileMode.Open, FileAccess.Read)) { DateTime start = DateTime.Now; while (s.Position != s.Length) { s.ReadByte(); } TimeSpan ts = DateTime.Now - start; Debug.WriteLine(ts.ToString()); } Any ideas anyone Thanks in advance JK I think nobugz is correct and the reason is m ...Show All

  • Windows Forms Downloading of form control from HTTPS

    hi there! our problem is that we our using IE embedded form control. it is working fine on HTTP on all systems. But when we check it for HTTPS it gives problem on some system and on some it works fine. we have compared both systems, all settings are same, similar client and server certificates are installed. nothing is different between these system according to our findings, but strangly form controls are not downloading on some systems when we use HTTPS. can you please help us in this regard thanks Best regards Nosheen ...Show All

  • Microsoft ISV Community Center Forums File Stream issues

    I am trying to write a script triggered from an Outlook email to parse the email (as a text file) and then update an excel spreadsheet with specific data extracted from the email. The email is a form email delineated by a "/" for field breaks and "//" for end of line. However, when I create a text stream to read in the data, the returned string does not include these delineations. Here is a copy of the code I am currently using to open and read the file. I don't want to open the entire email as a new workbook, so I can't use the workbook function. Set fs = CreateObject("Scripting.FileSystemObject") Set ts = fs.OpenTextFile("file.txt", ForReading, TristateTrue) check = True Do s = ts.Readline endlinepos = InStr(s, "//") Do While en ...Show All

  • Windows Live Developer Forums Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0

    Hi, I created a simple add-in for Windows Live Messenger. All it does is open a connection to a local SQL server and retrieve some information. However, as soon as it tries to open a connection, I get the following error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed I went to .NET Framework 2.0 configuration --> Runtime Security Policy --> Increase Assembly Trust and set the assembly's trust level to "Full Trust". However, I still get the same error above. I also tried to adjust zone security and set every zone's trust level to "Full Trust" as well but still no luck. Can anyone please h ...Show All

  • Visual C# Multiple Panels on a form

    I have a form that I need to place multiple panels on. These panels will overlap each other and only one is visible at a time. I would like a way to easily switch between these panels in the designer. I have tried the following: TabControl: I wrote code to hide the tabs but it behaves odd on resize with the browser control. I also don't want the border around the panels. PanelManager: http://www.dotnetrix.co.uk/custom.html This one seemed the most promising but it has some bugs in VS2005 (and .NET 2.0) that make using the control in designer impossible. I will continue to tweak the above to see if I can make one work for me but, are there any other possible ways to do this. Thanks in advance. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Forcing GraphicsDevice creation before Game.Run

    In order to incorporate Xna into an existing engine without a lot of ugly hacks, I need to force the GraphicsDevice to be initialised before the program loop starts (Game.Run). Can this be done Assuming this isn't possible (as seems likely), I'd need to ditch Game and handle device creation myself. This looks straight forward enough, except that it requires a handle to a window. This is no problem in windows, but what about on the xbox 360 Is there some sort of factory available that returns a GameWindow implementation for the platform it's running on Has anyone manually created a graphicsdevice on the 360 I am definitely all for creating my own GraphicsDevice instead of the hack mentioned above. But wh ...Show All

  • Smart Device Development SQL mobile in smart device and windows application

    I would like to create a desktop application and use the same database or at least the same data for the PDA in a similar smart device application. Is that a valid scenario It seems there wouldn't be a good way of merging the data. What would the proper setup be for this so the data could be synched Hi Ilya , Actually in my project i am also having such condition that i am using SQL Express for desktop application and SQL Mobile(.sdf file) for my Pocket PC desktop application. Now i need to export/ import my data from Pocket PC to desktop application and vice versa. as u wrote that Synchronization is not applicable here and we need to manually do that. Please if you have any sample application or lin ...Show All

  • SQL Server Maintenance Wizard error...

    Hi, I'm just trying to use the Maintenance Wizard for the first time, but the SQL Server Management Studio shows me an error message about 'Agent XPs' is not running on my server; and I should activate it through 'sp_configure' I've tried to understand 'sp_configure' by searching it on MS TechNet, etc. But of course, because I'm not a SQL Server expert user; I don't even know how to use 'sp_configure' at all.... Anyone know how to work this thing around Appreciate all the help... PS: I almost forgot to mention, that I'm using MS Windows Small Business Server R2 2003 with SQL Server 2005 Workgroup Edition. sp_configure is used to view/change global settings for the current server. To enable th ...Show All

  • Visual Studio How do I ship and run a DSL to machines without VS?

    Hi, I’m new to this space so forgive me if my questions don’t make a lot of sense. I need to build a DSL that will be used by end users on machines where Visual Studio is not running (something like the Windows Workflow Foundation editor), so I have two questions: What should I use , Visual Studio SDK , is there any guidance and packaging and shipping a DSL to a machine where VS is not installed I would also like to build a text editor that provides IntelSense, auto complete, syntax checking, etc. and also to be able to ship it to machines where VS is not running, can I use Visual Studio SDK and leverage custom editors for it Thanks for your patience. Gabo Gabo, As far ...Show All

  • Smart Device Development Can't establish connection from VS 2003 to ActiveSync 4.2

    I have a VS 2003 ppc project, but when attempting to debug it will not connect to a ppc instance running through device emulator 2.0 preview which is successfully connected through activesync 4.2. VS 2003 reports; Deploying to Pocket PC Device using TCP Connect Transport Error: Cannot establish a connection. Be sure the device is physically connected to the development computer. I am running norton anti virus 2006 but have switched off the firewall. The windows XP firewall is disabled. Does anyone have any ideas why its not connecting Two questions: 1. Did you cradle the emulator using the Device Emulator Manager 2. Can you use the file explorer in ActiveSync to browse the filesystem inside the DeviceEmulator That'll help us ...Show All

  • Visual Basic Newbe - needs help with configuration

    I have installed Visual Studio with my SQL server. I don't know why but when I create a new project the only templates I get are Business Intelligence Projects, I want the Microsoft Application template. Can anyone please tell me what I have done wrong. I have re-installed several times but to no avail. My Visual Studio Express will not connect to the SQL server saying it is not configured for remote access yet I know it is as the Visual Studio connects fine. Apologies if this is a lame question but I have wasted a day trying to get this working. Thanks Hi, version of .net is 2.0.50727. I am beginning to think that this is all that comes with SQL Server as I have re-installed several times an ...Show All

  • SQL Server Datasource and Catalog

    Hi all, I accidentally deleted the datasource including the root data source and catalog from reporting services running in SQL server 2005. As a result, my reports didn't work. What should I do Thanks! lk_spec Did you have a view on the RDL in VS or the RDL in the Report Manager, you can download the RDL in Report Manager by Opening the report > Properties > Edit Report, you will get the RDL file downloaded which contained (in my case) this GUID. HTH, Jens Suessmeyer. --- http.//www.sqlserver2005.de --- ...Show All

  • Windows Live Developer Forums Displaying certain users with the contactscontrol?

    Is it possible to instead of pulling the entire contact list just to pull certain contacts from the contactscontrol E.g. I know this user has bla@hotmail.com in his contact list so by feeding the contactscontrol with a string/array/xml with this address in would I be able to display all the users contacts except bla@hotmail.com Hope it makes sense since it would be very usefull. /dennis :0) Ah, ok. I see what you're after now. I'll add that scenario to our wish list. There's a couple of interesting ways to approach it, but all of them require some additional work in the contacts control first. What sort of timeline are you on Thanks for the feedback! -Danny ...Show All

  • Windows Live Developer Forums Javascript code for Firefox

    I have a piece of code that is located in my Virtual Earth script. The code grabs the ID for the pushpin that was hovered over. event.srcElement.parentNode.id. This code does not work in Firefox. However, I have not been able to find the correct code to use. Does anyone know Any help would be great thanks. Erick_the_Redd Hi Erick -- event and srcElement are IE implementations; for cross browser support you need to use something like this --testing for IE with window.event and if that is false, return e.target [mozilla]). function myEventHandler(e) { return (window.event) window.event.srcElement : e.target; } ...Show All

  • Visual Studio Express Editions Another Problem

    Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks Well, it gets out of the infinite loop but it doesnt allow me to check anything.  I can probably use it, still want it to uncheck rW1 if rC1 is checked. Oh, whats the differ ...Show All

©2008 Software Development Network