BobH's Q&A profile
Windows Forms how to give value to parameter in a query of dataset in C#.net2005?
I am in C#.net2005 I have a listbox bound to a dataset, in the dataset, I built a new query: SELECT ServiceID, ProductDetails, ServiceNotes, ServiceCharge, DeliveredDate, CustomerName FROM [Freedom Scooter Service Reminder] WHERE CustomerName = "@CNAME" AND DeliveredDate IS NULL in Code, I want to give value to this parameter "@CNAME" , so that the listbox will show the records with given CustomerName. by the way, the value of "@CNAME" I want to get from is comboBoxCusName.SelectedValue.ToString() plz help hi Itzik, all done, it's my first C#.net project, actually the first time I work with C language, the code of ...Show All
Visual C++ Installing msvcr80.dll
Hello, I have installed Visualk Studio 2005 and want to try out some stuff. After writing a simple console application I ahve copied the exe to an other machine, but there is no VisualStudio installed. Copying the msvcr80.dll in the system folder does not work (it works on Windows 2000). I know that i lies now in the winsxs folder so I have tried to copy the whole stuff from this folder, does ot work! I have looked in the merge module and found that the assembly is only used for Winwos VersionNT > 600 Can anyone tell me how to install the DLL Thanks Russell, this thread has nothing to do with WinDoctor - ...Show All
.NET Development uploading images onto an SQL database through ASP page
Laptop Spec: XP Pro Programming languages: ASP.NET, C#, SQL Server sorry again for consecutive posts, I'm new to all of this. I am trying to create an aspx page with a user interface that will allow me to insert an mp3 file onto my database. The code I have currently is: ------------------------------------------------------------------------------------------------------------------------------------------------- <%@ Page Language="C#" Debug="true" %> <%@ import Namespace="System.IO" %> <%@ import Namespace="System.Data.SqlClient" %> <%@ import Name ...Show All
Visual Studio Tools for Office Overriding Word Intrensic Menus & Toolbars is a Non Macro solution possible?
Greetings fellow programers/developers/codemonkeys, I have developed a 2005 vsto template solution. The documents i have created with this solution are complex documents of wordml, xml and other stuff zipped up to a zip file. When a user pressed the new document button on the toolbar i want to fire my own .net code to create a new project of my type inside the thisDocument.vb. I want to cancel the new document functionalty and invoke my own. I know that u can create a macro to do this but i would like to do something like mentioned above. What i tried to do was find the toolbar, find the button i wanted to override and add a hand ...Show All
Windows Forms Owner-drawn TabControl...
Hi, Coders I have very strange problem! I am deriving my own class, inherited from TabControl. I need to make my own painting, so I wrote that: SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); Then proccessing the OnPaint method worked just fine, but when I decided to handle the scrolling of the tab pages I found out th ...Show All
Windows Forms Listview Custom Draw problem
I am trying to use the new DrawColumnHeader event in the listview in .net 2.0 to draw some nice looking column headers when a listview is in details mode. It works okay except I cannot figure out how to draw anything on the "space holder" that appears to the right of the last column when the total width of the column is less than the width of the listview. I have attempted drawing over that space when drawing the last visible column header but it will not allow me to draw past the right side of the column header. Does anyone know how to get around this The DrawColumnHeader event handler only asks ...Show All
Visual C++ How to randomize STL list using std::random_shuffle??
Using Visual Studio 2005. I have the following bit of code which generates a bunch of baloney errors... ideas : #include <stdio.h> #include <list> #include <windows.h> #include "DiskAccess.h" #include "resource.h" #include <algorithm> // by the way somewhere <string> gets included too... don't know if that matters list<MySlide*> slides; // fill the slides up dynamically here list<MySlide*>::iterator begin, end; begin = slides.begin(); end = slides.end(); std::random_shuffle(begin, end); /* shuffle elements */ I get the stupid errors: ERRORS: c:\Program Files\Microsoft Visual Studio 8\VC\include\algor ...Show All
Windows Forms Insttal problems
Hi ! Sorry for my bad english.... I try to install Taskvision sources.... I've got error on install without error message, i'don't know why it does'nt install.... All requirements are ok on my computer... So why you don't simply zip files Thanks in advance Alex I.T. Developper ::nata1 if you want delete this post... sorry ... afraid not. Also, you haven't said ...Show All
Visual Studio Team System TFSSETUP Account Needed After TFS Install?
I have a single server Team Foundation Server installation. When installing I used the suggested account names for the required users (TFSSetup, TFSService, TFSReports). Now that the installation is complete, I find that TFSSetup was made a member of the TFS Licensed Users group, and with a 5 user limit in the group, it is blocking my ability to add a 5th real user. Will I break anything if I remove the TFSSetup user from the licensed users group If I do remove it, is there any time that I might need to put it back in the future Here is a summary of the answer I received in the MSDN Managed forums: MS h ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Updating textures with SetRenderTarget
I'm working on the terrain rendering technique which involves displacement mapping. I have a couple of textures that are, logically, the mip-map of the terrain. Now, I have to update them all, from the biggest to the smallest, and to do so I do the following: device->GetRenderTarget(0, &oldRT); device->GetDepthStencilSurface(&oldDSS); device->BeginScene(); for (i = 0; i < levels - 1; i++) { // // Set the current texture as displacement map device->SetTexture(D3DVERTEXSAMPLER0, level .displacement); // // Set the next texture as render target and the depth surface as NULL device->SetRenderTarget(0, level[i + 1].disp ...Show All
SQL Server Securables for Application Role in Management Studio do not stick
Securables for Application and Database Roles do not show after they have been setup. I do the following: Select an Application Role from Database -> Security -> Roles - Application Roles and select Properties from the context menu Select Securables page Select Add on the Securables panel Select a couple of objects to add Check some Explicit permissions for each securable object added Click on OK No errors are reported I repeat steps 1 and 2 above to view the securables that i have added Both panles are displayed empty What am doing wrong Regards, Joginder Nahil www.starprint2000.com Here is ...Show All
Windows Forms Where do i find my system info?
I want to know how to find the following stats using windows xp: -Processor Bit Rate -Ram Capacity -Hard Disk Space -Video Storage I need to know this to see which games will actually work on my computer. Please and Thank You P.S.- I dont know if this is the correct forum to ask this! Hi, Please post this in Microsoft newsgroups site as this forum is related to programming issues of WinForms. See the below link: http://support.microsoft.com/newsgroups/default.aspx Thank you, Bhanu. ...Show All
.NET Development SmtpClient sends mail more than once
I am using the system.net.mail to send email to one or more recipients. Recipients receive the mail twice. I discovered that the only way that the recipient receives only one time the mail is to play with TimeOut property of the SmtpClient Class When setting this poperty to less than 100 ms, the recipient receives the mail only once. This method works fine in a windows form application, but do not provide the same behavior in an aspx web page. In an aspx web page, the TimeOut must be set to 20ms. But then I discovered that the result depends of the overall CPU charge. However 9 times out of ten an exception is thrown when the ...Show All
.NET Development Remoting Configuration in VS2005
Hi there, I'm trying to configure the remoting services and channels of an application using the app.config file in VS2005. It keeps giving me an error telling me that it... Could not find schema information for the element 'application' as well an error for every other child element under the <system.runtime.remoting> element. Here is the start of the configuration.... < configuration > <!-- Configiration of the Remoting system --> < system.runtime.remoting > < application > < channels > < channel ref = " tcp " port = " 6565 " & ...Show All
Visual Studio Express Editions Variables values
How can i see the variable values while program is running Set a breakpoint in your code, or put them inside a setter method so when they change you can set their value on a control somewhere. ...Show All
