Rob Weiss's Q&A profile
Windows Forms windows listbox
hi, How do I make one of the items in a windows lisbox to be in a different colour to the rest of the items Thanks You'll need to override the OnDrawItem method in a ListBox-derived class. In there you can change the color. You'll need to actually create a new DrawItemEventArgs instance and copy the settings over because the properties aren't writable but if you then pass the new instance to the base class it'll raise the event There is an example in the MSDN documentation for OnDrawItem on how to do this although it is changing the background color. Michael Taylor - 10/11/05 ...Show All
Visual Basic help with vb.net
i'm currently developing an application that uses vb.net and msde. what i'm trying to do is a simple creation of a table with multiple primary keys...2 to be exact this is the code for it Imports System Imports System.Data Imports System.Data.SqlClient Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim testestr As String Dim reader As Integer Dim testeconn As SqlConnection = New Sq ...Show All
Visual Basic Full Text Search in Visual Basic
I am trying to create a simple full-text search application in Visual Basic (2005 Professional trial version). I have been successful in doing full-text searches within SQL Server Management Studio using SQL queries, so the database has a working catalog, index, etc. Here is a sample SQL query statement that I have used in SQL Server Management Studio: SELECT SectionText FROM Full_Documents WHERE CONTAINS (SectionText, ' "radio" '); This query returned all the rows containing the word “radio” within the SectionText column of the Full_Documents table. I have placed a textbox (SearchT ...Show All
Software Development for Windows Vista Binding in XOML only workflows?
Tom, I have converted a State Workflow to XOML only State workflow. It seems that the HandleExternalEvent activity does not set OrderSender object to a value. As a result sender parameter is null, but the e parameter is not null. This was not the case prior to converting the State workflow to XOML only workflow. Please review the XOML syntax and let me know if the binding syntax for OrderSender is not correct --------------------------------------------------------------------- <ns0:BaseOrderWorkflow EmailCancelledSendEmailActivity_EmailBody="{p1:Null}" GetAddressMainframeActivity_RegionID="{p1:Null}" GetAdd ...Show All
Visual Studio Express Editions How does one run VB
I've just downloaded the software for Visual Basic 2005 Express Edition and the various elements have been loaded into a folder called "Microsoft Visual Studio 8". Fine, now a simple question for you all, how do I RUN this software in order to start programming Regards, Derek hi, from start menu / All programs / visual basic 2005 Express edition when the program run click creat paroject from start page you can also watch those videos as quick start http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx hope this helps ...Show All
Visual Studio 2008 (Pre-release) Type reference cannot find public Type named
Hello! I'm trying the TreeViewDataBinding sample. Unfortunately it throws a BamlParseException having the Message "Type reference cannot find public Type named 'WorldEnglishNewspapers'.". Do some of you know how to overcome that, please Best regards, Henrik Dahl Changing for the way xml monikers are assigned for clr namespaces in the February CTP and rebuilding the solution fixed the problem. Best regards, Henrik Dahl ...Show All
SQL Server Need some advice..kinda urgent!
Ok...so I have installed sql 2005 with the whole nine yards along with it. I also have an installation of sql 2000 along with 2000 reporting services on a seperate server. Finally I also have about 100+ million rows I need to report on it and I need it to look as clean as possible. Regional/Category type of breakdown/drilldown Pivot charts, drop down filtering etc...maybe even some cool .net features.. Obvisouly a template for 2005 is the way to go...but whatever is going to get me up and running with a webbased reporting interface as soon as possible that will do what I need it to do is what I am looking for. ...Show All
SQL Server Copy data from one table to another
On the OLE DB Source, I have as following: select field1 , field2 , field3 from table_source On the OLE DB Destination, I used fast load option with table lock checked, and check constraints to copy data to table_destination. Both table_source and table_destination have the same table definitions. After the dtsx package ran, the number of rows copy over to the destination is not same. I got different results from different runs. This only happens when the source table is over 1 million rows and when I'm copying from the transaction database where user's activities are heavy. Any ideas how I can modify the package so it can copy ...Show All
Visual Basic Application Manifest
Can someone tell me how to change something .application to .exe When I publish my program the files I get are: Neopets Program.application, Neopets Program_1_0_0_0.application, and setup.exe. When I try to run the setup on my computer downstairs, it downloads 2 files then the setup will stop and the program will not be installed. When I try to use either of the .application programs, Windows does not know what to use to open it. ...Show All
Visual C# problem with using dll function and c#
Hey, I have a little problem. I have a function wroted in c++ and compiled to dll. One of the parameters of this function is void*, because it gets different structures, depending on situation. I use memcpy to fill the structure and all is ok. Where is a problem I try use this function in c#. I import DLL, and when I pass the reference to int (c++ reference) into void* parameter it works, but how can I pass into void* reference to any structure. I can't get it's adress. For example (I'm fresh in c#) when I try to declare char* a = new char[25] the compiler returns error of conversion - ok, but If I try char ...Show All
Windows Forms datagrid format
Is it possible to remove the gray blocks that appear on the left hand side of a datagrid when its put on a form On a web app they don't seem to show. Set ColumnHeadersVisible to false. You should better have a look of all the properties exposed by DataGridView and it should save you a lot of time and work. Moreover, you should choose a more relavant group when posting question regarding DataGrid. ...Show All
Visual Basic Shortcut on Desktop
Hi All, I have a problem while creating shortcut in Visual Basic 6.0. The problem is that after creating shortcut on Desktop through VB program, when ever user double clicks (open) it. It opens in same (one) window, but my requirement is that, it should always be open in new blank window for every double click. If any one knows about it please let me know immediately. I will be very thankful to him/her. Kamran Ali ...Show All
SQL Server Stop user access to load the datamart
Hi We are running a pilot with RS 2005 on a datamart. We load the datamart every two weeks after the payrun during work hours. What is the best way to prevent the users from using Report Manager and running reports during the time when we are loading the datamart Thank you. ...Show All
Visual Studio Team System Web Service Unit Tests keep changing web.config
When I try to run my unit tests against a web service, Visual Studio keeps popping up the messagebox telling me web.config has been changed do I want to load the new version. This comes up about half dozen times while trying to run my tests, and even if I keep saying No, sometimes my web.config still appears modified inside VS and I have to manually edit it to remove the extra AppSettings entries. Is there a way to avoid this I'm having the same problem except I actually have my web.config file closed. Has anyone else seen this issue I'm using VS.NET 2005 SP1 (Software Developers Team Edition). I've m ...Show All
Visual Studio Express Editions Methods and Events of Forms, text box controls, etc.
How can I see all available methods & properties of a form or controls on a form such as textboxes within the code window Is there a way In Visual Foxpro, it will show you all available methods and properties within code window. Sorry guys if Im comparing C# with Visual Foxpro, VFP is a Datacentric and RAD tools but I really want to be well versed in C# programming. hi, exposing form objects as public objects you can see and edit from outside of your form is a not good thing to do at least it contradict the OOp's concept of encapsulation so instead of exposing the control itself you can expose the properties that you need using ...Show All
