ISP Maker's Q&A profile
Windows Forms Validating Fields
Hi, In my If Then Else Statement as given below which is to validate that no fields is left blank and display message: If txtOrdNo.Text <> "" Or DateTimePicker1.ToString <> "" Or txtCustId.Text <> "" Or ProductId.ToString <> "" Or txtCost.Text <> "" Or txtAdv.Text <> "" Then MsgBox("Welcome to the Jungle") Else MsgBox("Fill up the jungle") End If Welcome To the Jungle is displayed accurately but if one of the fields is left empty then instead of showing the msgbox it co ...Show All
Visual C# :p
[code] [DllImport("user32.dll")] public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo); public const int MOUSEEVENTF_LEFTDOWN = 0x02; public const int MOUSEEVENTF_LEFTUP = 0x04; public const int MOUSEEVENTF_RIGHTDOWN = 0x08; public const int MOUSEEVENTF_RIGHTUP = 0x10; public void LeftClick() { POINTAPI mousexy = new POINTAPI(); GetCursorPos(ref mousexy); mouse_event(MOUSEEVENTF_LEFTDOWN, mousexy.x, mousexy.y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP, mousexy.x, mousexy.y, 0, 0); } publ ...Show All
Visual Studio Crystal Report cross tab
I am working on a crystal report using a cross tab. The problem is that I am trying to show a column regardless if data exist. Example: ColumnA RowA RowB The column is a date range from startdate to enddate Please help ...Show All
SQL Server Converting Integer values to datetimes
We have inherited an appointments database that has a table tblAppointments Within this table there are 2 fields, ApptFrom & ApptTo, these are the appointment start & finish times. My problem is, the values in these fields are held as integers ranging from 0 - 288. I have worked out the scale for the integers, it is based on a 24hr clock with each segment representing 5mins Eg: 0 = 0:00 12 = 1.00 24 = 2.00 36 = 3.00 … ... 288 = 24:00 What I need is a piece of T_SQL that will translate these into times that can be read by a normal user So, say I have a record with an ApptFrom = 36 & ApptTo = 42, ...Show All
Visual Studio VS2005 Crystal report to server
Hi I have created a VS2005 web site with an embedded Crystal report. Works fine locally, but does not work at all when moved to the server. The error marks a line in the config and states it can find Crystal 10 assemblies. That is logical, as the server doesn't have Crystal installed. I read all the doc I could find and eventually created a setup project and took note of the dependencies button that allowed me to select Crystal for .Net (lots of confusion here about whether I needed to use the non-existant merge modules). However, after I installed the solution, the page still wouldn't work. More research, and I eventually found a B ...Show All
Visual C++ Resizing arrays on the free stack
I was wondering wether there is a way to resize arrays on the free stack, whithout having to create a new array of the desired ,size, copying all the values and deleting the old one. I specifically want to delte the first few elements of the array and keep the others. I also want to add elements before the array . For example, if I add 2 elements, I want to be able to access the current [0] as [2], and the 2 new elements as [0] and[1]. Thanks in advance for any help! ...Show All
SQL Server Bug? No WSDL information fo a WEBMETHOD that points to a table-value function
Hello all, I'm trying to create a web service that merely exposes a table value function. I have a dummy function that looks like this (in a DB called ReportingDB): USE [ReportingDB]; DROP function [dbo].[TestFN]; GO CREATE FUNCTION [dbo].[TestFN] () RETURNS @Table_Var TABLE (c1 int, c2 int) AS BEGIN RETURN END; GO My web service definition looks like this: DROP ENDPOINT sql; go CREATE ENDPOINT sql STATE = STARTED AS HTTP( PATH = '/sql', AUTHENTICATION = (INTEGRATED ), PORTS = ( CLEAR ), CLEAR_PORT = 90, SITE = 'mypc' ) FOR SOAP ( WEBMETHOD ...Show All
Software Development for Windows Vista Wait for user manipulation
I want to create a Workflow that have automatic way and a user way. The autimatic way is, for example, for some values (expense values) and the user way is for greater submited values. how can I wait for User intervention, with a listen activity or with other how can I aply the information to the running Workflow tkx in advance Paulo Aboim Pinto Odivelas - Portugal Hey Paulo, There are two main ways for getting information into your workflow. Parameters Events I would recommend using parameters when you need to automatically pass in values and HandleExternalEvent activities for user intervention. I ha ...Show All
Windows Forms Determining Application Startup Form at run time
Anybody know of a pattern for determining the startup form of a .NET application at runtime Since the startup Main method is static, Template Method and other inheritance based patterns are problematic. Have not found any answers via Google either. I've seen the example using a derived class from the ApplicationContext class that allows setting of the MainForm property but that still leaves the "chicken and egg" problem of starting any kind of dynamic mechanism from a static method. Every scenario I've come up with seems to boil down to having to know some concrete class (builder, factory, etc) or the concrete form itself up fro ...Show All
Visual Studio Team System FxCop.chm download not working
I downloaded the 3/15/05 FxCop.chm. It comes up but in the right pane it constantly shows the IE "The page cannot be displayed". What is wrong What do I need to do to make this work Thanks. I developed my own Help project months ago. I tested it and it worked. I just recently came back to test it, and it didn't work. This thread was the problem. I changed MY registry settings to what you said and it fixed it. Thanks so much! Not sure how to intruct a 2000 member customer base how to do the same, though. ...Show All
Visual Studio Team System Review - CCMI Process Improvement
Process Guidance\Supporting Files\Concepts.htm Is "etangible" a new word or just a spelling error Process Guidance\Supporting Files\Tester.htm Second sentence should have “testers” as possessive (tester’s). Process Guidance\Supporting Files\Sponsor.htm Last sentence should have “there” instead of “their”. Process Guidance\Supporting Files\DevelopmentManager.htm Third sentence should have “advocates for” instead of “advocates of”. Process Guidance\Supporting Files\QualityofServiceSpecialist.htm Second to last sentence should have “quality of service” instead of “qualities of service”. ...Show All
Visual Basic Show Menu
Hello I created a menu and I made it invisible. How can popup it in the form. In VB6, I was using: Me.PopupMenu What do I use in VB.NET Thanks for assistance. Maksim Libenson wrote: Hi, You have Show() method for that. Max I don't want this. What I want exactly is: When I click on the notify icon in taskbar by mouse, the menu shows. How can I do it ...Show All
Windows Forms Product Activation Logic
Hi, I had been programming such content in VB for several products using different approaches. Now I will be doing a similar logic in C# for the first time. I just don't want to re-invent the wheel, i.e., if the .NET Framework classes do have some libraries which can help me finish this off the sooner the better. Any suggestions/advises will be greatly appreciated. Nope, no interest in commercial activation products. I want to develop my own (in a short time too). Thanks. Syed Irtaza Ali Check out the Microsoft Shareware Starter Kit - http://blogs.msdn.com/danielfe/archive/2005/07/10/437293.aspx ...Show All
.NET Development How Can i make Sub Classes like Font in a Component
Hello, I want to make a sub Class like Font. This class should only save 3 integers (they seen the border margin). I made a Class and put inside the same Data another Sub class. But i can’t see the subpropertys here as Top, Left, Buttun... in the Designer. Why Here you can see my Code. Class cTitelAbstand ' Eigenschaft Top einbinden Private fTop As Integer Public Property Top() As Integer Get Return fTop End Get Set ( ByVal value As Integer ) fTop = value End Set End Property ' Eigenschaft Buttom einbinden Private fButtom As Integer Public Pr ...Show All
.NET Development oracle database into excel format
Hi, Im trying to build an application where the user would log-in first to check if it's a valid one, then he will choose a table from the database. after choosing what table it is, the application will display the records and columns in excel format. From excel, he can edit or update the data from the database. I don't want to use a browser, this will be a standalone application or a thick client. Is there a excel plugin (free and open source) that I could use thanks Hello mendraz, We do not have an open source Excel plug-in from what I'm aware of. Building this application is possible, but you w ...Show All
