Answer Questions
emcee Formatting text with different fonts in DataGridView text cell
Hi I have a column in a DatagridView which contains text. Is there anyway to get different parts of the text to display in different fonts. I know I could do this with custom painting but I want this particular column to set the height of each row using AutoSizeRowsMode which is proving difficult manually with custom painting. I was hoping there was a way maybe with OnCellFormatting to be able to set different parts of the text displayed to use different fonts. What I am trying to achive one way or another is a text column, the height of the text in this colum determines the row height for each row and the some lines of the text are displayed in bolld/underline, some in bold and some with neither such as Line 1 Line 2 L ...Show All
Dustin_H drag n drop into Webbrowser control
I have webbrowser control on the form and now I want to give drag and drop functionality into web browser from windows form. Basically I want to drag text from Windows Control into webbrowser's document object's htmlElement control. Any suggestion would be appreciated Cheers, kahn i too have a similar situation. I see how to call script code from application code, and I see how to call application code from script code. What I dont see is a way to intercept the drop event on the webbrowser control. anyone ...Show All
Hilton Goldstein Problem with sequential processing
This is a VB.NET 2.0 question. After a button is clicked on my form, I have a series of subroutines that fire in sequential order ( they are called StepOne(), StepTwo() ... StepNine() ). After each sub completes, a label on the main form should become visible to indicate that step is complete ( lblStep1, lblStep2 ... lblStep9 ). My problem is that the labels are all appearing after the final step is complete, instead of one at a time. I know that most of these steps take enough time that I would see the step labels appear one at a time. Any advice would be helpful (within the 2.0 framework - the project constraints prevent me from using the 3.0 WinWF). Hi jwerner You need to put an Applicatio ...Show All
Alan Jr set databinding to nothing
Hey guys, I was wondering if there is anyway that I can cause my databound fields to be empty on startup. Currently they display the data from the first record but if possible i would like them to stay blank until i actually select the record to view(I have a treelist of to the side that allows me to select records). Any help would be appreciated. Thanks in Advance Hi, If you're binding through BindingSource control, you can try calling its SuspendBinding() method to suspend binding (bound controls won't display data values). Call ResumeBinding() to resume binding (after a selection in the treeview is done). Andrej ...Show All
Tom_Liu Streaming Web Cam to Media Server
How i can send the video from a web cam to Media Server, for acces by a url Thanks you may want to use WME (Windows Media Encoder) to do media streaming. ...Show All
Atul Kulkarni Why does the ClickOnce 'Install' button generate an xml page instead of starting download?
Hello, I just published my application for ClickOnce deployment to my web site. When I click on the Install button on the publish\publish.htm page on my website, the browser returns the contents of an xml file and does not start the download. Does anyone know what might be causing this Any help or suggestions would be greatly appreciated. Thanks! Jason I have the exact same problem, on my pc running vista it works perfectly but on xp using IE 6 it doesn't work and i had it test on a few other people's computer they have the same problem they get the xml also the webhost have the mime types set and the dfshim.dll is also working as it should so it's strange, i hope somehow there will be a solutio ...Show All
MillBear Reading Installer Public Properties from a file.
We create Windows Installers using Visual Studio Deployment projects. In out Continuous Integration environment, we do a silent install of the newly created installer, as follows - >> msiexec /i /passive myinstaller.msi USERNAME="foo" DBSTRING="mydb" However, what we want to do is this - >> msiexec /i /passive myinstaller.msi PROPERTY_FILE="myprops.txt" Where, the property file contains the properties we would have been passing from the commandline, i.e., >> type myprops.txt USERNAME="foo" DBSTRING="mydb" After reading a post and this article , this is what I understand - I can create a custom action that reads the file, and creates ...Show All
Moim Hossain Sample applications list
Hi, I am trying hard to learn developing database applications with visual basic 2005 and ms access. Can any one please tell me where can I find tutorials on this topics, and get some practical sample applications Regards Kapalic Yes See this tutorial video . and this sample: Data Access using MSAccess ...Show All
Majid.vagheeian How Do I Display a "Name" Using a "NameID" in a DatagridTextboxColumn
Using a datagrid with a "Name" column and a "ID" column I'm using a DatagridComboboxColumn and I have it set to a DataSource, the problem is I want to display a "Name" using the "ID" in the same row and be able to change the "ID" in the row while displaying only the name. and here is an online convert web for c# and VB for you :) http://www.kamalpatel.net/ConvertCSharp2VB.aspx best regards! Thanks zbo, but would it be posible for you to do it in visual basic, I don't know c# yet. Private TBC As Table_AB = New Table_AB() Private TA As DataTable Private TB As DataTable Private Sub New_Load(ByVal sender As ...Show All
Fernando Simonazzi Have problem when add MSTSCLib in ClickOnce, fine under 2003, but not XP/SP2, please help
I need use Microsoft Terminal Services Active Client control in my app. Two files will be deployed: AxMSTSCLIB and MSTSCLIB it works fine under window 2003 and window Vista, but under XP/SP2, I get this error: ERROR DETAILS Following errors were detected during this operation. * [10/27/2006 2:04:07 AM] System.Deployment.Application.InvalidDeploymentException (ManifestParse) - Exception reading manifest from http://mydomain/VirtualClass_1_0_0_47/VirtualClass.exe.manifest : the manifest may not be valid or the file could not be opened. - Source: System.Deployment - Stack trace: at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri) at System.Deployment.Applicatio ...Show All
vpitts About a button menu
Hi! In the toolbox theres something called "TabControl" if you choose that tool you'll get a menu with tabs, and each tab got their own page. And now here's the problem; I want to make a similar as the TabControl but instead of tabs using Buttons. So imagine i got a menu with buttons and each button got their own page. Just like this, the buttons is a menu, press one button and it shows some data: http://www.thrinker.net/button1.png and press another and it shows some other data: http://www.thrinker.net/button2.png how can i make it like that using many forms thanks! herman Hi and Thanks! I will take a look on all three sugestions. But here's another one for you, how do you make a popup Li ...Show All
22DoorsDown listbox string justification
Hi all, i have a list box ito which i am entering Strings. I want all strings to be the same length, padded with spaces and then two characters on the end, so that all strings take up the full width of the listbox i.e. today /t yesterday /y next week /n however i try to do this I get today /t yesterday /y next week /n any ideas how I can do this. In a word document I would justify the text. How can i do this programatically. If it were up to me, I'd write my own listbox - it's pretty easy to do. Then you can draw your text any way you want to. You can draw two strings for each item, and justify the second part to the right. Otherwise, getting ...Show All
Adarsh123 Help: Multiple forms vs MDI Application in VS 2005 express
I'm a bit confused. I'd like to use different windows forms to show different views of a database. Would I use an MDI application, or many (main) forms in a "normal" windows application I assume that having many windows, means that one has to be displayed from another or from menu. Therefore many forms must be able to be open at the same time. Will that work The other benefit to MDI is that all of the other forms will be "within" the MDI parent. This allows the end user to minimize all app forms just by minimizing the MDI parent. However before you that, you might want to rethink your UI design approach. Remember, that even if you can display many w ...Show All
Jan Kučera How to know which item in ListBox is slected?
thak you you may use the ListBox.SelectedItem to retreive the currently selected item. //Jocke Hi, accessing ListBox's SelectedItem will return the currently selected item. There's also SelectedIndex, which will return the list index of currently selected item. If it returns -1, no item is selected. Andrej ListBox1.SelectedItem.ToString() this will return the selected item in the list box. You can use the ListBox.SelectedItem property to retrieve the selected item. This is null when no item was selected. Here is a little example: private void button1_Click( object sender, EventArgs e) { object selectedItem = listBox1.SelectedItem ...Show All
yanivpinhas System.UriFormatException Problem
Hi folks. I'm having a problem with a line of code that's throwing the above exception (System.UriFormatException) in my Windows Form application (VS 2005, C++): spToolClick = gcnew SoundPlayer( "toolclick.wav" ); The spToolClick object is a member of the Form1 class. If I comment this line, the application stops throwing the exception. If I leave it in, the app throws the exception, but continues to run - and is nevertheless able to later play the sound that I reference ("toolclick.wav"). The exception is only visible in the debug output of Visual Studio. Even though the exception seems harmless, I'm just wondering what is causing it & what I should do about it Zero & ...Show All
