PaulMCiti's Q&A profile
Visual C# How to Make Form "Snap" to the Screen Edge of Another Form?
Hi... How to Make Form "Snap" to the Screen Edge of Another Form Is there are way to do it on C# Thanks. Use this code to snap a form to the upper left corner of the main form: Form f1 = new Form (); f1.StartPosition = FormStartPosition .Manual; f1.Location = new Point ( this .Location.X, this .Location.Y); f1.Show( ); ...Show All
SQL Server Some Questions
Hi, What is the differences between Stored Procedure, Function and View What happens to the view when record in the table deleted or inserted Thanks Stored procedure - batch of sql commands compile for reuse Function - sql command object with a very strict set of outputs, either a single scalar value, or a table of values. Much like a function in any language. View - A single select statement predefined for use When rows are deleted they no longer show up just like with any select statement. Nothing tremendously special about views other than having the query pre-written and saved for reuse. ...Show All
Visual Studio New commer getting started with sandcastle
I am new to the developer environment. I have a few questions about using sandcastle. I worked through the example provided at the sandcastle website. To use sandcastle with other files, is the only thing i have to change is the file.cs name What i am trying to say is do i always use comments.xml, relfection.org, etc. for each source code i want to document Won't that make me loose the previous documents I don't know i might be all confused. Could someone just explain how the step by step process goes in documenting a c# file. I have read thru the sandcastle documents but any other info would be greatly appreciated. Thanks in advance Rhonda If you want to do the build manually, you can rep ...Show All
Visual Studio 2008 (Pre-release) DataContext
What is the difference between DataContext="{Binding Source={StaticResource myDataSource}}" and DataContext="{StaticResource myDataSource}" where myDataSource is a DataProvider. You guys are absolutely in the right direction. Drew's comments about the DataContext are 100% correct: Binding a DataContext to an ObjectDataProvider is an extra step that you don't need because the DataProvider typically won't change. Setting the DataContext to the DataProvider directly is the way to go, since it avoids the overhead of having an extra binding. Normally, setting a property to some object or binding a property to an object lead to the same results. The only two exceptions to this rule are DataProviders and Collection ...Show All
Visual C# Why the following condition is never met?
double number1 = 1, number2 = .5; while (number1 > number2) { number1 -= .1; MessageBox.Show(number1.ToString()); if (number1 == number2) MessageBox.Show("condition met"); // <- never } Please help Floating point math isn't 100% precise, especially depending on the granularity of the decimal places or in cases where both numbers vary greatly. In this case, number1 might be 0.5000000000011, which is not exactly equal to number2 (0.5). It's a classic issue with using floats and doubles. So your choices are to avoid using "==" (use some variation of range checking instead), or use a fixed point datatype like decimal instead of a floating point datatype ...Show All
.NET Development Socket listening and Accepting
Hi, I've recently tried experimenting with socket listening but am having a few problems... The code I'm using is the following: Private Sub Socket_ConnectionRequest( ByVal sender As Object , ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles Socket.ConnectionRequest Socket.Close() Socket.Accept(e.requestID) MsgBox( "Accepting connection from: " & Socket.RemoteHostIP) End Sub I'm trying to make it so that every time a user connects, it Accepts their connection, but what's happening now is it is only accepting one connection and denying the others. Is there any way I can fix this Please help! Hello Rustynails , First ...Show All
Windows Forms Combo Box In DataGridView
Hello All, I'm facing some problem while using a combo box in a datagrid view cell. Let me discuss what i'm trying to implement... Suppose i've a datagrid which have some rows. I want that one of the column of that datagrid will be a combo box. But couldn't implement finally as i am very novice in C#. Like, i've 3 columns,like... Booking Id ---- Description ---- Status 1 Test1 "Accept" 2 Test2 "Deny" 3 Test3 "Pending" **** I want that the "Status" column will be a combo box so that i can choose the status("Accept","Deny","Pending" in the above example) from a drop-down list and set ...Show All
Visual Studio Express Editions rss reader
hi, I've been watching lesson 15 now and i'm stuck on this bit, the highlighted bit is the error in vb, does anyone know the solution, i've tried the online help feature but that didn't do it Dim currentchannel As rssDataSet.ChannelRow For Each currentchannel In RSSReader.rssDataSet.Channel .Rows Dim result As arrylist result = RssManager.rssrefresh(currentchannel.URL) Dim currentNewsItem As NewsItem For Each currentNewsItem In result Dim title As String title = currentNewsItem.Title If title.Length >= 50 Then title = title.Substring(0, 49) End If title = title.Replace("'", "") Dim filterexpression As String filterexpression ...Show All
Visual C# Connect to Database...
I have install the Northwind sample database by entering at the DOS prompt osql -E -S (local)\sqlexpress -i instnwnd.sql which runs through lots of numbers so I assume has all gone ok. When in VS I go to "Tools/Connect to Database...", choose "Microsoft SQL Server" and ".NET Framework Data Provider for SQL Server", then in the next dialog there is one server in the combo which I select, but I cannot get any databases to appear in the "Select or enter a database name" combo. I do have SQLExpress installed and the configuration manager is on my Windows Start Menu which shows "SQL Server (SQLExpress)" as running but "SQL Server Browser" is ...Show All
Audio and Video Development Titleset aspect ratio
Hi - long time listener first time caller. I am working on a disc where the main title is 1080p VC1, but some of the extras are 480i and 4x3. I'm afraid I don't have a copy of the spec. Is there a way I can set the aspect ratio for each title in my playlist This should be set in the VTSI file when you build your content. You can set this in the playlist under MediaAttributeList insert something like <VideoAttributeItem index="1" codec="VC1" sampleAspectRatio="4:3" /> However this may not work: as some titles have defective attributes in their playlists, the Xbox player will use the VTSI information in preference to that in the playlist. Of course a few titles have defective VTSI data too, the ...Show All
Connected Services Framework RDF - Profile Manager
Hi, I heard that CSF 3.0 uses RDF to store user profile file rather than Active Directory. Actually what is RDF Physically where it'll be stored Could anyone explain me. Rgs Vasu Hi Bala, Can we able get some samples for defining RDF Schemas to the requirement of stroing user details like First Name, Last Name, Address 1, Address 2 etc. It would be great if you provide us with some information about the SPARQL (Query language for RDF). I could able to get some information about this in http://www.w3.org/TR/rdf-sparql-query/ but when I tried to use same SELECT Query with the CSF Profile store we are getting the exception that "SELECT" keyword is not defined with CSF schema. I even tri ...Show All
Visual Studio Tools for Office Distribution requirements
Once I build an application using VSTO and package it for distribution, what is needed to run the application on the target machine Let me take a guess: 1. VSTO Runtime 2. Office Pro and or a standalone version of Word or Excel 3. Thanks in advance. 1. The .NET Framework version necessary to run your solutions 2. The Office PIAs for (2) in your list above. These won't install by default unless the Framework is already present on the machine. If Office is installed before the Framework, then the PIAs need to be installed explicitly, in an additional step. 3. Depending on how the user has been updating Office and in which version your VSTO solution was developed, it might be neces ...Show All
Visual Studio Express Editions project creation failed
I just got a new laptop with Windows XP Media Center edition on it. After getting rid, stopping, uninstalling, etc, all the extra stuff that the OEM fells compelled to install, I downloaded the VC ISO image and installed Visual C++ 2005 Express Edition - I used all the defaults, so I got MSDN and SQL Server Lite as well. However, when I try and create a new project, I get a dialog box that says "The operation could not completed. The specified module could not be found." This occurs regardless of what template I use - General/Empty or CLR/CLR Empty or any other CLR combo. I've tried re-installing several times with no luck. After searching here, I found a thread that blamed IE7 for this and that Service Pack 1 fixes this problem - I in ...Show All
Microsoft ISV Community Center Forums DLookup help?
Hi there - im building a contact management system and require some help. I have previously had help with VBA in terms of defining what users can and cant do within the system when logging in via a username and password which was incredibly useful. Im now at further along the route and now want to incorporate an activity system that will record all hours that employees will have worked against clients. However we have a lot of clients! The users login name('login_name' which is held in 'tblusers') is also entered into a 'leadofficer' field in 'tblcompany' so that we know which user is responsible for managing that client - this is done through a combo box on the company entry form so it looks up the values from the table 'tblusers'. On th ...Show All
SQL Server Returning Values with 2 different SELECT statements?
Hi there, just want to find out if it's possible to extract 2 different values with 1 select statement I need to extract values from a table, according to a specific condition... eg: to extract values from tableA where "office_name" = "o_id" from tableB, where tableA is the one with the primary key... and then select the office from tableA where the "officeid"=0, and populate that in the same result set... so that it can be populated in a <asp:DropDownList> control, and then be bound to the control based on the DataValueField, and DataTextField is it possible, or not thx SJB Hi, Do you want more than one row, or simply only 1 If you are ok wit ...Show All
