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

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

rusty123

Member List

Sterling Swartwout
fishy_swa
Ashesh Shah
Kaiser28
Looney
Colin Reid
ehsan sadeghi
SpoonmanUK
rternier
ks2006
Lauriew
twilightown
MKBender
Tony Han
PerPixel
WinFXGuy
TylerM
Ankith
Guustaaf
GunaChinna
Only Title

rusty123's Q&A profile

  • Windows Forms How to display row numbers in GridView,urgently required

    Hi, I need this very badly. I am using a datagridview for which the datasource is a dataview. This dataview is assigned with a datatable from database. I am able to display the row numbers for the gridview by adding new column like shown below: int rowcount = table1.Rows.Count; table1.Columns.Add(new DataColumn("SNO", typeof(int))); for (int i = 1; i <= rowcount; i++) { table1.Rows[i - 1]["SNO"] = i; } But main problem arised when i sort any another colum , the "SNO" also gets sorted with row numbers not in proper order. Like if I sort by name then row numbers are displyed like 3,2,1 .. Even when i use Dataview's row filter, only few columns are displayed with p ...Show All

  • .NET Development Xpath Expression with XpathNavigator.Select vs XmlDocument.SelectSingleNode

    Hi. I have an xml file with proper namespace and schema. I have an xpath expression that I have tested on the document in xmlspy (xpath 1.0 or 2.0) which returns a single node element. If I load the file into an XmlDocument and apply the expression with SelectSingleNode, I get the proper element value back. If I use XpathNavigator.Select on this file, which I understand, returns a node set, (even though the expression can only match a single node), I get the inner xml of all the nodes in the file (3 values). I am properly using the XmlNamespaceManager in each case. With the Xpath navigator, I have moved to root initially, before doing the select. Does anyone have any ideas why the XpathNavigator is returning strange resu ...Show All

  • Windows Forms Find Method for a richTextBox (Help Please)

    My question is this: What can be used as a DataSource for Formatting Text a Certain way The type of Text Formatting i'm working on in my project is a Casscading Style Sheet Generator,for a Site already In use(sorta like myspace.com)... Can you have a TextBox Read & Apply the text on a StyleSheet (CSharp) or would it have to be say a XML file Than the Form Controls will Edit the right sections of the CSS Example : table.user_aboutme { border:2px dashed #6694cf; <----------- Auto Insert of Color from CSS Supplied to the program text-align:left; padding: 2px; } td.user_aboutme_hdr { text-align:left; color:#2d7bbb; <------------------- In Every Spot threw out the CSS Supplied(DataSource) background-color:transparent; ...Show All

  • .NET Development RowChanged Event Firing on Unchanged Rows

    It seems that the RowChanged event is fired on unchanged rows. I wrote a small program to confirm that. using System; using System.Data; using System.Text; namespace Test { public class EventTest { const string IdColumnName = "id"; const string DataTimeColumnName = "DateTime"; DataSet dataSet = new DataSet(); DataTable dataTable = new DataTable("table"); static public void Main(string[] args) { EventTest eventTest = new EventTest(); } public EventTest() { dataSet.Tables.Add(dataTable); DataColumn column = new DataColumn(IdColumnName, System.Type.GetType("System.Int32")); column.AutoIncrement = true; column.AutoIncrementSeed = 1; column.AutoIncrementStep = 1; c ...Show All

  • Visual Studio 2008 (Pre-release) Centralizing Namespace Declaration

    The default namespace for WCF services is http://tempuri.org . To completely change this and use another namespace instead, you have to rename the service namespace, the contract namespace, the binding namespace and all the different schema namespaces which you do by applying the according attribute and set the namespace value. I wondered if there's a central place to rename that namespace instead If no, why not Do you think it's possible to create a custom attribute class which derives from the original applied attribute class and set another namespace as default This way you could reduce the amount of namespace assignments spread all over your service Any suggestions Best wishes Hi, This ...Show All

  • Visual Basic How to use an array or an arraylist insinde a structure?

    How can I use an array or an arraylist insinde a structure I'm having a NullReferenceException, because I didn't declare the array as New. But I don't know how to do it, because I allready declared the object that contains the array as New. Thanks, Lucas I'm having some problems using a class and an array inside a structure. I can't create another sub using the structure, that I get an error: Error creating the form. Refer to Exception.InnerException to details. The error is: Object reference not defined to an object's instance. I was allready using the structure, in a sub(SUB1) that create a new instance for the structure with an array. But the error occurrs when I add a new sub(SUB ...Show All

  • Visual Studio Express Editions Sizing items in a web browser box

    My question, I have a web browser box accepting a RSS feed or any web information for that matter, is there anyway to size the incoming feed to fit in the size web browser box I place on a form. Thanks IrishWolf, Do you mean that you want to save the feedback from you websites Database is the best choice like SQL Server or some other DBMS. In your program, I suggest you to use the Session object on your server side and allow cookie configuration on the client side. If this description is not about what you want, please reply me and tell me the details in your project and tell me what is your problem in your problem or some other related problems. Waiting for your reply :-) ...Show All

  • .NET Development Problem with reading exponential format - FormatException

    Hello! I've just created a small utility that reads lines from a text files, extract single values from each line and converts each string to a Double value. After reading the line with StreamReader, I separate each value with the String.Split(\t) methob, being the values in columns. The double.Parse() method completes the task. While attempting to read number in the following format: [0.000000e-000 1.111111e+001 2.222222e-002 3.333333e+0.03] -> the format is always "x.yyyyyy e +zzz" i get a FormatException. I use the Parse method in the form Parse(string s, NumberStyles.AllowExponent) or Parse(string s, NumberStyles.Any) but I can't get out of the problem. How can I read this kind of number ...Show All

  • Visual Studio Tools for Office Override WndProc for a Word app generate via Microsoft.Office.Interop.Word.Application?

    Hi, I am working with an application that launches Word externally to edit files. I need to modify the System Menu so that it includes our own submenu. Is there a recommended way to override WndProc for Microsoft.Office.Interop.Word.Application apps Should I hunt for the process to extract the window handle Thanks Here is how I generate the app: ApplicationClass wordApp = new ApplicationClass (); object optional= System.Reflection. Missing .Value; object visible=true; wordApp.Visible = true; object filename = fileName; object t = true ; object f = false ; _Document doc = wordApp.Documents.Open2000( ref filename, ref optional, ref optional, ref f, ref optional, ref option ...Show All

  • SQL Server Data driven subscriptions scripting

    Hi, I have a reporting environement where the same report must be sent to a long ever changing list of recipients with different parameters values for each recipient. My idea is to use data driven subscriptions and put back the administrative responsibility of managing this where it belongs, the business. To achieve this goal, a one stop shopping user friendly management interface should be provided. The list of features is as follow; - pick list for existing reports - auto-discovery of parameters and their values - List of existing subscriptions with add/edit /delete buttons - management of tables content from this interface - creation of related data driven subscriptions from this interface Right now, I think I can tack ...Show All

  • Smart Device Development Can't Start New Smart Device Projects

    Please Help....anyone... I have just successfully installed MS Visual Studio 2005 version 8.0.50727.42. When I click FILE - NEW - PROJECT - click on any of the Smart Devices - click Device Application and click OK, I expect to begin a new Smart Device project. But instead, I receive the error ..."error HRESULT E_FAIL has been returned from a call to a COM component". I can successfully begin any other New Projects, just not any of the Smart Device projects. Any ideas What happens when you Select Tools Options - Device Options. Can you see any devices listed there. or from Tool Menu, Can you start Device Emulator Manager and launch say an Pocket PC Image Repair of VS does not ...Show All

  • SQL Server Only 9999 Rows after MERGE JOIN in SQL Server BIDS

    I've gote 2 Tables with about 50.000 rows and I left outer join them with MERGE JOIN. The result are 9999 rows. Has anybody got the same problem. Maybe it's a bug! Daniel Krebs wrote: I've gote 2 Tables with about 50.000 rows and I left outer join them with MERGE JOIN. The result are 9999 rows. Has anybody got the same problem. Maybe it's a bug! Merge joining is one of the trickiest components to use in SSIS. First make sure the data is sorted when it gets into the merge join; then you have to tell to the data flow pipeline how the data is sorted by changing some properties in the source component. Alternatively, you could place a Sort transform before the merge join; but that is ...Show All

  • Visual Studio uninstalling VS2005

    Hi, I have a high spec (dual core, lots of ram etc.) laptop with Vista home premium. On trying to uninstall VS2005 the app took 4 hours to make a 'setup script'. Does anyone else have experience of this thank you Do you have a virus scanner active (such as norton or kaspersky) Try disabling that and the uninstalling (ofcourse, unplug your network cable first) :) ...Show All

  • .NET Development Redirecting a page in dotnet

    Hello People We have created a website which consists of 7 different web applications. Five out of seven web application are deployed on a server & remaining two are deployed on another server. The website contains 6 Tabs at the top which represents individual six web applications. Upon clicking tabs the corresponding web application is loaded with default page. But while loading the system we are getting following error.     Server Error in '/REIOS_AGI' Application. There error is not in your HREF but in the page you are trying to load MainWindow.aspx.  If you look at the call stack you'll see that the ASP.NET runtime begins to load the page and then calls the Page_Load method of the underlying clas ...Show All

  • Visual Studio database connectivity in vb.net

    Hi all, I'm writing an application in which I'm connection to the access database.My intention is in future i will move to someother database like sqlserver or oracle. once if I make a setup and deployed in a system if i want to change to other database. how can i chnage the connection string.I'm using ado.net oledbdataprovider. is there anyway i can write the connection string independent of the application hope I delivered the question correctly.any little help is appreciated. -regards GRK i think you have to recode the whole program because OleDB is really Different from SQL like for instance OleDB uses System.Data.OleDB.OleDBConnection() while SQl uses System.Data.SqlClient.SqlConnection() ...Show All

©2008 Software Development Network