flash.tato's Q&A profile
Windows Forms WebBrowser control issues !
I have a list of webpages that I want to visit and get some data from each page in the same way so I decided to do the following: //the function that'll process the page when it's loaded browser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler (SetDownloadedCelebsInfo); //This function causes the browser to go the page I'd like to process private void StartDownloadingCelebsInfo() { if (celebIndex < celebNames.Count) { this .celebInfo = this .celebsInfo[celebNames[celebIndex]]; this .celebIndex++; this .browser.Navigate(settings.RootUrl + this .celebInfo.Homepage); } else { //Done With All CelebsInfo NotifyCelebsInfoDownloaded( this , new Cele ...Show All
Windows Forms Windows Installer Deployment
I have developed an application in VB.Net and I now want to deploy it using the Windows installer. I have everything working except that I would like the user to be able to define their own folder in the Start/Programs menu. I have a default and have looked through the File System and User Interface editors. I have included a Usser Interface Text Dialog box to my installation script so the user can define their Program Menu folder or just select the default. I cannot get this to work. I have attempted to use the System folder properties with the custom folder in the File System section of my deployment project but all the install attempts to do is look for a network folder with the name entered by the user. If someone knows how to do ...Show All
.NET Development Creating and setting xsi:type attribute
Hi. This is my first post on this forum, so please excuse me if I have chosen the wrong sub-forum... I'm trying to create an "xsi:type" attribute and set it to a particular element. Here is my code: XmlElement PropertyText = xmldoc.CreateElement( "Property" ); XmlAttribute propertiesTextType = xmldoc.CreateAttribute( "xsi:type" ); propertiesTextType.Value = "PropertyText" ; PropertyText.SetAttributeNode(propertiesTextType); When I run the code, it produces this attribute: type="PropertyText". Why does it cut off the "xsi:" part What do I have to do to create an xsi:type attribute Thanks :) Try the overlo ...Show All
Visual C# Object reference confusion.
I have a simple function located in Class2.cs - an auxiliary file for Form1.cs (Console Application in VS2005). It take one parameter: string. This string is supposed to serve as a switch for selecting the right string to build. public string getConnStrings ( ref string switched ) In the calling function I call the function in question as: string switched = "1"; string str1 = Class2.getConnStrings (switched); // or (ref switched); I get this error: Error 1 An object reference is required for the nonstatic field, method, or property 'tapTCPports_1.Class2.getConnStrings(ref string)' D:\VCsharp_Projects\tapTCPports_1\Form1.cs 1231 21 tapTCPports_1 When I placed the function getConnStrings into the ...Show All
Visual C++ Trivial Properties vs. Block Properties vs. Traditional get() set() methods = Compiler Bug!!!
I already posted this thread but I am not getting any feedback. I would like someone from the C++/CLI development team to take a look at this. I have provided a sample of C++/CLI code and it's equivalent written in C#. This is about as simple a demontration as I can provide so hopefully someone will try this out and at least confirm that this is a compiler bug. I have two classes, class 'A' and class 'B'. Class 'B' derives from class 'A'. They both have the same privately declared (same names and signatures) properties and 'get' and 'set' accessor functions. This is possible because they are PRIVATE. The 'get' and 'set' accessors work fine, the trivial property works fine, but the block property in the derived class causes a compil ...Show All
Windows Forms DataGridView, Transparent Selected row color
Hi, The blue selected row color in a DataGridView hides every other colors a row could have which is very annoying. Is there a way to change the alpha to make it transparent Thanks But this would set the background at all time isn't it What I need is to set the row selection color to semi-transparent, still colored but we see the color under it mixed up with the row selection color so it is still obvious that the row is selected. ...Show All
Smart Device Development need to read my events in wince (readlog, kernel tracker,other tool)
hi ppl ,, Actually i have made an application and logging some events using celog event tracking. oki let me make you understand first.... i have made an application using a C++ dll in C# for window ce device and deployed in WinCE emulator. this application logging event only by using CeLogData(,,,).....it wrks fine but now i need to use read these events back into my application... there are two option what are seems to me in MSDN.. 1) Remote kernel tracker --- but it is not able to connect my emulator i tried it vry hard to connect but no success 2) Readlog.exe - which ask for celog.clg - which is not being created anywhere... i searched it in my PC(celog.clg ) but i did not get anywhere... also i m doing this stu ...Show All
Visual C++ strange error :-S
BITMAP HdcToBitmap(HDC hdcNeedle, int needleWidth, int needleHeight) { HDC memDC_Needle = CreateCompatibleDC(hdcNeedle); HBITMAP memBM_Needle = CreateCompatibleBitmap(hdcNeedle, needleWidth, needleHeight); SelectObject(memDC_Needle, memBM_Needle); BitBlt(memDC_Needle, 0, 0, needleWidth, needleHeight, hdcNeedle, 0, 0, SRCCOPY); BITMAP bmpNeedle; GetObject(memBM_Needle, sizeof(BITMAP), &bmpNeedle); return bmpNeedle; } why do i get this error Error 2 error LNK2028: unresolved token (0A000010) "extern "C" int __stdcall DeleteObject(void *)" ( DeleteObject@@$$J14YGHPAX@Z) referenced in function "private: int __clrcall Testexer::Form1::FindBitmapAt(struct HDC__ *,int,int,struct HDC__ *,int,int,int,int)" ...Show All
SQL Server Union Ordering
Hello, I'm attempting to run three separate queries and have them returned as one recordset. I need to show the top 10 customers based on the number of orders they placed for each of three months, then combine them to give a representation of which customers have been within the monthly top 10 for the overall period of three months. My problem is when I run a count on the number of orders they have placed and order by that count, it is in ascending order which in escence shows me the bottom 10, not the top 10. To resolve this issue, I can specify descending order. This works fine with one query, but when I run all three queries using union statements, I can only have one order by which returns incorrect results. Here is my query. In thi ...Show All
Visual Studio 2008 (Pre-release) The project type is not supported by this installation.
After having installed all the RC1 parts, including "Orcas" and try to create a new project in VisualStudio 2005 (Windows Application, XAML Browser Application or Custom Control Library) I get an error message: "The project file '.....' cannot be opened. The project type is not supported by this installation." I've tried reinstalling everything but it's still giving the same error message. Could it be because I'm running a swedish version of Windows XP Although I haven't had this problem with other releases. Hmmm...this didn't do the trick for me. I was previously running June CTP (with sdk, orcas, etc). I followed all uninstall instructions beforehand, and insta ...Show All
SQL Server Indexed view help needed
I am trying to create an indexed view with the following code, however it fails with the following error : An index cannot be created on the view 'TST_SCH' because the select list of the view contains a non-aggregate expression. - When I remove the case statement it works fine, what can I do to make this work, this is just part of the calculation, I have many such case statements that I will need to use. The column is NON-NUllable in the database - I have verified all columnproperty values in the select statement they are all indexable, the view, when created appears non-indexable, I have been able to create the view WITH SCHEMABINDING, the error occurs when I try to create an index on Column1(CBSA_CODE). I am using SQL Server 2000 e ...Show All
SQL Server Can I access MS Access table in a select query of SQL Server
Is there a way to specify a MS Access table (or query object) in the select query of SQL Server. Ex.: MSAccessTable (in file.mdb) col1 col2 a1 a2 b1 b2 SQL query in SQL Server: SELECT col1, col2 into SqlTable from [file.mdb].MSAccessTable; Thanks, Have a look at OPENROWSET in Books online This is the direct link for your local BOL ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/f47eda43-33aa-454d-840a-bb15a031ca17.htm ...Show All
SQL Server Dynamic MDX Query
I am working on SRS 2005 report and need to calculate measures based on parameters. The new great feature of SRS2005 which allows to use parameters in MDX query unfortunately does not work in inner query. For example I am building 4 time sets based on specified date ranges and then calculate summary for each time set. So query looks like this: With Set [Time1] AS '@ParameterTime1' ... Set [Time4] AS '@ParameterTime4' member [Measures].[Count1] as 'Sum ( { [Time1] } ,[Measures].[Count]) ' ... member [Measures].[Count4] as 'Sum ( { [Time4] } ,[Measures].[Count]) ' Select { [Measures].[Count1, ... , [Measures].[Count4] } on Columns, { ... } on Rows From [Cube] It would be great if we still ...Show All
Smart Device Development Programming for motorola Q phone
Hi All. I cannot find a template in VS.net 2005 for mobile 5 smartphones. Can someone point me in the right direction for developing for a motorola Q phone thnaks You'd need to install Windows Mobile 5.0 For SmartPhone SDK. Download it from Microsoft’s web site. ...Show All
.NET Development DataAdaptor Update() method
Hello, I am facing a problem regard updating data back from a dataset to my data store using SqlDataAdapter. first i wished to perform updates from multiple tables at one call for Update() method but it did not work. Then i made a simple application to Update data of one table. Still i am getting same problem. ( No row is being Updated/Deleted/Inserted ). Here is the code. public void DoUpdate () { DataSet ds; SqlDataAdapter da; this .da = new SqlDataAdapter ( "Select companyName, address from companies; Select sms from Inventories" , @"MyConnectionString" ); this . da . UpdateCommand = new SqlCommand ( "Update Companies set companyName='New Compnay'; Update Inventories set SMS='New ...Show All
