Ashish.Net's Q&A profile
Windows Live Developer Forums MSDN Article
Hi, I just read this article, but I cannot get it to work is keeps saying that sc is null or not an object. Anybody got it running tnx koen Oops , here it is : Building Search for Your Web Site with the MSN Search Service http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlive/html/BuildSearch.asp koen ...Show All
SQL Server How to create a report using multiple databases
Hi, I am a beginner of Reporting Service. I am trying to create a report using multiple databses. For example, I want to create a report called RevenueByCustomer, so I need to get data from the Customer Table of CRM database, which contains customer information, and I also need to get data from Transaction table of Sales database, which contains all the revenue information. In order to get data from both database, I have created two dataset. One is Customer dataset, which get all required customer data from CRM database, and the other is Revenue dataset, which gets data from Sales database, they used seperate datasource (because each datasource only contains one database connection). Now my problem is how can I make them be displayed in on ...Show All
Visual Basic Change class template
Does Visual studio use a template file when adding a class to a project and can we change it I would like that when I add a class that the file automatically contains some comment. Another option could be to create a snippet with all the structured comment code in it. Then you can insert the 'comment' to any class, procedure, module, etc. ...Show All
Windows Forms BindingSource, Dataset and BindingNavigator, problem: DataMember property 'RECORD' cannot be found on the DataSource.
Hey, i m a newbie in vs and i am trying to develop a small application. I m loading an XML file to a dataset and then i m trying to view the contents. Code: *** this.dataSet1 = new System.Data.DataSet(); *** this.bindingNavigator1.BindingSource = this.bindingSource1; *** this.bindingSource1.DataSource = this.dataSet1; this.bindingSource1.DataMember = "RECORD"; this.bindingSource1.Position = 0; this.dataSet1.DataSetName = "MyDataBase"; this.dataSet1.ReadXml(@"***\TheData.xml"); so far it runs fine and the move buttons from the bindingnavigator are moving from 1-3 (i have 3 records in the xml file) The problem occured when i added this line: this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding(" ...Show All
.NET Development System crash in EEHeapAllocInProcessHeap() inside XPathExpression.Compile()
We are developing .NET components that are used through COM from a COM client written in VisualAge Smalltalk V7.0. We experience a system crash (access violation; error code C0000005) when the Smalltalk client calls a .NET method that internally calls the .NET method XPathExpression.Compile(string xpath, System.Xml.IxmlNamespaceResolver resolver) (e.g. through calls to the .NET methods XmlDocument.SelectSingleNode(string xPath) or XmlDocument.SelectNodes(string xPath) ). Further investigation with WinDBG and the "Son of Strike" debug extension showed, that the access violation exception is preceeded by many “Undefined exceptions C0000090” (EXCEPTION_FLT_INVALID_OPERATION ). The first of these C000090 exceptions happens in t ...Show All
Visual C# Finding text in a Rich Text Box Control
I find that when I use richTextBox.find(string) it only seems to search until the first occurrence of the string. How can I have a find like that in notepad etc. i.e. finds the next occurrence with each click. The code I'm currently using to do this is: int pos; if (RichTextBox.SelectedText == "" ) { pos = RichTextBox.Find(searchTextBox.Text, 0, RichTextBoxFinds .None); } else { pos = RichTextBox.Find(searchTextBox.Text, (RichTextBox.SelectionStart + 1), RichTextBoxFinds .None); } if (pos < 0) { MessageBox .Show( "Your query " + searchTextBox.Text + " could not be found" , "Results" , MessageBoxButtons .OK, MessageBoxIcon .Warning); RichTextBox.DeselectAll(); } ...Show All
SQL Server update statement
Newbie Question: Im trying to update a table column to a new value and I receive an error, here is my statement: USE PD51_Data; GO UPDATE CASENUMBERS SET CaseNumTypeID = 130 WHERE CaseNumTypeID = 101 AND CaseNumber BETWEEN 199999 AND 600001; GO I receive this error Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '9368----' to data type int. What did I forget Pig, What are the datatypes for the following columns: caseNumbers caseNumTypeId caseNumber My guess is that one of the fields -- maybe caseNumber -- is a varchar and contains the string '9368----'. Dave ...Show All
Visual Studio 2008 (Pre-release) WPF UserControl breaks the designer (but works at runtime)
I have created a very simple WPF UserControl that I use in a WPF window. The declaration is as follows : <Window x:Class="Foo.Bar.User.GUI.WPF.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:foo="clr-namespace:Foo.Bar.User.GUI.WPF" Title="Foo.Bar.User.GUI.WPF" Height="1024" Width="1280" MouseDown="Window1_MouseDown" WindowState="Maximized" WindowStyle="ThreeDBorderWindow" KeyUp="Window1_KeyUp"> <Grid> <foo:MyDisplay></foo:MyDisplay> </Grid> </Window> This works fine at runtime, but as soon as I use ...Show All
Visual C# ConvertToDigit
how can a multidigit number be converted to its string equivalent in words.e.g.,1324 to be converted to OneThreeTwoFour and OneThousandThreeHundredTwentyFour .Without using case or if-else statements,in least possible code. You will have to use case or if-else statments. It's possible to create a look-up table of delegates for each number, but it's arguable whether you'd get any major speed improvements over a switch statement. ...Show All
Visual Studio Designer not saving a property change
Hi, I have created a component. The component has a property which is an array of strings. If I modify this array in the property browser window then the VS designer notes that I have changed the property and saves (serializes) the changes. However if I change the string array in the component code the VS designer does not realize that the property has changed and does not save it. It seems I need to make a change using the property browser in order to ensure my changes are saved. Any ideas or comments Joe Are you manipulating the control property directly if so, you need to use a PropertyDescriptor instead. See my article: HOWTO: Manipulating controls of Windows forms from Visual Studio .NET add ...Show All
.NET Development Visual Studio 2005: How to work with xml-files generated from Excel 2003
Hi, I want to work with xml-files generated by Excel 2003 in Visual Studio (Visual Basic). I have to search and prepare relevant Data from the Excel-File and put it to DB. To work with an excel-object is very slow and i hope xml is more faster. I'm new in xml. Where to start phil A couple of links that may be useful: XML in the .NET Framework http://samples.gotdotnet.com/quickstart/howto/doc/xml/overviewofxml.aspx (the site is currently down) XML Documents and Data http://msdn2.microsoft.com/en-us/library/2bcctyt8.aspx Thanks, Anton ...Show All
Windows Forms Multi thread
Hi, I have a while loop which keeps showing words in a label on a Form. I can still do events with the Application.DoEvents(). But the while loop contains 2 thread.sleep(). Which makes it slowing down in handling events. Its getting stuck for 5 seconds in total. I thought i might solve this problem by using multi threads. Once the first thread starts which contains the while loop, it should start a second thead that contains the Application.DoEvents() and not slowing it down anymore. Can this be done like how i described it Or does anyone has a better solution I'm all ears, thanks in advance! I'd like to second what Ahmed said: Any use of "DoEvents()" is suspect. In fact, we treat use of Applica ...Show All
Microsoft ISV Community Center Forums Passing new parameters to Report(.rdlc)
Hi guys, ive sucessfully made a simple report(.rdlc) in VB.Net using the "wizard" of Visual Team Suite. Now, is there anyone here who could help me pass a new parameter to the report For example, i have a report that shows ALL the transaction of a company. Now, what need I need to know is how will I pass a new parameter to the report if the user only wants to view certain data like data from a Jan. 1, 2006 to Jan. 5, 2006 ...Show All
Internet Explorer Development IE7 Problems Within Outlook Express 6
Concerning the thread "IE7 Problems Within Outlook Express 6" at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=711738&SiteID=1 , which is locked so I can't reply to it. I also have this problem so I went to the link you suggested, www.microsoft.com/communities . I clicked on the link "Forums", which took me to http://www.microsoft.com/communities/forums/default.mspx . There are no forums for "Outlook Express", "Outlook", "Hotmail" or Internet Explorer". Your reply is not very helpful Ahmedilyas. ...Show All
Visual J# How do you publish applications to the web
I am a desktop application creator. I use Visual Basic, and Visual C++. I am new to developing web applications. I just Downloaded Visual J#, and already understand the basics of it, because the language is alot like visual basic and c++, So all I need help with is puting my applications on the web. Can someone kindly help me Hello, You might want to refer to following thread : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=360853&SiteID=1 Let us know if you have any more questions. thanks, Varun ...Show All
