Software Development Network Logo
  • Visual Basic
  • Audio and Video
  • Visual Studio
  • Visual FoxPro
  • Visual C#
  • IE Development
  • VS Team System
  • SharePoint Products
  • Smart Devicet
  • Windows Forms
  • Microsoft ISV
  • Game Technologies
  • Windows Vista
  • Visual C++
  • SQL Server

Software Development Network >> idar's Q&A profile

idar

Member List

JerryCic
SP534
pcompassion
Northern Rob
RostaB
Henry Ong
Krutika
GaryMcC
Robert L. Stinnett
RPalmer
Julian V
gdrivas232096
Coroebus
Snickel65
Paulortrick
Buddhist
K.V.Bharath
Tony P Brightman
Tsur
Jonathan Ward
Only Title

idar's Q&A profile

  • Visual Studio Express Editions Selecting a dataset from user input

    OK. I have an application that needs to look up various data via a dataview based on user selection of a listview and/or combobox. Obviously I can simply hard code the selections. However there has to be a way (I hope) that I can use the selection to form the dataset. For example: Suppose the user selects MachineA in the combobox not MachineB The hardcoded dataview would be Select Case combobox.selecteditem Case = "MachineA" dataview = me.MachineAdataset.table.defaultview IS there not a way to do something like this Dim strng as String = combobox.text dataview = CObj("me." & strng & "dataset.table.defaultview") Thanks. I dont know if th ...Show All

  • Smart Device Development CF1 unable to detect VGA screens?

    I have switched from CF2 to CF1 and the following code System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height produces different values between CF2 and CF1 on PPC VGA emulator. In the CF1, the result is 320, whereas in CF2, the result is 640. Should this be the case You'd need to mark your application as DPI aware so OS won’t do pixel doubling. You would have to handle all resizing. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. My 2D game layer Editor and XNA to PictureBox question

    I started to build my "2D game layer editor", if you want you can see the interface of the application at this link: http://www.tonigreco.it/_XNA_/Editor.jpg The question is: can I draw to PictureBox area using XNA framework And if yes, how Feel free also to post here your general ideas about how to making this kind of editor. Thank you, Toni Here the answer to my question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=728525&SiteID=1 it is possible to use also pictureBox.Handle and it work. Toni ...Show All

  • Gadgets Force user to the Settings UI window

    I have a gadget that requires some user settings before it can function. I'd like to check the settings and if they are blank, say something like "Click here to change settings". Then when the user clicked the link, I would like to open the settings window just as if the user clicked the little wrench icon. Right now all I can do is tell them to click the little wrench thingie and hope that they know that that means. Unless I'm overlooking something in the Sidebar Gadget Object Model , I don't see a function for this. Does one exist It would be nice to have a System.Gadget.Settings.show() function to launch the settings UI. Donavon Sorry, but this is not supported. It's a better user experience to pick ...Show All

  • .NET Development finding out if the computer has an active working Internet connection

    I need help with writing code that finds out if the computer has an active working internet connection so that my program does not throw errors and exceptions when it cant find the internet. My problem is that i do not know where to start. FLAMETHROWER public Boolean ConnectedInternet() { try { WebRequest request = WebRequest.Create("http://www.microsoft.com/"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); if (response.StatusCode = HttpStatusCode.OK) { return true; } else return false; } catch (Exception) { return false; } } Now, form_load: if (ConnectedInternet()) { //do something// } else { //do something// } ...Show All

  • Software Development for Windows Vista What is the difference between WCF's one way operation and .NET 2.0 asynchronous web service call?

    The one way operation is really new to me. Anyway, I don't see the differences from asynchronous web service call in .NET 2.0. 1. If i declare an [OperationContract] method, make it one way, this should be similar to making a regular void web service and then from the client, I call the asyncronous method in the proxy and then in the asyncronous callback I simply leave it blank. What are the differences 2. If i declare an [OperationContract] method, make it one way and then I declare a CallbackContract to send the message back to the client. What is the difference between this scenario and calling an asyncronous method in the web service proxy that returns output 3. Again, for one way methods, because the client does not wait for ...Show All

  • Windows Forms hiding control changed its location

    I have a control added to a groupbox and another control added to the main form which have the same location. The two controls can "alternate", that is, when I click on the first it is hidden and the second is shown and viceversa. The application starts with the second control hidden. My problem is that when the first control is hidden it changes location and the new location is eqaul to the old location plus the size of the second control plus two. What's wrong You can't have a control as a child of a group box have the same location as another control that isn't a child of the group box (e.g. a child of the form). The location is the x and y position of the control relative to it's parent. Mayb ...Show All

  • SQL Server Web Synchronisation Using RMO

    hi every body please help me out on this issue , since i am at final stage in finishing up the module. Previously i had done web synchronisation using RMO it is working fine at my office where i have an 2003 server which is an domain controller , publisher i have configured on the 2003 server , and i had subscribers on xp Machines where it was well working fine, clients were not on the domain , it is an independent Machine. we had an security error which was resolve by this same forum, ie the client windows login id should exists on the server too. only then synchronisation is happening at our office, Now the problem is i have an same setup , but the server 2003 is hosted at a remote place , which is not an domain controller, n ...Show All

  • SQL Server Help with an Outer Join

    Hello I'm tying to create query that selects data from two tables depending on the Employee and the range of dates. I have not used outer joins before and I either receive no data or receive too much data. SELECT qad.NEW_USERS, qad.TRANSACTIONS, CONVERT( VARCHAR, qad.DATA_DATE, 101) DATA_DATE, qas.QA_SCORE FROM QA_SCORES qas FULL OUTER JOIN QA_DATA qad ON (qas.EMPLOYEE_ID = qad.EMPLOYEE_ID AND qas.QA_DATE >= @startDate AND qas.QA_DATE < @endDate) WHERE qad.DATA_DATE >= @startDate AND qad.DATA_DATE < @endDate ORDER BY qad.DATA_DATE Here are the tables: QA_DATA: QA_DATA_ID EMPLOYEE_ID NEW_USERS TRANSACTIONS DATA_DATE 4 11 0 0 12/1/2006 5 11 ...Show All

  • SQL Server RSClientPrint - Printing Issues with page margins and orientation.

    Software used. RSClientPrint object, SQL2005, RS2005, VS2005. I am working on a project with a few hundred reports with varying page margins and orientations. According to the MSDN documentation, the RSClientPrint object retrieves the page margins and layout are from the RDL by default. "You can initialize the Print dialog box with margin and page values of the report. By default , the Print dialog box is initialized with values from the report definition." This doesn't appear to work. I have verified that the RDLs I'm testing with do have the Margin attributes, and the pageheight, pagewidth attributes. Previewing or printing the report show that the margins were not used, and the page height, width didn't set the orientation ...Show All

  • SQL Server ssis designer immediate window

    Where can I find instructions on how to use it Duane Douglas wrote: Where can I find instructions on how to use it Duane, I'm not sure that its got any relevance for SSIS. I'm guessing its just there because its a hangover from the VS shell. Having said that - I can see there being some uses for it if you care to vote and comment: https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=180633 -Jamie ...Show All

  • Visual Basic .net dll used in vb

    many times i used vb dll in .net but i can not used .net dll in vb, one of my collige used .net dll in vb so he face many problem like whenever we give dot it show all properties but in vb it can not show even when i write manually it works, so i can not understand how to used the .net dll in vb application This section of the documentation is a good place to start learning about this. http://msdn2.microsoft.com/en-us/library/zsfww439.aspx The fact that you don't see any members in Intellisense could be because of inproper use of the ClassInterface attribute. http://www.dotnetinterop.com/faq/ q=ClassInterface There are plenty of other articles and books out there. Here are links to some of them http://www.dotnetinterop. ...Show All

  • Visual C# Why do we always use int? Why not short?

    Just curious... Why do we never use short when working with numbers I mean in simple contexts like for instance in a loop, or other i++ situations.  How often do you write a loop that goes more than 32K iterations "32K ought to be enough for anybody"- at least in most situations. I just have a feeling that short would take up less resources/increase performance - but probably so little that it's not worth the strain of typing to letters more (short/int) Is the convenience of typing only 3 letters, the only reason Actually using short can lead to slower code in some situations. The reasons are (the CPU stuff applies only to x86, I don't know exactly what's happening on a x64). a) the " ...Show All

  • SQL Server Copying Database without data

    Hi, Does anyone know, with either the Apr or Jun CTP, how to copy an entire database without the data   I know to use the SSIS wizard to copy tables with data, but there seem to be no option to not copy the data. Thanks. BTW, There are some issues with this task in the June CTP that have recently been fixed and will not be available until the next CTP. This solution will probably not work for you until you can get the version with the fixes. ...Show All

  • Visual Studio Team System Adding custom parameters in Work Item report

    Hi I have added some custom fields in work item "bug" template. <FIELD name="Work Packet Number" refname="Sample.WorkPacketNumber" type="String" reportable="dimension"> </FIELD> The issue is that I wanna rum a report on some particular "work packet number". For e.g: I want to see only those work items that are in "work packet number" = 1221. How can I filter on the custom fields I was expecting that when i go to team project portal>reports>work item>properties>paramters, then i could see this new "work packet number" parameter. But it doesn't show up. Am I missing some step If not, could somebody put together the troubleshooting steps ...Show All

©2008 Software Development Network