msebald's Q&A profile
Visual Basic How to retrive from a databbase using vb.net
i want to make a search box and when the user for something i want it to search it the databse and show the resultat. can someone help me how we do this with the code. tanks I have given an example in my code ;-) To me it seems you do not know SQL Server, so I would suggest you learn about it :-) It is mandatory these days to know SQL Server. a SQL Server query is just a query which returns results (for example) with a certain criteria, as I had posted. ...Show All
Visual Studio 2008 (Pre-release) ComboBox custom ControlTemplate
Hi, Just a simple question (I hope). I've created a custom control (below) - basically it's just a TextBox with some extra features, which is displayed in the right hand cell of a grid, with a label in the left hand cell. It all works very nicely, and I thought it would be just as simple to do the same thing with a ComboBox. So I gave it a try, replacing the references to "local:CustomTextBoxBase" in the example below with "ComboBox"... but I'm blowed if I can get it to work - I see the Label, but there is no sign of the ComboBox.... Am I missing something obvious (I expect so.) Any pointers would be much appreciated! <Style x:Key="{x:Type local:CustomTextBox}" TargetType="{x:Type local:Cus ...Show All
Visual Studio Regarding Running totals
Hi All, Is there any samples which shows how can I implement running totals . My requirement is I have to show the percentage of each group's item count data based on parent group's total item counts in local reporting mode. Thanks in advance Philjo ...Show All
Visual Basic Check if remote computer is locked
Is there a way in visual basic to check if a remote computer has been locked Hello there, Can you show me how to do it on VB6 that uses OpenDesktop & SwitchDeskop API methods Or maybe can you give me a link instead as reference Thanks a lot. ...Show All
Windows Live Developer Forums REMOVING BRIGHT ADS LINK ACCOUNT FROM WINDOWS LIVE SPACE
WHAT DO I LOOK FOR ON THE SOURCE CODE PAGE THAT WILL ALERT ME I'M DELETING THE CORRECT TEXT, SO THE BRIGHT ADS LINK ACCOUNT CATEGORY IS CLEARED ATTACHED IS A COPY OF THE SOURCE CODE PAGE TO AID IN DIAGNOSIS. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html xmlns:spaces xmlns:Web class="ClientFramework IE" web:culture="en-US"> <head> <script src='http://spaces.live.com/const.aspx v=2006-10-27_23.09'></script> <title>NJ2CIL's space</title><meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" /><meta name="CODE_LANGUAGE" content="C#" /><meta name="vs_defaultClientScript" ...Show All
Visual Studio Team System Another "Do not expose generic lists" question - ForEach
I understand the thinking behind the rule to not expose List<T>, but I was wondering if there is a recommended way to handle the need for performance. We are exposing generic List<T> in retrieve methods on objects in our business model (using Gentle.NET persistence engine). This is primarily for consumption by our web services layer, which retrieves various objects and populates transport/payload objects for transmission to our smart client. We use anonymous delegates with the .ForEach() method on the List to quickly enumerate the list of objects and then populate serializable dictionaries in the payload object. If I modify the business model objects to expose ICollection<T> for example, we will take a performance hit ...Show All
Visual Basic app.config settings
I have a solution made up of 2 projects; ProjA is a windows forms app, and ProjB is a Data Access DLL. ProjA references ProjB and uses methods and objects from ProjB to get it's data. The connection information for ProjB is defined in an app.config file (within ProjB). When running within VS2005 everything work fine (i.e changes to the settings are reflected in the connection string built and used by ProjB). I now want to do some testing of the application on another machine so have done a build of the solution. The ProjA\bin\release folder contains most of the files that I would expect (including the ProjB.DLL), but there is no ProjB.DLL.config file. However the application runs fine on the other computer! - Where is it getting t ...Show All
Visual Studio Express Editions need features in Advanced
I need some of the features of the advanced install. Ploblem is I already installed the regular version. How do I get those advanced features now I already have db's on it and running Dave I believe you can find all the advanced features on the SQL download page http://msdn.microsoft.com/vstudio/express/sql/download/ You can install the Management Studio and the Reporting services toolkit separately. ...Show All
Visual C++ LNK 2019, inline functions
I made a class in the header file class Foo { public: float area(float x, floaty); }; in the .cpp I tried #include "Foo.h" inline float Foo::area(float x, floaty) { //lot's and lot's and lot's of stuff . . return variable; } and I get... error LNK2019: unresolved external symbol "public: float __thiscall Foo::area(float x, floaty)" If I take away the inline everything works. No, we don't want the code to be in the header. What am I doing wrong ( 2003 .NET) Maybe it's worth adding that VS 2003 & 2005 support what is called "link time code generation". This allows the compiler to inline functions even if you are not using inline and the function is defined in a ...Show All
Software Development for Windows Vista Fetching the Activities information after instantiating workflow
hi i have made a workflow using my various custom activities, after creating the workflow instance for the same, i use WorkflowChanges class to fetch the Information about all activities present in the workflow. Now the problem is, using this method i am able to see only the outermost activities in the workflow(i.e in case i use a sequence activity and put my custom activity in it..i am able to access only the sequence activity..not the custom activity included in it). Suggest me a method as to how can i get info about all the activities in the workflow irrespective of thier location hierarchy My requirement is to fetch all the Custom activities information from the workflow instance without actually starting the workflow. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating A Game Library (Best Practices?)
I've created a 'Windows Game Library' project to act as a re-usable API on which to build my games. It will contain most the basics... Sprite drawing objects, Line drawing, Bitmap Fonts, Input, etc... The thing I'm running into is how best to give my library layer access to all the important details from the game layer. Properties in the GraphicsComponent and Graphics Device are two good examples. Should I design all my objects to take a "Game" object as a parameter and call back using that Is there a better way What are other people doing Thanks. If you are building a "Scene Graph", then usually the objects don't hold any reference to the GraphicsDevice or related components. They are just passed to them in ...Show All
Visual Studio Express Editions i need help on making anti porn programe
hi every body i heared about aprograme called anti *** programe this programe block any such sites when the user try to open it but this programe use very large data base containig this sites iam trying to make programe like this programe but i have diffrent idea i will make the programe chek what has written in the addres bar if the address bar contain any of certain words the intrent explorer open other site or open blank page ..... see you ...... iam waiting for your sweet posts well you can go through each process of IExplorer opened: Process[] theProcesses = System.Diagnostics.Process.GetProcessesByName("iexplore") then for each process, get the Mai ...Show All
Visual C# Strings
how can i be able to take characters off the beginning and end of a string I want to make a scrolling effect. Thanks Steve please do not duplicate post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=710109&SiteID=1 if you need code for C#: string theString = "hello my name is bob"; string theBeginningString = theString.SubString(3); string theEndingString = theString.SubString(2, theString.Length - 4); ...Show All
.NET Development need help in updating records SQLException (.net1.1)
can anyone plz solve this probelm I'm getting this sqlexception at the point where I've written this in comments. I just dont understand. I'm giving this value in the parameters as u can see, its getting the rt value as well. plz help me out with this... thanks /* system.data.sqlclient.sqlException: procedure BillUpdateCommand expects parametre "@Original_BookNo" which was not * supplied. * bla bla blah *line 995 t CREATE PROCEDURE dbo.BankUpdateCommand ( @BankName varchar(50), @Original_BankID numeric, @Original_BankName varchar(50), @BankID numeric ) AS SET NOCOUNT OFF; UPDATE Bank SET BankName = @BankName WHERE (BankID = @Original_BankID) AND (BankName = @Original_BankName); SELECT BankID, BankName FROM B ...Show All
SQL Server [Transfer SQL Server Objects Task] Error: Table "MySchema.MyTableName" does not exist at the source.
Does anyone know what could be causing the error on Transfer SQL Server Objects Task I tried to develope a SSIS project in the Business Intelligence studio to transfer table between databases on the same server. However, I have been getting the following error: [Transfer SQL Server Objects Task] Error: Table "XXXXXX" does not exist at the source. Is there a setting that I need to change to make this work Thank you for your help. Hi, I am also having problems with the "Transfer SQL Server Objects" task. It simply does not work. The editor interface is sweet, however, and looks very promising. My issue is that I cannot debug this task. I cannot see the co ...Show All
