sandyrae's Q&A profile
Visual C# What does the ? mean in C#
I know this is saying role not equa TO an empty string and roleUp not sequal to an empty string but where does the question mark come in Any help on where I should go with this...... (role != string .Empty && roleUp != string .Empty ", " : "") The question mark is what is known as the ternary operator. It is a shorthand notation for If <condition> then <expression 1> else <expression 2> and has the form <condition> <expression 1> : <expression 2> and is usually used in conjuction with an assignment statement. Your statement will evaluate to a comma when both role and roleUp are not empty otherwise it will evaluate to an empty st ...Show All
Visual Studio Express Editions Multiline Labels?
Hello All, I've been trying to make multiline labels. That's not possible through code That dissapoints me. Keehun Knvb1123, Here is another suggestion on how to achieve multiline labels. Instead of sprinkling the text with vbCrLf characters, I found that if I set the label's MaximumSize property to the size of the label, the text will line-wrap within the label. The AutoSize property must also be set to True. I found that it is easier than playing with where to insert the vbCrLf characters. Best of luck. ...Show All
Visual C++ about perl or C
hello friends, i have learnt C & have done it intensely for 2 months. still i think that all the ins & outs of the language is not known to me. the courses we do here are just the commands we use regularly. i am not at all satisfied with my learning of the language. so kindly refer me or help me understand the ins & outs of the languages like C or perl. free links may help a lot. plz help me. Do you have a specific question It is difficult to think about specific things to say. It depends a lot on what you need to do. Is there a library you can go to for a book Can you buy a book ...Show All
Internet Explorer Development problem with IE7 - links suppose to open in the same page but it opens a new page in my website
Hi i'm designing this website using dreamweaver 8, i used frameset method to devide the page into 3 frames top frame which contains the flash navigation menu, left frame which contains ads , right/content frame which contains the content of the website. when the user click any of the links on the menu it should be opened in the content frame , it worked fine in IE6 , but when i upgraded to IE7 things changed every link now opens in a new page! this is the flash code i'm using in each link getURL("../services_en/services_en.html" , "content"); content is the name of the frame that i wish all the links appear in. i've tried the <base target="content"> included in the head tag of the menu page but that d ...Show All
Visual C# C# webcam
Hello, Can someone suggest me how to get control of the USB logitech webcam using .NET 2005 C#. I tried using WIA and I can capture images but I dont like the device selection window that pops up when we use ShowSelectDevice. I've learned that avicap32.dll and platform invoke can also be used but I dont understand anything when I look at the codes online. Is there any good tutorial or any starting point I should follow. Or any other approach to interface with the webcam using C#. Thank You. Here's another c# sample that uses avicap: http://www.timvw.be/wp-content/code/csharp/testavicap32.zi p ...Show All
Windows Live Developer Forums IncomingTextMessage does not fire in vb.net
Hi, I'd like to code a plugin for Windows Live Messenger in vb.net. My problem is that the IncomingTextMessage does not fire. A piece of code is given below. The compilation is ok and WLM seems to initialized the addin correctly. But when I receive a message from a contact, nothing. On the other hand, I get the "outgoing event ok" msgbox when I reply . I used Visual Studio 2005 Express edition and WLM v8.1.0178. If anyone could help, I will be very grateful. Imports Microsoft.Messenger Public Class MSNAddin Implements IMessengerAddIn Private WithEvents m_client As MessengerClient Public Sub Initialize( ByVal messenger As Microsoft.Messenger.MessengerClient) Implements Microsoft.Messeng ...Show All
SQL Server Error when attempting to backup to a second disk file
In SQL Server 2005, via the GUI, I wish to backup a database to an additional disk file (there is already an existing backup disk file for this database), so that I can have more than one backup. I've added the new disk file name, highlighted it, and clicked OK. I get an immediate error (see below). Note, the 2nd error message is specifying the existing backup disk file, not the new one I'm attempting to create. "Backup failed for Server 'WCS-DEV-TPA'. (Microsoft.SqlServer.Smo)" "System.Data.SqlClient.SqlError: The volume on device 'D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\WCS_ADV_Longmont.bak' is not part of a multiple family media set. BACKUP WITH FORMAT can be used to form a new media set. (Microsoft.S ...Show All
Software Development for Windows Vista No audio - using USB TV tuner and ms video control.
My development environment, OS: WinXP Professional (SP2) TV Tuner: PCTV Pro USB Direct show sample: Samples\C++\DirectShow\VideoControl\HTML\viewtv.htm Once after installing neccessary drivers, a new audio mixer device in the name of "PCTV usb2 2821 audio" installed under category "sound recording" of my system. After installation i ran the sample html page, but ms video control delivers video output without audio. I tried retrieving name & audio renderers device available in the system using below mentioned property and method of ms video control, got following output, #1. MSVidCtl.AudioRendererActive.Name - Output: audio renderer #2. MSVidCtl.AudioRenderersAvailable.Count - Output: 1 How to set audio render as "PCTV u ...Show All
Visual Studio .NET 1.1 project under VS.net 2005 IDE
I was wondering if there is a way (with or without an extension) to develop a .NET 1.1 project under VS.net 2005's IDE. Thanks ...Show All
SQL Server Return empty rows for not existing data - possible?
Can you help me solve this problem, please. The main table t0 seems not to be relevant here but contains all the unique information to an article. Each article can have many ingedients and several other 1:n related things. The one I have difficulties right now is t1 (analyse). Each article can have entries for 0 to 15 types of analyses that are stored in t2. Now I need a web entry form that lists all types of analyses with either the existing values or empty fields. It's no problem for me (althouh not very nice) to store empty values on save but I need to show the form even for new articles or existing artices that have no entries yet for analyse. I tried something like this: SELECT t1.id, t1.analyseid, t1.analysetyp, ...Show All
.NET Development Parameter lost in DeleteCommand of SqlDataSource control
I have an web application in .NET2.0 using GridView bound to a SqlDataSource control, and I use StoredProcedures for the Select,Update and Delete commands. It’s working fine for the Select and Update commands even with parameters, but for the DeleteCommand, the parameter is lost. Here’s the code: protected void GridView2_RowDeleting( object sender, GridViewDeleteEventArgs e) { SqlDataSource2.DeleteParameters.Clear(); SqlDataSource2.DeleteCommandType = SqlDataSourceCommandType .StoredProcedure; SqlDataSource2.DeleteCommand = "dbo.DeleteData" ; SqlDataSource2.DeleteParameters.Add( "ID" , GridView2.Rows[e.RowIndex].Cells[1].Text); // or SqlDataSource2.Del ...Show All
Visual Studio ReportViewer HyperLinkTarget property problem
I am running a locally processed report in Asp.net The report has a textbox with a hyperlink property. In the report viewer control I have set the HyperLink target to "_Blank". When I look at the resultant page everything works fine for the first page. If the user clicks on the hyperlink another browser window opens. Unfortunately, if the user selects the next page in the report, the Hyperlink target functionality doesn't work. Clicking on the link results in the clicked link displaying within the report viewer frame. Looking at the page source for page one the A tag is correct. for page two the A tag is missing the target=_blank Any suggestions The problem is with the report viewer controls ...Show All
Visual Studio 2008 (Pre-release) Syntax for Binding Attached Properties
Hi, I am trying to bind an attached property to another dependency property. I believe I can do something like this, but I'm not sure what the right syntax is: < ScrollViewer Name = " scvPageViewer " HorizontalScrollBarVisibility = " Auto " VerticalScrollBarVisibility = " Auto " > < Grid x:Name = " PageSizer " > < local:BrickPanel x:Name = " LayoutPanel " /> < local:BrickPanel Orientation = " Vertical " HorizontalAlignment = " Left " VerticalAlignment = " Top " Background = " Gray " > < local:PriorityOffsetPanel local:BrickPanel.Offset = " {Binding RelativeSource={Relat ...Show All
Windows Networking Development Vista RTM can't open new socket.
Started here . Due to (stupid) limitation in TCP/IP driver (10 half-open connection) sometimes Vista loosing ability to access an internet (open new socket for communication). It happens when user uses P2P applications (BitTorrent, eMule). But in could be caused even by too busy IIS. BUT all existing internet-connected programs (WLM, Skype) are running. PC even is accessible via RDP. No any entries in EventLog relating to any problem with sockets. "Event 4226" appears in absolutely different time, not in time when connection was blocked. Only reboot or (sometimes) "Network Connections" (and ICS) service restart can help to revive network back to live. This problem is accepted by many people (see post on Channel9). Any settings in registry ...Show All
Visual C++ Cannot convert type String^?
Hello, I'm trying to do something that is actually very basic. I simply want to take a string and convert it to type int so that I may use it in my calculations. The code is: hours = int(lblpaycheck->Text); I apologize if its a completely obvious question, I originally learned to program in Visual Basic and I am currently a beginner in C++ and Java. Any help is really appreciated. ...Show All
