- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
55 Posted Topics
Re: Here's a class I've made for doing global hooks(mouse and keyboard). Not really finished and not well commented. Imports System.Runtime.InteropServices Imports System.Reflection Public Class cHook #Region "Imports" 'Mouse Private Declare Function SetMouseHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As Integer, ByVal lpfn As MouseHookDelegate, ByVal hmod As Integer, ByVal dwThreadId … | |
Re: Easiest way is with CreateElement and innerHTML... [CODE] var el = document.createElement('div'); el.innerHTML = "whatever you want"; document.getElementById('container').appendChild(el);[/CODE] Or you'll have to insertBefore if you want to specify where the div gets added. | |
Re: [QUOTE]Is the anyway I can create a result where each data is not repeated unless it is unique? [/QUOTE] You want 'group by' If you meant each [B]date[/B], you would use group by event_date...[CODE]$query = "SELECT event_date, event_name FROM events group by event_date"; [/CODE] | |
Re: Try this out... [CODE] Function GetWords(ByVal line As String) As String() Return line.Replace(".", "").Split(" ") End Function[/CODE] Removes the period too. Maybe you'll want to remove other punctuation too. | |
Re: Check out the ToString function on your date. [CODE]myDate.ToString("-format-")[/CODE] | |
Re: You need to add another form to your project and put whatever you want on it. Then show it with something like Form2.Show() or Form2.ShowDialog() | |
Re: Not sure how set you are on using textboxes for your data but I think you might be better off using a datagridview since you don't have a fixed number of attributes. Here's some code using a datagridview...[CODE] Dim tmpDataGridView As DataGridView Dim tmpTabPage As TabPage Dim controlNodes As XmlNodeList … | |
Re: Try using select count...[CODE]SELECT COUNT(*) FROM card[/CODE] not sure how it returns as is in mysql so I would recommend doing [CODE]SELECT COUNT(*) as rowcount FROM card[/CODE] so you can be sure to access it with [ICODE]$row['rowcount'][/ICODE] | |
Re: Never used it before but maybe [URL="http://www.phpclasses.org/browse/package/4097.html"]this[/URL] will work for you. | |
Re: What about Burger King?? Why is that not in the result? | |
Re: I'm not an expert in XSLT but I think you can do that with something like this:[CODE]<singer> <xsl:attribute name="name"> <xsl:value-of select="artist"/> </xsl:attribute> <title><xsl:value-of select="title"/></title> </singer> [/CODE] | |
Re: Ok so first of all, your line [ICODE]var No = document.TEN.NoName.value;[/ICODE] is called before you've typed anything into the box. If you want to use it properly, set it at the start of your INPUT() function. Also not sure why you're using [ICODE]N = eval(No);[/ICODE]? Are you looking for parseInt() … | |
Re: I think you can use .htaccess to redirect error pages but as far as forcing it to refresh? I think that could get into an infinite loop right? Anyway I think you could do something like this:[CODE]ErrorDocument 503 /refreshpage.php[/CODE] in your .htaccess file. Then in refreshpage.php, have it refresh the … | |
Re: Hey I modified one of my functions do what I think you want. See how this looks...[CODE]<html> <head> <script> function setstring(el,str){ el.innerHTML = ".<br>.<br>."; el.setAttribute("title",str); var heightNeeded = el.offsetHeight; el.innerHTML = str; if (el.offsetHeight <= heightNeeded){ return; } var tmpstr = str; for (var i = 0;i < str.length;i++){ tmpstr … | |
Re: Is that a question or is that some kind of command to strike now against all cookies? | |
Re: Listbox can't take multiline strings unless you owner draw it. Are you trying to list more than one record in the listbox so you can choose or are you just trying to display the info? Just wondering, cause if you're just displaying the info, you want a multiline textbox. Otherwise … | |
Re: If your try/catch fails, your function doesn't return anything. Basically it will return Nothing. You can do the same thing with:[CODE] <System.ComponentModel.DataObjectMethodAttribute _ (System.ComponentModel.DataObjectMethodType.Select, True)> _ Public Function GetTimesheet() As dsTimesheet.TimesheetDataTable Try Return Adapter.GetTimesheetData() Catch e As Exception Return Nothing End Try End Function [/CODE] It will return exactly the … | |
Re: You can't do that with the standard .NET combobox. You could owner draw it or you could download a custom control with that feature like [URL="http://www.codeproject.com/KB/architecture/MultiColumnFlatCombo.aspx"]this one[/URL].(or create one yourself) Or you could just junk the combobox for a listview or datagridview. | |
Re: You want the rest of the article to come up in a new page or somewhere on the same page? | |
Re: [CODE] TextBox1.Text = ListView1.Items(ListView1.FocusedItem.Index).SubItems(0).Text TextBox1.Text = ListView1.Items.Item(ListView1.FocusedItem.Index).Text TextBox1.Text = ListView1.Items(ListView1.FocusedItem.Index).Text TextBox1.Text = ListView1.FocusedItem.SubItems(0).Text TextBox1.Text = ListView1.FocusedItem.Text [/CODE] And just fyi if it's actually the selected item you're looking for(which is sometimes different than focused item) then you can use: [CODE] TextBox1.Text = ListView1.Items.Item(ListView1.SelectedIndices(0)).SubItems(0).Text TextBox1.Text = ListView1.Items.Item(ListView1.SelectedItems(0).Index).SubItems(0).Text TextBox1.Text = ListView1.Items.Item(ListView1.SelectedIndices(0)).Text TextBox1.Text … | |
Re: [URL="http://www.astahost.com/info.php/vbnet-ms-access-interaction-tutorial-part_t12054.html"]Here[/URL] is a good tutorial on Access databases in vb.net. | |
Re: You want to get the selecteditems count...[CODE]If ListView1.SelectedItems.Count = 0 Then Exit Sub[/CODE] | |
Re: I think [ICODE]GROUP BY customer.Name[/ICODE] should do what you want. | |
Re: 1: This looks exactly like a question you posted yesterday. 2: This looks like homework that you aren't willing to put any effort into yourself. 3: At least mark your other threads solved when you get a homework answer from someone. | |
Re: I think rather than remove the tags manually, you should either tell tinymce not to put them there: [CODE]tinyMCE.init({ forced_root_block : false, force_br_newlines : true, force_p_newlines : false });[/CODE] Or set the paragraph margins and padding to 0: [CODE]p {margin:0; padding: 0;}[/CODE] Check out [URL="http://wiki.moxiecode.com/index.php/TinyMCE:FAQ#TinyMCE_produce_BR_elements_on_enter.2Freturn_instead_of_P_elements.3F"]what they have to say about … | |
Re: Attempted to recreate what you're seeing in IE8 and can't get a problem..seems to work. Maybe try using selectedIndex=-1 instead of value="" for the select. Btw not really a php question. | |
Re: When you use file() it returns the array of lines including the line breaks at the end of the line. Theoretically you can use the FILE_IGNORE_NEW_LINES flag to retrieve lines without them...[CODE]$array = file($url,FILE_IGNORE_NEW_LINES);[/CODE] But there seems to be an issue with that so you're better off either searching for … | |
Re: Strange...I created the table with your code and was able to insert and successfully retrieve the name "»LPk«FËNÎX§" with [CODE]select * from names where name='»LPk«FËNÎX§'[/CODE] | |
Re: Am I right that you're trying to figure out how to use 'or'? If so it's just [CODE]if (($thisPage == "one")||($thisPage == "two")){ }[/CODE] | |
Re: Well with mysql_fetch_array you're telling it to get an associative array. To see the status use [ICODE]$row[status][/ICODE][CODE] while ($row = mysql_fetch_array($result)) { echo $row[status] . "<br>"; }[/CODE] | |
Re: Are you sure the field size for Grade is Double? | |
Re: Are you trying to download the "image1.jpg" then load it to an mc or is it a resource in your project that you just want to trigger to load? Either way, if I understand you correctly, you just want to do...[ICODE]myMC.addChild(Bitmap(myLoader.content));[/ICODE] or [ICODE]myMC.addChild(Bitmap(myBitmapData));[/ICODE] | |
Re: This what you're looking for? [CODE=html]<html> <script> var hideLength=7; function showText(el){ el.innerHTML=el.getAttribute("fulltext"); } function hideText(el){ if (el.getAttribute("fulltext").length > hideLength){ el.innerHTML=el.getAttribute("fulltext").substr(0,hideLength-3)+"..."; } } </script> <body> <span fulltext="Test this text." onmouseover="showText(this)" onmouseout="hideText(this)">Test...</span> </body> </html>[/CODE] | |
Re: You'll need to add an onsubmit event to your form tag that can run a validation function. Function should return false if txtStdNo is blank. There are plenty of tutorials on this subject...here are a couple... [url]http://articles.sitepoint.com/article/form-validation-client-side[/url] [url]http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=aw[/url] Also, when it fails you'll have to use [ICODE]alert("message")[/ICODE] for your message … | |
Re: I think IE is the only one that uses keyCode. I think you'll have to do something like this...[CODE]if(window.event){ var a = e.keyCode }else if(e.which){ var a = e.which } [/CODE] | |
Re: Although it's hard to believe you have enough of a delay just showing content to warrant a loading bar, I think the problem you're having is that the window won't update during your function. You might try doing a setTimeout to finish the function and give the window a chance … | |
Hey, I created a custom datagridview column for a progressbar and included customizable color properties but I can't get them to work right. After compiling, the properties show up correctly in the Edit Columns popup editor, but changing the values has no effect. The designer generated code shows the original … | |
Re: You're better off just using a datagridview...would make sorting by specific column a lot easier. If you're stuck with listview, try this... [url]http://www.vb-helper.com/howto_net_listview_sort_clicked_column.html[/url] | |
Re: Change line 10 to [CODE] Dim numberFormatInfo As Globalization.NumberFormatInfo = System.Globalization.CultureInfo.CurrentCulture.NumberFormat [/CODE] | |
Re: Just add [ICODE]$patharray[] = $path;[/ICODE] into your while loop. | |
Re: You can do:[CODE]item = New ListViewItem(StudentID) item.SubItems.Add(Name) item.SubItems.Add(Address) item.SubItems.Add(Course)[/CODE] or [CODE]item = New ListViewItem item.text=StudentID item.SubItems.Add(Name) item.SubItems.Add(Address) item.SubItems.Add(Course)[/CODE] | |
Re: Hard to know what's going on without more info. If you could post the designer code or even a screenshot...something to help us help you. | |
![]() | Re: Why do you specify static size(200,400) for the object tag and percentages(200%,400%) for the embed tag? ![]() |
Re: I had a similar issue and resolved it by manually calling the mceAddControl function after adding the textarea: [CODE] if (!tinyMCE.get('elementid')){ tinyMCE.execCommand('mceAddControl', false, "elementid"); }[/CODE] Where elementid is the id of the textarea. Not sure if this is what you need. I wasn't using jquery or even AJAX, just generating … | |
Re: Looks like there's no overloaded version of the GetDataBy function that takes only 2 parameters(which is what you're trying to give it). | |
Re: I think you want setAttribute for the most part. Other attributes like class and style are set directly... [CODE]td1.setAttribute("align","center"); td1.className="myclass"; td1.style.backgroundColor="red";[/CODE] | |
Re: 1: You don't need opening and closing brackets for the <script> tag(lines 9 and 51) 2: Can't assign to a number like "3=firstNumber;" (lines 15,16,17) 3: window.promp should be window.prompt (lines 19,23,29) | |
Re: Sounds like you want setInterval instead of setTimeout...and you don't need to create a new function...setInterval("butt.click()",3000) | |
Re: I think the WebBrowser control uses all the cookies from ie so to delete them you'd have to delete all the cookies in the standard ie cookie folder. I'm not sure on access rights to that folder but you could try this: [CODE] Dim cookieFiles As System.Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(System.Environment.GetFolderPath(Environment.SpecialFolder.Cookies), … | |
Re: try this... [CODE] Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer) Const VK_STARTKEY = &H5B Private Sub PicBoxStartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PicBoxStartButton.Click keybd_event(VK_STARTKEY, 0, 0, 0) keybd_event(VK_STARTKEY, 0, 2, 0) End … |
The End.