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

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

AndrewBadera

Member List

Chester R
Mike Sage
Futzy
.net sukbir
MarcGBeauchamp
stang4lyfe
VitCon
Donaghy
Oscarfh
MJRP
kyotov
milkshake
dHan61
omrivm
GaryPod
Simone1
malignate
arifyemen
Kesava
jCarlisle
Only Title

AndrewBadera's Q&A profile

  • .NET Development .Net app updater question

    I want to use the app updater application in my program. The question I have is whether the files that are for updating can be on a FTP server. The application works when I use localhost on my machine. Thanks Matt Sure You put them on FTP Server when new update is available, Configure some webservice to check the version. Like From your running application call this webservice and tell it version of the current running application, Webservice checks if new version is availble and return true or false depending on Update Availble or not Then Use FTP to download the file! After Download is complete close the Current instance of application if running and run the Setup... or Application (New Ver ...Show All

  • Visual C# Find the right library at runtime

    Hello, Im writing a program that checks several company's websites for prices and compares them. Since every website is different, i have a different library with specific methods for each website. I want to be able to add libraries later on without having to change the source of my program. What i wanted to do was specify the library names in xml, use that to make an arraylist of websites, and use reflection to use those libraries. However, the program can't find the libraries unless i add the right reference before compiling. Is it possible to add libraries and use them without having to add a reference and recompiling my program Thanks in advance, Stijn I still haven't gotten this completely right... ...Show All

  • SQL Server Host_id() and Citrix

    Hi, I'm wondering about the behaviour of the HOST_ID() function with clients running on a Citrix server. As I said in my post about "dynamical views", I'd like to use the host_id as a terminal ID, assuming this number will be unique. In my current configuration, each user has a client on his workstation which connects to SQL Server, an it works fine. But what happens if i migrate my clients on a Citrix server. Will I always have the same host_id or not that's what i 'm afraid of. Is there another way of identify a user's session. i thought about @@spid for instance. the goal is to dynamically create a view named 'MyView_' + SessionId. that's why host_id was helpful. ...Show All

  • Visual Studio 2008 (Pre-release) Retrieving absolute position of a control

    Hi, I would like to know is there anyway to retrieve the absolute coordinates of a control I know that position data can only be retrieved if controls are on a Canvas, but if you wish to retrieve coordinates from containers like a grid then you can use the VisualTreeHelper for controls embedded in a grid. The problem is this is extremely inefficient. The Popup control has an interesting property whereby you can specify a PlacementTarget. Now, somehow a Popup control knows exactly where to place itself based on that information. Does anyone know how the Popup achieve this Thank you, jaco ...Show All

  • Visual Studio Express Editions Does C# have any problems with SQL Express!

    Hi, I am planning on converting a program that I was writing in VB to C#.  Mainly because I was having a problem with my main form, it would not let me edit it because of an error that occured with an auto-named database that had the same name or something.  It is to my understanding that this is a common problem in VB.  So my question is: Does C# have the same problem with SQL Express as VB   Also, I was told that C# is a faster language, is this true exactly, Glenn hit the spot - I always say that - the language is down to user preference, at the end of the day, its using the same framework/clr so it doesnt matter what you use, you are still using the same framework/resources - it gets compiled to the ...Show All

  • Visual Studio Team System Reporting Services is installed - no it's not!

    Hi, I'm having problems getting passed the 1st hurdle in installing TFS. This will be a dual server install - and it's the data tier that's giving me a bit of grief at present. SQL 2005 (SP1) is installed on Win2003 (SP1). There are two instances of SQL Server on this server, one default instance and one named instance. Obviously, TFS will / should install to the default instance. My problem lies with the fact that the TFS install seems to think that Reporting Services is installed on this default instance. It was - but RS was then removed (I uninstalled it using the SQL Install from add/remove programs and then deleted the RS databases and RSExec roles etc from the SQL Server manually). Reporting Services is installed on the ...Show All

  • SQL Server tfs database

    I have a VMWare Image that runs SQL Server 2005. This Image was running on two developer machines (M1 and M2) and each was updated locally. The .MDF and .LDF files in the DATA folder of one machine (M1) were copied to tape when the SQL Server services were shut down (they were not IN USE, but the files were not DETACHED or backed up from within SQL server). I want to now use these files to setup a replica on M2. Simply copying the .MDF and LDF does not work (SQL SERVER Service refuses to start) Any how (and if) it can be done it worked..; 1. detached all existing databases (all related to tfs only and not master etc) 2. took them offline 3. attached the new database fil ...Show All

  • Visual Studio Express Editions Accessing web text box

    I am making a program that automates the downloading of a file from a website of one of our providers. There is a login page which I can load up on Form1_Load() which has a user name and password box. Looking at the source code, these are called : document.forms[0].userName.value = ""; document.forms[0].password.value = ""; There is also a submit button : input type="submit" value="Go" How do I access these I want to push a button that enters the username and password and then hits the Go button and effectively submits the data. Any clues Cracked it! try {     //Set variables     string UserNameControl = "userName";     string PasswordCo ...Show All

  • .NET Development Expose library as web service correct pattern

    I want to expose the whole functionality of a library through a web service. In order to do that of course I've created web methods for all public methods in this library. Because only public data and no logic or private fields is transferred through web services, I need to know what is the correct pattern for invoking the methods of the proper objects. By now I've found two possible patterns: 1) Objects are created on the server and then passed to the client ( Of course now they have only data and no logic ) and when invoking a webmethod pass this object as a parameter so that the server now has object with the correct data and methods and just invoke the method from this object. The proble ...Show All

  • Visual C++ How to do proper infinite loops

    I am writing a console application for a Windows box that is constantly polling for certain external input to be read and it is basically in an infinite loop. Roughly: while(1) { wait 5 minutes; check value; if user asked to kill us quit; } The only thing is that the CPU jumps to 100% utilization when this program is running. Since the console application, as far as I know, is not event-driven in any way, how do I do an infinite loop without taking 100% of the CPU longwood How do you wait 5 minutes Use System.Threading.Thread.Sleep(300000); to wait without using the CPU. -- SvenC ...Show All

  • Visual Studio Express Editions USB Storage Device Blocker

    Hello Dears, I wanna to develop application that block USB Storage Device when ever it connect. Thanks Regards ...Show All

  • .NET Development Reducing memory usage with XslCompiledTransform

    I've currently been using and XslCompiledTransform in my software to apply an XSL stylesheet to a user-provided XML file and then bulkloading the resulting file into a SQL table. This worked great until an XML file larger than 100 MB is thrown into the mix. The RAM usage jumps off the charts and for most users, my program exits will an OutOfMemory Exception. I've looked for ways to get around this and cannot seem to find any solutions. What can I do differently or what other alternatives do I have other than physically parsing through the XML file line by line (or node by node) and performing the operations the XSL file does myself... which is my LAST option considering I am sometimes dealing with 2GB and 3GB XML files. Oh.. and here's ...Show All

  • .NET Development corrupt connection pooling clear and table adapter

    Hi, let's say we have plenty of table adapters in application and connection pool corrupts pretty often. How nice and elegant with minimal rewriting make those table adapters work without exceptions using this (or if you get the point of the problem and know better one) solution (idea in pseudo code): try { fill datatable using adapter with plenty of usrfull data } catch { looks like our connection pool has corrupten connections, let's clear it try to connect once again } Even if you have thousands of users who access your Web site, application should be able to handle all of the using 50-100 connections in a pool. Number of connections does NOT equal to the number of the users, if you handle ...Show All

  • Windows Forms Win32.SetParent problems

    Hi All, I am using Win32.Setparent in my application. Because of that my default application behaviour is getting changed. Does anybody have any idea what to do after calling win32.setparent......................to get original setting of the form I am using windows XP. LOL, if there is a good candidate for a code re-write, this would be it. For some reason, SetParent in pure .NET assembly code does not sound right aside from the fact that there is access to both components. I think we can probably help you more if you write down the spec of what is the code trying to accomplish in plain English.   EDIT: I get it now you what the dialog box to be modal only to form2, but form3 should still be int ...Show All

  • .NET Development Access to SQL Database via TCP/IP

    Hello, I developed a sql database application. The application runs well on my local machine. Now that the application is tested I want to set up a client computer and access my sql database which is stored on my development machine. I just don't know how I can modify the connection string in order to access from my client computer Current connection string: Data Source=.\SQLEXPRESS;AttachDbFilename="C:\WC Database\WcDatabase.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True Can anybody help me and tell me how I change my application from local access to access via network (TCP/IP). Thank's I believe this is correct under SQL Server Express. My und ...Show All

©2008 Software Development Network