Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #607
~21.6K People Reached
Favorite Tags

55 Posted Topics

Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
317
Member Avatar for bsewell

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.

Member Avatar for Ganeshcse
0
6K
Member Avatar for 68thorby68

[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]

Member Avatar for adrianazidu
0
183
Member Avatar for CarlMartin10

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.

Member Avatar for jleonardo
0
637
Member Avatar for wiss.dev

Check out the ToString function on your date. [CODE]myDate.ToString("-format-")[/CODE]

Member Avatar for jlego
0
892
Member Avatar for Joomla12

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()

Member Avatar for Nattynooster
0
239
Member Avatar for TheMightySpud

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 …

Member Avatar for TheMightySpud
0
127
Member Avatar for TonyG_cyprus

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]

Member Avatar for TonyG_cyprus
0
131
Member Avatar for OmniX

Never used it before but maybe [URL="http://www.phpclasses.org/browse/package/4097.html"]this[/URL] will work for you.

Member Avatar for OmniX
0
88
Member Avatar for dw8081
Member Avatar for dw8081
0
114
Member Avatar for himit

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]

Member Avatar for himit
0
168
Member Avatar for thebluestar

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() …

Member Avatar for thebluestar
0
118
Member Avatar for fuchsia555

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 …

Member Avatar for fuchsia555
0
1K
Member Avatar for Phaelax

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 …

Member Avatar for me655321
0
112
Member Avatar for shekaranumalla

Is that a question or is that some kind of command to strike now against all cookies?

Member Avatar for Ezzaral
0
75
Member Avatar for bluem1

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 …

Member Avatar for bluem1
0
134
Member Avatar for bumassjp

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 …

Member Avatar for bumassjp
0
1K
Member Avatar for tqmd1

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.

Member Avatar for me655321
0
125
Member Avatar for tunde011

You want the rest of the article to come up in a new page or somewhere on the same page?

Member Avatar for me655321
0
372
Member Avatar for tqmd1

[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 …

Member Avatar for me655321
0
131
Member Avatar for compusol

[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.

Member Avatar for me655321
0
88
Member Avatar for jlego

You want to get the selecteditems count...[CODE]If ListView1.SelectedItems.Count = 0 Then Exit Sub[/CODE]

Member Avatar for jlego
0
109
Member Avatar for jlego
Member Avatar for jlego
0
129
Member Avatar for rukshilag

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.

Member Avatar for rukshilag
0
117
Member Avatar for shahzad429

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 …

Member Avatar for shahzad429
0
126
Member Avatar for help_lucky

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.

Member Avatar for me655321
0
79
Member Avatar for Flufferman

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 …

Member Avatar for me655321
0
186
Member Avatar for nschessnerd

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]

Member Avatar for nschessnerd
0
100
Member Avatar for kanjigirl

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]

Member Avatar for me655321
-1
98
Member Avatar for mrjoli021

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]

Member Avatar for mrjoli021
0
2K
Member Avatar for ViRiPuFF
Member Avatar for ericwshoemaker

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]

Member Avatar for me655321
0
118
Member Avatar for hajjo

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]

Member Avatar for me655321
0
94
Member Avatar for rukshilag

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 …

Member Avatar for me655321
0
101
Member Avatar for keval007

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]

Member Avatar for me655321
0
94
Member Avatar for hajjo

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 …

Member Avatar for me655321
0
104
Member Avatar for me655321

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 …

Member Avatar for me655321
0
280
Member Avatar for jlego

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]

Member Avatar for jlego
0
207
Member Avatar for soeppp

Change line 10 to [CODE] Dim numberFormatInfo As Globalization.NumberFormatInfo = System.Globalization.CultureInfo.CurrentCulture.NumberFormat [/CODE]

Member Avatar for me655321
0
168
Member Avatar for bigjoke
Member Avatar for tqmd1

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]

Member Avatar for me655321
0
771
Member Avatar for sathya8819

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.

Member Avatar for me655321
0
103
Member Avatar for feoperro

Why do you specify static size(200,400) for the object tag and percentages(200%,400%) for the embed tag?

Member Avatar for feoperro
0
223
Member Avatar for jino

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 …

Member Avatar for jino
0
1K
Member Avatar for IT21

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).

Member Avatar for me655321
0
90
Member Avatar for JRM

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]

Member Avatar for JRM
0
131
Member Avatar for girl.java

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)

Member Avatar for girl.java
0
101
Member Avatar for Kitzhi

Sounds like you want setInterval instead of setTimeout...and you don't need to create a new function...setInterval("butt.click()",3000)

Member Avatar for me655321
0
73
Member Avatar for adamwilden

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), …

Member Avatar for me655321
0
627
Member Avatar for kahaj

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 …

Member Avatar for me655321
0
93

The End.