Software Development Network Logo
  • Windows Live
  • Visual Studio
  • Visual FoxPro
  • VS Team System
  • Architecture
  • VS Express Editions
  • Visual J#
  • Microsoft ISV
  • Visual C#
  • Smart Device
  • .NET Development
  • Windows Forms
  • Visual Basic
  • Windows Vista
  • Visual C++

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

aniljain50

Member List

NarcisoLema
Amr Ashraf
Ben Brodie
N3vik
Colvic
Ender Uygun
Matt17
weezer24
Boyd Thomson
Rob_SA
kylemad
crimson33
Thomas Ivarsson
Hidroilio
Sebastien P
Thomas Scheidegger
R Kaur
Markdem
Atul Nisar
coderblog
Only Title

aniljain50's Q&A profile

  • Visual Studio Express Editions how can i pass data to Excel

    Please can anyone can help The following code works properly in Visual Basic 2003 but not in Visual Basic 2005 Express.         Dim EXL As New Excel.Application()         If EXL Is Nothing Then             MsgBox("Couldn't start Excel")             Exit Sub         End If         Dim WSheet As New Excel.Worksheet         EXL.Application.Visible = Tru ...Show All

  • .NET Development How do i generate an HTML email and send it using the SMTP mail class

    Hi I am developing an application and need to send email in an HTML format. I have tried several ways but cant seem to find the trick! at the moment my code looks like this... namespace TreasuryHelpDesk.controls { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Configuration; using System.Web.Mail; using System.Text; using System.Net; /// < ...Show All

  • SQL Server Dynamic Filter Not Updating Correctly

    I have several SQL Mobile devices (WM5) syncronizing with a SQL 2005 database through merge replication. We are using the HOST_NAME parameter to filter several tables. A few of these filters use a sub-query to filter the data because of the complexity of the filter (need to do more than join to one table). The subquery will use the HOST_NAME parameter. For example, I want to get a list of all users in the current user's company I need to use host_name to get the current user, find their company ID, then filter the user table on that company ID. Everything works fine until a user is removed from the table. In that case, the delete stat ...Show All

  • Visual Studio Error connecting to VSS test database

    I have VSS 2005 July CTP installed on a Windows 2000 Server and I had success setting up a test database. When I tried to connect to this database using HTTP access on a Windows 2000 Pro system I got this error: --------------------------- Visual SourceSafe Internet --------------------------- Cannot contact the Visual SourceSafe Internet Web Service or cannot access the specified database. The server returned the following error: A connection with the server could not be established (0x80072EFD) --------------------------- OK    --------------------------- Could you try to install VSS back on the server then modify ...Show All

  • Visual Studio 2008 (Pre-release) Window versus Page

    if i set my main .XAML class with a root element of <Page> rather than <Window>, I can then get a hyperlink to work in a child frame, whereas it wouldn't before. the only visible difference i can make out is that I get a toolbar at the top with a BACK/FORWARD button. i am uncertain as to the real difference between having a WINDOW or a PAGE as a root element for my application. can anybody please enlighten me as to the differences, also as to why my hyperlink only works on a child frame if the parent has a root of PAGE and not WINDOW thanks. Hi, when you use Page as startupuri, applicati ...Show All

  • .NET Development Dataset serialization

    I have an issue with the Dataset serialization. I have a class, say BaseDataSet which inherits from the Dataset. More classes inherit from BaseDataSet. I would like to pass on the object inherited from the BaseDataSet back to the client via a web service. Before passing on I cast the derived object to BaseDataSet type. On the client, I am not able to down cast the dataset back to the specific class which is the type of dataset passed across. Are you applying the serializable attribute to all your descendents [ Serializable ] public class BaseDataSet : System.Data. DataSet { } [ ...Show All

  • Visual C++ Mixing Templates and Generics

    I think I've raised this questions a couple of times and the first time some three years ago - and have never got a real answer. Why does the language disallow mixing templates and generics. What's wrong with: template < typename T > value struct outer {   generic < typename U > void foo(); };   or generic < typename T > ref struct outer {   template < typename U > void foo(); };   And in case you wonder, yes I really wrote some code which exactly does that and I don't think it's hard to think of examples. -hg   Jeff Peil wrote: Th ...Show All

  • Visual Basic Loading Notepad as a Process

    Hi, The code below is for a service that fires every 10 seconds. If it doesn't find an instance of Notepad running, it loads it up. Please note that Notepad is only for a test, the final version of the software will run a program once at 22:00. The problem I have is that Notepad isn't loading fully. I get a Notepad.exe in the task-manager, but despite setting the properties, the actual Notepad application doesn't load for user-interaction! Can someone explain to me what I'm doing wrong please TIA Imports System.ServiceProcess Public Class Service1 Inherits System.ServiceProcess.ServiceBase Private _ProcessRunning As Boolean = False #Re ...Show All

  • Visual Studio Cannot find disassembly and memory view windows

    I am trying to debug a low-level interop-related problem in a C# program. When doing this I want to be able to look at disassembly, and also look at memory contents. These functions are available in the disassembly window and the memory windows. I can enable these windows using the keyboard combinations (Ctrl-Alt-D or Ctrl-Alt-M, 1) My question is why are these windows not available on any menu or toolbar The documentation mentions that they should be available on the Debug > Windows submenu when the debugger is stopped at a breakpoint, but they are not. I am using the RTM version of Team system developer edition of Visual Studio ...Show All

  • Windows Forms Formatting a textbox for currency

    I'm stumped.  This should be the easiest thing to do in the world, and yet there is no obvious choice here.  I want a simple textbox that automatically formats itself for money with a $ and 2 numbers after the decimal.  I've tried the new maskedTextbox and am not impressed, that is really not what I'm looking for.  So far all tries at using the .ToString method, the .String.Format method have failed.  They generally just don't work.  Any ideas would be appreciated.  I tried overriding a textbox and taking over the OnPaint method.   However, it appears that the OnPaint isn't used! WTF ! Why is it e ...Show All

  • Windows Forms Hitting breakpoint in thread causes thread to exit

    If I create a standard C# Forms app, add a button, and inside the buttons onClick handler I put the following code: ... { // workerThread is a member of the form workerThread = new Thread(new ThreadStart( DoWork ) ); workerThread.Start(); } ... void DoWork() { while(true) { Debug.WriteLine("Hello"); // <-- put breakpoint here. It gets hit but VS hangs then thread exits. Form keeps running fine. Thread.Sleep(50); } } So long as I do not put a breakpoint in the DoWork it runs fine. If I put a breakpoint once it gets hit VS hangs for a couple of seconds then when it resumes it reports the thread has exited and the DoWo ...Show All

  • SQL Server Replication performing UPDATES as INSERTS and DELETES on the subscriber

    I have transactional replication set up between two SQL Server 2000 databases. In some cases when I perform an UPDATE on a published table on the the publisher, SQL Server attempts to perform a DELETE followed by an INSERT on the subscriber using the stored procedures created during the initial snapshot. Why does it do this How can I stop it doing this and force an UPDATE on the publisher to call the UPDATE procedure on the subscriber Thanks What's happening is called a deferred update. See kb 238254 for more info. This is a by design behavior. Is this causing any problems in your scenario Are ...Show All

  • Windows Forms How can i cache an array of ListBox, to re-display them faster ?

    hello, i do populate these ListBox with data from a DataView.ToTable distinct query the application is a music browser, like Itunes, on ListBox(es) on the top, there is as cascaded filter that also DISTINCT childs lists. (the behiavor is exactly Itunes like) these ListBox are stored in an array so i can find which one has been clicked, from which tab and create the RowFilter properly my question is : how can i cache these tables for faster loads (in fact, i just do a basic check and use NewRow() that seems to take centuries !) or do i simply have to wri ...Show All

  • Visual Studio 2008 (Pre-release) DLinq as a Datasource

    How can DLinq table be used as a datasource Assume we have a conact class, that is a table in a DataContext. How can it be used as the DataSource in a DataGridView Public Class Context Inherits DataContext Public Sub New ( ByVal connectionString As String ) MyBase .New(connectionString) End Sub Public Contacts As Table( Of Contact) End Class Put the instance in a collection (i.e. EntitySet) and use the collection as a datasource (perhaps put BindingSource compoment in the middle). ...Show All

  • Visual C++ Can I build STL program with only .Net framework SDK installed?

    .Net framework SDK 2.0 beta2 is installed and I just want to build a simple c++ "hello world" program(without CLI features, fully ISO C++ program) #include <iostream> using namespace std; int main(int argc, char* argv[]) {     cout << "Hello World!" << endl;     return 0; } When using "cl helloworld.cpp" for building, the following EROR message displayed: helloworld.cpp(1) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory I want to know is it possible to build such program with only SDK installed If possible, how Thanks! ...Show All

©2008 Software Development Network