killfr0g's Q&A profile
Visual Basic User Control problem
I have a UserControl which basically shows in a textbox the content of a row in a table relationally linked to another table in a database and also a combobox containing the contents of that second table. This mean that as you travel through the main table you can see what the linked text entries are and have a combobox when entering a new record. I started the table in VB.NET 2002 and upgraded it to VB2005 Express and have been using it successfully for some months.So, it has saved considerable code and added to my VB skills. However, having recently discovered the MaxDropDown size property for the combobox I wanted to add a line to the UserControl to fix the MaxDropDown size to be the size of the records in the table it accesses. T ...Show All
Smart Device Development Displaying Chinese Characters on English OS pocket PC
Hi, I am usnig Visual Studio .NET 2005 and making a C# application running on Casio Pocket PC CE.NET 4.2 English Version. The Pocket PC can display Chinese Characters. But how do I program such that my C# device application can display the chinese characters on my GUI Form Some sample source code will be greatly appreciated. Urgent. Please enlighten me. Thanks Yes, it would be fruitless unless you're using localized device with proper fonts on it. Most English devices come with European and Cyrillic fonts, but not complex fonts like Chinese. Please purchase device which is localized in Chinese to display Chinese. Localized emulator images are available for testing: http://www.micr ...Show All
Audio and Video Development XPath - selecting an element by index
Seemingly this should be a valid XPath select for a <cue> or <par> -- why does it's inclusion cause iHDSim to report an "Unknown Exception" //div[@id=$chapter]/button[1] This should identify a specific <div> (using an XPathVariable set in script), and get the first button it contains. In fact it seems that the bracketed subscript notation doesn't work at all... Your question as I understand it is "how to select and element by index ", so why not just go straight to the button with "id('button_id')[state]" Is this a case where buttons under different divs share ids Otherwise I don't see why you need to handle div selection in the script. Right ...Show All
Windows Live Developer Forums Live.com Undocumented effects
I have been trying for ages for get images to show up in my RSS feed for IE7 but thats another story. Turns out <![CDATA[]]> is your friend an i guess IE had a look in those tags anyway and rendered them as HTML content. However i noticed a lovely effect on live.com where by live.com generates a nice animated slideshow of all images in my CDATA tags nicely formated next to the rss feed content titles. As far as i am aware there is not documentation outlining this effect, i am not displeased however i would live to know how is possible i can edit the size of the slideshow perhaps... its a bit small. You can test with my rss feed http://www.originsinfo.com/Content/Rss/research.xml kind regards, Wow old post that ...Show All
Internet Explorer Development IE7 embedded webbrowser control and SWF/PDF files
My app embeds a webbrowser control. One issue I notice after installing IE7 is that if I browse directly to a SWF or PDF in the webbrowser control, the page is blank. If I browse to an html page that embeds a SWF, it works fine. Browsing directly to a SWF or PDF in my embedded webbrowser control works fine in IE6. Am I missing a flag/setting when creating my webbrowser control BTW - I'm using WinXP SP2. If I browse to the SWF or PDF in standalone IE7, it works fine. Jake- A KB article is coming out shortly about this issue. However, here's the short version: This error is occurring because of an unforeseen dependency between an IE6 XPSP2 security feature ( Local Machine Zone Lockdown ...Show All
SQL Server Hard Coded parameters
Is it possible to force parameters into the reports so enabling me to force a user id value into every report that is picked up from the list. The user ID is a system value and I don't want end users having any knowledge of it Cheers Darren Hi Jarret, I think this may be the answer, I need to provide a list of published reports , how would we then get the hidden parameter into it. Can we display a URL with the user ID already in it which will then render the report viewer with the other optional parameters to be picked. How do we stop somebody constructing a URL with a different user ID. A hidden parameter sounds like the right option but I'm confused how to populate it. Cheers, Darren ...Show All
.NET Development SELECT Statement questions with Microsoft Access
I have the following lines of code that I am trying to execute the SELECT statement through. private void button2_Click( object sender, EventArgs e) { cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source='" + "C:\\Documents and Settings\\All Users\\Application Data\\Symantec\\clients\\" + "IpLookupDatabase.mdb" + "';" ; if (cmd == null ) { cmd = new OleDbCommand (); } cmd.Connection = cnn; cnn.Open(); string createString = "SELECT *" + "FROM GeoLiteCityBlocks " + "WHERE endipNum = '67129343'" ; cmd.CommandText = createString; cmd.ExecuteNonQuery(); } It is working ...Show All
Microsoft ISV Community Center Forums Selection of only one object
I have a macro that lets the user first select a number of charts and then when the user presses a button the charts sizes and color are eing changed. The problem is that it does not works if I only have one chart selected. When I have two or more it works fine. My code (relevant parts) is: Public Sub arrayLoop() Dim obj As Object Dim currentChart As Object For Each obj In Selection If TypeName(obj) = "ChartObject" Then Set currentChart = obj Call linjeDiagramKnapp(currentChart) End If Next End Sub In this sub I check the selection to see if the selected objects really are charts. I assume that there is something wrong here on the first line of the For-loop, but I do not know how it should be ...Show All
Microsoft ISV Community Center Forums combine 3 combo boxes values into one string
Hi all, I have a table of data which can filter out my desired information after i selected a range of date, for example 1-Jan-2006 to 15-Jan-2006, in a combo box. I can only choose date being stated in the combo box, not much flexibility. Now, i want to change the format of the combo box. Instead of one combo box which show the date, i want three combo boxes which show "Year", "Month" and "Day". I can choose any year, any month and any day i want and it will filter out. I am thinking of a solution by combining the values of the three combo boxes into one string, one line "1-Jan-2006", and start to filtering. Is this the only way to do it or is there any better ways to do this Below is my existing VB ...Show All
Visual Basic Login via Access Database help
Hi, I recently got VB 2005 and really like the new features. However, I am on an intermediate level learning Visual Basic. For a test project, I plan to create a login form that validates users through an access database located on a server. Basically, there is a set username and password in the access database and I want my program to execute the main program once the user is validated via the database. I was struggling on this for about a week, but I have no idea on how to do it. I can arrange the controls on my form, but I just need to know how to validate the users. Any ideas hey AnonymousI, here's one solution: 1. add an odbcconnection object in your design view and assign the datab ...Show All
Visual C# What is "\n"? Any difference from "\r"?
I know "\r" indicates a sentence break. Then what about "\n" HtmlText = HtmlText.Replace( "\r\n" , "\r" ); HtmlText = HtmlText.Replace( "\n" , "\r" ); HtmlText = HtmlText.Replace( "\r\r" , "<p>" ); HtmlText = HtmlText.Replace( "\r" , "<br>" ); In the above line, since "\r" is to changed into "<br>", why should not directly change "\n" and "\r\n"directly into "<br>" http://west-wind.com/weblog/posts/1499.aspx \r is carriage return ( in DOS mode, used to bring cursor position to the beginning of a line ) ...Show All
Smart Device Development windows vista and XP emulator
Hey everyone, we just got windows vista basic with out new computer and i cant run my old games on vista but i can on xp, so is it possible to download a XP emulator for vista or is there one on the computer-i seem unable to find one in a basic search. if anyone can post a link or something that would be greatly appreciated, alright people thanks Go to your icon for the game, right click the icon, Choose properties, you should see a compatibility tab, click that and you can choose to run as win xp. You will have a better chance of it running but no guarantee. Hope that helped. ...Show All
SQL Server Getting error 0x80004005
Hi Everybody, Iam a sql server developer,iam on a migration project,iam encountering an error when iam editing the control flow task.it says the sql server doesnot exist or access denied,pls can anyone help me on this. Thanks and Regards, sg ...Show All
SQL Server hopefully an easy one
I need to determine the top 20 most frequent occurences of a value in a specific field using SQL. This query is from SQL 2005; select top 20 c . system_type_id from sys.all_columns c inner join sys.systypes st on c . system_type_id = st . xtype group by system_type_id or something like this select top 20 st . [name] from sys.all_columns c inner join sys.systypes st on c . system_type_id = st . xtype group by st . [name] ...Show All
Smart Device Development System.ComponentModel.Description("") user control
Hi, i have a problem when i try to set the description of my property in the user control. In a desktop applications there's System.ComponentModel.Description("") that allow you to explain the description of the property. In compact framework is possible to use this description I use vs 2005, but i don't found it. thanks See this . ...Show All
