Teymur Hajiyev's Q&A profile
Windows Forms Problem with sequential processing
This is a VB.NET 2.0 question. After a button is clicked on my form, I have a series of subroutines that fire in sequential order ( they are called StepOne(), StepTwo() ... StepNine() ). After each sub completes, a label on the main form should become visible to indicate that step is complete ( lblStep1, lblStep2 ... lblStep9 ). My problem is that the labels are all appearing after the final step is complete, instead of one at a time. I know that most of these steps take enough time that I would see the step labels appear one at a time. Any advice would be helpful (within the 2.0 framework - the project constraints prevent me from using the 3.0 WinWF). Hi jwerner You need to put an Application ...Show All
Visual Basic Bug in String.StartsWith
I am pretty sure I have found a bug in the String.StartsWith-function with text including "aa": "aa".StartsWith("a") = False "maa".StartsWith("ma") = False etc. With other letters it works just fine: "ee".StartsWith("e") = True Hi, Thanks for responses. It turns out it was a culture-thing. Here aa=a, so I had to set StringComparison.InvariantCulture. Then it works correctly. I still find it strange though, because: ae=a, but "ae".StartsWith("a") = True oe=o, but "oe".StartsWith("o") = True I also would think that "aa".StartsWith("a") should return True anyway, especially because "aa".StartsWith("a") is also ...Show All
Visual C++ Using animated GIF image in Forms
Hi, I'm trying to use an animated gif image in a form within C++/CLI but so far without success. I looked at picturebox control but the image stay still, no animation. I browsed the NET to find any clue to my problem and got a few articles stating the fact that I have to make somekind of class that would rather display one at a time each frame found in my GIF. Any clue or easier way, any example on how to do it Thanks in advance, Stephane Not sure what your problem might be, the PictureBox control should work. It could do with the help of ImageAnimator though, check this thread for info.... ...Show All
SharePoint Products and Technologies Publishing Info Path form
Hello, When I am Publishing Info Path form, i publishing wizard step three, There is a option "what do you want to create or modify " Which have three options 1) Document Library 2) Site Content type 3) Administrator- approval form template (Advance) I am getting the following message "Administrator must approve this form template before it can be filled out by using a browser" and getting the "Document Library" and "Site Content type" option disabled and only "Administrator- approval form template (Advance)" option enable Can anyone help me, I want all the option to enabled, what setting i should do in MOSS 2007 or Info Path so that i can create a document libra ...Show All
SQL Server Help with error I'm receiving.
Hi all, I wrote a little application in C# to preview some of my reports (using the ReportViewer control) for users who can then print them out. When I got it all setup, I ran it in debug mode, and it brought up the form with the control, and gave me the error: "client found response type of ", but expected text/xml". I tried searching and found that it seems to be a webservice problem, but I don't know why this could be I'll post the code that I used to populate the control: (should this be in the load event ) private void reportPreview_Load( object sender, EventArgs e) { reportPreview.ProcessingMode = Microsoft.Reporting.WinForms. ProcessingMode .Remote; reportPreview.ServerReport.ReportServerUrl = new Uri ...Show All
Visual Studio Tools for Office open file in another application
I have a VSTO application in excel (document workbook). If I have a excel file open and I want to open my application (double click of my excel file), my application is open is same Excel.Application with first file.. How can make to open my file in another excel application By design, Office applications are designed to open multiple files in the same instance. You could try doing what you describe by using code (VBA would do it) that starts a new instance and loads the document. Example: Dim xlApp as Excel.Application Set xlApp = CreateObject("Excel.Application") xlApp.UserControl = true xlApp.Visible = true xlApp.Workbooks.Open "Drive:\path\workbook.xls" ...Show All
SQL Server CTE Error: Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause,
I am having this error when using execute query for CTE Help will be appriciated As Jens noted, you haven't showed us any code... But I'm betting you just need to use a semicolon before the "WITH": ;WITH myCTE AS ... -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- < dba_sql@discussions.microsoft.com > wrote in message news:35bbde4b-222b-4311-8087-09d80efaa94b@discussions.microsoft.com ... I am having this error when using execute query for CTE Help will be appriciated ...Show All
Software Development for Windows Vista Will the WF release support horizontal sequential workflow layout?
In Beta 2.2 sequential workflows are oriented top down. Is it planned for the release that sequential workflows can be visualized horizontally from left to right Hi Mario, Horizontal layout of sequential workflows is not provided out-of-box. However, if you choose to create your own designer on top of Windows Workflow Foundation (WF) you could control the layout. We may or may not look at this in the future. What is the importance of this for you, and why (Knowing that would help us evaluate and prioritize suggested feature adds/changes correctly.) Thanks, Anna Lidman - MSFT ...Show All
Visual Basic how can i measure an elapsed time in milliseconds?
hi, im a hischool student and i'm doing my project for graduation in visual basic. The program is about a way to measure the reaction time. I want to measure that in milliseconds, but I was only able to measure the elapsed time in seconds. How can I measure the elapsed time in seconds! a lot of thanx rorro Thank you SGBScourge! it was almost what I wanted. I’m going to detail more about my program. It is in VB 6.0. I have 2 command bottons, 1 timer and 1 shape. First you press cmdbotton 1, it makes that the timer begins. After a x time it apears the shape that was hidden. When the shape apears the timer get off. And you have to press cmdbotton 2 so you can see how fast did you react. The time elapse ...Show All
SQL Server Use Variable as Table Name
I am trying to write a stored procedure that accepts a table name as an argument and then displays all of the columns of the table. My code does not work and I don't know why any ideas set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo] . [selectTable] @tableName varchar ( 50 ) AS select * from @tableName ; I get this error: Msg 1087, Level 15, State 2, Procedure selectTable, Line 5 Must declare the table variable "@tableName". Please help. Nitin Khurana wrote: modify these 2 lines... set @sql = 'select @t=max(id) from ' + @tableName ; exec ( @sql ) Here's my new procedure: ...Show All
Visual C# Visual C# 2003 + Framework 2 SDK?
Hi - I hope this is the appropriate forum to post this to... I'm writing an app that is to target framework 2.0. I have an older copy of C# 2003 Standard, and after installing the framework 2 sdk I tried switching the target runtime, but it only lets me change it from 1.0 to 1.1. I have two questions. 1) Is there any way to target framework 2 using the 2003 IDE 2) I have not seen C# 2005 being sold as a standalone product, will I need to purchase the entire Visual Studio in order to only get C# Thanks for your help, Joshua Other than the Express Editions, we do not have standalone versions of Visual Studio for each language. You may want to take a look at the Product Feature Comparison m ...Show All
Visual Studio Crystal Reports: How to make Parameter fields optional
Hi, Im a newbie at both C# and CR10. Im converting a M/F report to CR10, which actually contained 3 different layouts and selection criteria. I've got the selection criteria working except it needs to be optional. How do I make the CR parm fields optional thxs, drc i created a parm field that i loaded from a column w/ discrete/multiple values that the user may select from to filter the report. they should also be able to skip this drop down and include all rows. the dialog box requires an entry in this field. "Please enter a string". i tried modifying the record selection formula but w/no success. thxs for asking drc ...Show All
Visual C# Using User32.dll's InvalidateRect
Unless anybody has a better suggestion, I am trying to redraw a portion of the desktop using InvalidateRect from User32. Basically, I have an image that I am drawing to the desktop, and need to clear where it was just drawn before drawing the next frame. I'm currently failing miserably (i.e. nothing happens) with this code: Rectangle Rect = new Rectangle (GetPosition(), _i.Size); WindowsAPI . RECT lpRect = WindowsAPI . RECT .FromRectangle( Rect ); IntPtr ptrRect = Marshal .AllocHGlobal( Marshal .SizeOf(lpRect)); Marshal .StructureToPtr(lpRect, ptrRect, false ); WindowsAPI .InvalidateRect( WindowsAPI .GetDesktopWindow() , ptrRect, true ); internal class WindowsAPI { [System.Runtime.InteropServices. DllImport ( ...Show All
SQL Server Can two Tables have the same primary key ?
I have been given a project to complete where ... two tables "Flights" and "ScheduledFlights" have a column called "FlightNo" . In both these tables it is mentioned that "FlightNo" is primary key Is this possible i am not talking about foreign key here.... Here is the script that i have created.. create table flights ( FlightNo char(5) constraint FlightNo primary key clustered not null, DepTime char(5) not null, ArrTime char(5) not null, AircraftTypeID char(4) references Aircraft(AircraftTypeID) not null, SectorID Char(5) references Sector(SectorID) not null ) create table ScheduledFlights ( FlightNo char(5) constraint FlightNo2 primary key clustered not null, FlightDate datetime not null, FirstClassSeatsAvailable int not null, B ...Show All
Visual Basic i need to parse a resume which is in .doc format and extract
i need to parse a resume which is in .doc format and extract email id phone no name age dob ect can any one help me You need to add a reference to Microsoft.Office.interop.word, which can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_wrcore/html/wrtskinstallingofficeprimaryinteropassemblies.asp Then try the code...you may have to adjust or use the .sentence. ...Show All
