ramuty's Q&A profile
Windows Forms Raising events from extern form
Hi there, I'm making a new menu system like the OfiiceXP 2003 menu. So when I click a button, a form (included in the .OCX) pops up and lists different menu-items. On the form there are a couple of labels and shapes etc ... So how to raise ...Show All
Windows Forms How To Call Mdi Function From Dialog Form ?
Hi All , I Want to call to fnUserExist function From the frmLogin dialog form code. This is the code that I have in the mdi form Form frmChildLogin = new frmLogin(); frmChildLogin.ShowDialog(); public bool fnIsUserExist(String sUser , String sPassword) { return true ; } Please Help Thanks. It's Correct, You are OK. Thanks Again David . ...Show All
SQL Server Flat file produced but need line returns
My Integration Services creates a flat file using OLE DB Source and then a Flat File Destination. The flat file is created from data from my data source with is just a table with many rows. Each row in my flat file .txt is appended onto each other, there are no line returns after each record. How can I put in a return after each row in my flat file that is outputted from the Flat File Destination component in conjunction with the ...Show All
Visual Studio Express Editions Is The OOP Microsoft.VisualBasic.IIf Equivalent To the Procedural If Then?
Is the OOP Statement Microsoft.VisualBasic.IIf equivalent To the Procedural Statement If Then Thanks Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As Integer = 0 Dim b As Integer = 1 Dim c As String = "True" Dim d As String = "False" Microsoft.VisualBasic.IIf(a < b, c, d) MessageBox.Show(c) MessageBox.S ...Show All
Visual Studio 2008 (Pre-release) Live cycle of services
Hi, I have a singleton WCF Service hosted on IIS 6, like : [ AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode .Required)] [ ServiceBehavior (InstanceContextMode = InstanceContextMode .Single)] public class MonitorService : IMonitorService { } When IIS will 'close' my service if it is singleton 1) When no have connections 2) When I change the web.config or any dependency file ...Show All
SQL Server SSMS Express: Using PIVOT operator to Create Pivot Table - Error Messages 156 & 207
Hi all, In MyDatabase, I have a TABLE dbo.LabData created by the following SQLQuery.sql: USE MyDatabase GO CREATE TABLE dbo . LabResults ( SampleID int PRIMARY KEY NOT NULL, SampleName varchar ( 25 ) NOT NULL, AnalyteName varchar ( 25 ) NOT NULL, Concentration decimal ( 6.2 ) NULL) GO --Inserting data into a table INSERT dbo . LabResults ( SampleID , SampleName , AnalyteName , Concent ...Show All
Windows Forms Adding a new "blank" record to edit
I have a bunch of controls bound to a dataset. When I bring up existing data and make edits, all is well. But I'm missing the boat completely when it comes to adding a new blank record to be filled in. I try adding a new row,&nb ...Show All
.NET Development PROBLEM UPDATING SQL DB
I am developing a VB.Net web application that handles personnel records. A datagrid of employees matching certain criteria are presented, with a link included in that datagrid. Clicking on the link redirects to another page with detailed info on that employee, all in textboxes and dropdownlists. The user can make changes to the data, and I want to have them click on an "Update" button to update any changes made into the selected row in ...Show All
Software Development for Windows Vista UML WF
This next question is actually outside of this thread but along the same lines. Microsoft has moved away from UML yet many apps in the market were modeled with UML. It seems the workflow in WWF is simular to dynamic diagrams like activity diagrams. Is there any easy or theoretical transform from UML diagrams ( through XMI) to workflow diagrams ..."The design is structured so that it can be easi ...Show All
Windows Forms Keeping Track of Time?
Can anyone help me out with this I am in the process of jumping from VB6 to VB.Net 2005 B2. I can't seem to be able to get this coded properly. I want to have a simple label that will increment time from the moment I press a "Start" button until the moment I press a "Stop" button. The time would be in the following format hh:mm:ss I'm not completely sure of what your intent is here. The totalPauseSpan variable ...Show All
Visual C# Dispose of a generic list
Hi, I have a procedure in witch I create a new generic list of a structure. Example: List<myStruct> = new List<myStruct>(); I add some elements to the list and at the end, I want to dispose of the generic list to free the memory. How do I proceed There is no Dispose() method in a generic list. Thanks! Simply let the variable go out of scope or set the member or static variable to null and the garbage ...Show All
Windows Forms Changing listview cells backcolor...
I have a listview that has 2 columns and 2 rows what I want to be able to do is change the backcolor but just for individual cells. I have used the following code but it does not seem to have any effect, can anyone see why ...Show All
Visual C# C# Immediate window problem
The immediate window in Vs.NET is giving me problems when i use it with C#. Simple example is I have the following line of code in a function String MyString = "abc.doc"; Then I put a breakpoint on it, when i debug the application and it goes into that break, I goto immediate window and type MyString it shows abc.doc but when I want to test for something else like MyString.ToUpper() or MyString.ToUpper() it gives error error: managed ...Show All
Visual Studio Summary question
I have a table in a report with a column in the table called Tax. This is a column that gets its value as the result of an expression; a very icomplicated expression involving an Immediate If statement. At the bottom of the grid I need a field that will give me the Total of the tax column mentioned above. I would have guessed (hoped) I could have simply referenced this tax field and done a sum of it. The table thinks ...Show All
Visual Basic Using PropertyGrid to change My.Setting properties with a Touchscreen
I'm writing a winform app for a machine HMI which has a touchscreen, so there is no keyboard or mouse. I have a form with a number pad on it which I use to edit parameters. I found I can use the My.Setting properties to hold my parameters and change them with a propertygrid. It takes care of binding and updating. I have two problems: 1: I need the Numberpad form to open when I click (touch) on an item in the propertygrid and know whi ...Show All
