Doddsy's Q&A profile
Smart Device Development Change font in ListBox
I want to have different style of font in ListBox like italic, bold and normal. How do I do that in .net CF Hi Tan, what you're looking for is an owner-drawn ListBox. That could be done with the DrawMode property: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listbox.drawmode.aspx Unfortunately this property is not supported in the Compact Framework, so a solution could be writing your own Custom Control implementing a list of items, each with its own Font. Gian Paolo Costantino ...Show All
Windows Live Developer Forums onClick GeoRSS
I am trying to use multiple GeoRSS files to create a map that turns groups of points on and off using check boxes. I have had a tough time getting this to work and was hoping some could help out. Anyones help would be greatly appriciated! my code so far: map.onLoadMap = AddMyLayer1(); to the GetMap function but am finding it does not load the layer and thus i can still not turn the layer on and off. Anythoughts <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> var map = null; var layerid=1; ...Show All
Smart Device Development Compact Framework 1.0 MD5 hash
Is there any way to get an MD5 File hash using C# or C++ on a device that has compact framework 1.0 OpenNETCF is unfortunately not a possibility, Joshua Take a look at this article and the downloadable code related to it. ...Show All
SQL Server Running out of disk space during SSIS package execution
Hi all, I'm running out of disk space when running SSIS package. Is there any way to select where temp files are saved during package execution Carl & Darren thanks for your answers ! Switching to Partial cache & setting a maximum amount of memory used for the cache has solved the problem. Sebastien ...Show All
Windows Live Developer Forums Web Services
Hello guys, and gals its another day another doller, I hope. Todays question is about web services. In my gandering around the MSDN forums I keep comming accross web services. These nifty little bouts of code allow you to access a function from a webpage that is not normaly available. Thats a great thing and like the Live Search, Custom Domains and a few other's on live.com it can be really handy. Does the Live Web Messenger at http://webmessenger.msn.com/ have a web sevice My current project is going in the direction of a a stand alone web service client! By using Live ID, my client is hopeing to authenticate the user (his employees), then the user will be able to access alot of diffrent online functions which will configure the applicati ...Show All
Visual Studio MRefBuilder Index Out of Range Error when documenting internals
When I turn on the documentation of internals I receive an IndexOutofRange error in the MRefBuilder. When internals are turned off all works fine. Any ideas Olaf, This appears to be a bug in MrefBuilder. I am going to Debug and will provide a fix and also an explanation after I found out what the issue. Thanks for pointing this out. Anand.. ...Show All
Visual Basic Need to bold a single word in a text box...
Is it possible to make a single word in a text box bold. See the below code. Do While inc <> maxrows - 1 inc = inc + 1 cbofarmsel.Items.Add(Trim(ds.Tables( "zdchostnam" ).Rows(inc).Item(1)) & " ,(" & Trim(ds.Tables( "zdchostnam" ).Rows(inc).Item(0)) & ")" ) Loop This snippit of code is to populate a dropdown list with the items gathered from a SQL database.. That portion is working fine what I want to do is make the first item in the list bold. So it would look like Farm1 (Server1) Farm2 (Server2) ect...... Any help would be great. Thanks in advance You can do this. You just have to handle all the d ...Show All
Visual Basic Problems searching a database using vb6
Hi I'm having problems with this code for a search button but it keeps giving me a Data type mismatch in criteria expression error. The error comes in this part of the code 'RS.Open strSQL, cn, adOpenKeyset, adLockPessimistic, adCmdText' Can anyone help me with it Thanks Private Sub cmdSearch_Click() Dim strSQL As String strSQL = "SELECT * FROM cdtable" If txtSearch.Text <> "" Then strSQL = strSQL & " WHERE BandArtist = " & Val(txtSearch.Text) End If RS.Close RS.Open strSQL, cn, adOpenKeyset, adLockPessimistic, adCmdText bandartisttext.Text = "" & RS!BandArtist albumnametext.Text = "" & RS!Album genretext.Text = "" & RS!Genre advisorycombo.Text = & ...Show All
Visual C++ set<String> in Visual C++ .NET
How do you use a set of Strings If I say set<String> *st; String *s = S"FOO"; st->insert(*s); I get an "illegal use of managed type" message. thanks As Jonathan said, you can't use std::set as a container of the managed type System::String. There is no "set" in the .NET framework, but there is a collection, and Jonathan points you in the right direction. There happens to be a predefined collection that can be used for strings (but for other types you would use a Dictionary). Example code below: In C++/CLI (VS 2005), you cannot declare a pointer to a managed type, but you can declare a handle. String* should be String^. ...Show All
Visual Basic Login was modified/seems to have interfered with VB/SQL Server 2005 communication
Hi, While working a project, my domain profile was moved from Administrators to Users and back to Administrators. This seems to have caused problems with Visual Basic Express communicating with SQL Server Express. Whenever I try to open a connection through VB, the login fails and says that it "Cannot open user default database." This was working before the changes to our domain . Here's my connection string: strconn = "Data Source=.\SQLEXPRESS;AttachDbFilename=" & _ "'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\OpsData.mdf'" & _ ";Integrated Security=True;;Connect Timeout=30;User Instance=True" I am able to get into SQL Server through the Management Studio, and can see ...Show All
.NET Development Editor attribute in plugin
I have a scenario something like this: ApplicationDir --bin ----Application.exe --Plugins ----MyControl.dll ----CustomProperties.dll The main application is like a placeholder for controls. It searches the Plugins folder for dll's that contains types that derives from System.Windows.Forms.Control. When a control is found it is added and shown in the main application. When a control is selected in the main application all it's properties are shown in a property grid. The properties can also be edited. So, MyControl.dll contains a control which exposes a property of type TimeInterval. The TimeInterval class is defined in CustomProperties.dll and have an editor attribute on itself, so that a custom editor can be used to edit that property. [E ...Show All
Visual Studio Express Editions How do I send Email to more than one person?...Help needed
Greetings All, Would someone be able to help with what I'm doing wrong....I just don't know how to proceed. Basically all I want to do is send an email to more than one person, I have tried to change some code found in this forum, I believe I need to use 'MailAddressCollection' but I don't know how to apply its use: My code to-date is as follows, and the line I come unstuck on is: Dim message As MailAddress = New MailAddress( "from@gmail.com" , toAddresses) with a message "Value of type'System.Net.Mail.mailAddressCollection' cannot be converted to 'String' But then again it could be the whole coding. :-( Thanks in advance CODING Dim msg As MailMessage msg = New MailMessage() Dim ...Show All
Windows Forms Is there an alternative way to use large datagridviews?
Hi. I was wondering if there's a way to utilize the DataGridView and to display a large dataset on screen. The problem is that my program has to work with a transposed dataset, so the datarows are vertical. I got a nice function from The CodeProject which takes a DataSet and returns a new Dataset where the rows/columns swap roles. It is great, but I have a little bit of a dilemma. The DataGridView component in .NET2.0 (i'm using VS2005 pro/C# by the way) has a limitation of not coping with a large number of columns (655 is it's limitation due to something called the FillWeight - which I've had no luck modifying or understanding). I've had an idea, but not sure whether it will work. If someone can study this and liaise with me ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture.IsDisposed
I noticed that the Texture class has a Dispose() method, but no IsDisposed property to go along with it. Is this purposeful Is there another way to tell if a texture has been released Texture is an abstract class. All of the concrete subclasses of Texture contain an IsDisposed property, including the most commonly used Texture2D. (but yes, they should include an abstract IsDisposed property on this class.) ...Show All
.NET Development Countdown Timer
I can't figure out how to make a timer countdown rather than counting up, I know that it has to do with System::DateTime::Subtract. I have a DateTimePicker, and I want the timer to start right when you change the value of the DateTimePicker, and I want the countdown to be counting down from the value I choose. For example if I choose August 14, 2006 on the dateTimePicker, I want the timer to be counting down from that date. Try this: System::TimeSpan diff = System::DateTime::Now.Subtract(dateTimePicker1->Value); label2->Text = diff.ToString(); You probably want to format it a little nicer, I'm sure you can figure that out... ...Show All
