Featured Editorial

Latest Topics

Member Avatar

is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = Text2.Text Text2 = "" ! DBGrid1.Columns(2).Text = Text3.Text Text3 = "" DBGrid1.Columns(3).Text = Text4.Text Text4 = "" DBGrid1.Columns(4).Text = Text5.Text Text5 = "" DBGrid1.Refresh End Sub Private Sub Command4_Click() 'button for search 'MsgBox ("Your Name is " & Text6.Text) With Data1.Recordset If Combo1.Text = "id" Then Label6 = ("[id]like" & …

Member Avatar
+0 forum 1
Member Avatar

Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, I have to find a file that has a varying file extension. The file name will be the creation date. The file extension is the time the file was created. So the file name looks like this: "20141216.042615". So I need to write my code so that it will go …

Member Avatar
+0 forum 11
Member Avatar

Group, I'm taking a text file that is storing ID numbers in a single column that looks like this: 123 3050 3971 I'm looping through the text file line for line and putting each ID number into a textbox. My question is: Am I writing this code the most efficient way? Here's my code: Dim FILE_NAME As String = "C:\Restran Conversion\RestranFileConversion.txt" Dim objReader As New System.IO.StreamReader(FILE_NAME) Dim txtProps As String Dim i As Integer = 1 If System.IO.File.Exists(FILE_NAME) = True Then Do While objReader.Peek() <> -1 txtProps = objReader.ReadLine() If i = 1 Then prop1 = txtProps End If If …

Member Avatar
+0 forum 8
Member Avatar

Has anyone heard of the software or code that can send selected images (Coupons) from a webpage to a customers cell phone based on which coupons he/she choices and what 10 digit number they enter? A workable example is on the 'coupons' page of this website: [Click Here](http://canada.michaels.com) Any thought would be greatly appreciated. ~Martin

+0 forum 0
Member Avatar

Hey guys. I'm writing myself an online toolbox (for my code snippets). I have a "Snippets" table. My question is this. Would you save the snippet source in a Text column or would you have the snippet saved to a text file and the Snippet entry would reference the file name? e.g. Snippets or Snippets2 ![66d53b10f23ce24db08dffd799cf70e2](/attachments/large/4/66d53b10f23ce24db08dffd799cf70e2.png "66d53b10f23ce24db08dffd799cf70e2")

Member Avatar
+0 forum 3
Member Avatar
Reusable Code Snippet Rotate Text (PySide)

Just the very basics on how to draw a rotated text using the Python GUI toolkit PySide (public PyQt). Please experiment and embellish.

Member Avatar
+2 forum 2
Member Avatar

I would like to do a project to predict the tag for the discussion thread based on articl title and the post in daniweb. Can i get the daniweb data to do this? Pls reply soon

Member Avatar
+0 forum 3
Member Avatar

Hi Guys i have a formValidation Java Script on the form to validate username and password text boxes to check whether they are empty,and i am calling them on the Onclient Click even ton the button, But even If i enter some data into those text boxes the error message alert appears, what it the problem with my code here ? `<script type="text/javascript"> function FormValidator() { if (document.getElementById('txtusername').value == ""); { alert('Invalid User Name'); } if (document.getElementById('txtpassword').value == ""); { alert('Invalid Password'); } } </script> ` thanks regards sumith

Member Avatar
+0 forum 5
Member Avatar

So I've come across a problem more than once and it'd be a ton of help if I could get this figured out! So there are several instances where I've wanted to open a file with notepad or notepad++ to change values or something (mainly with videogames). The problem that I've come across is that sometimes when I open up a file such as a .PROPERTIES or .SII extension, instead of seeing the normal text like a ton of other people are capable of seeing, mine is jumbled and encoded. For example, the file I am trying to edit "game.sii" …

Member Avatar
+0 forum 3
Member Avatar

hello everyone, I am using this text-editor http://kenbeit.com/popline/ ,my query is that whatever the font style,color,head tag etc availabe in text-editor i chosse,how can i take all selected attributes in next page via hidden fields in form tag ???.

Member Avatar
+0 forum 3
Member Avatar

Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); alert(num_of_guests); var input_text = $("#text-gname").clone(); var target = $(".guests-tbody"); for(var i = 0; i < num_of_guests; i++) { var clone = input_text.clone(); clone.attr('id','style', ''); target.append(clone); Hide(); } }); but nothing seems to be happening except fot the alert and Hide function. TIA

Member Avatar
+0 forum 3
Member Avatar

Hello Community, I was wondering if there is a way to filter through an email to get all the details. Such as from, to, subject, body and a few other details but you get the idea. At the moment I just have a bunch of text but I want to get all the little bits of information.

Member Avatar
+0 forum 14
Member Avatar

program fetching text file contents into array, and storing array variable values into example.csv file. The values are not storing column wise. ----------------- text file content ----------------- THE SAHARA CO-OP CREDIT SOCIETY LTD MUMBAI OVERDUE LIST OF P NO :1 PERSONAL LOAN AS ON 31/08/2014 ---------------------------------------------------------------------------------------------------------------------------------- S.NO A.NO NAME SAN DATE SAN.BAL BALANCE DUE DATE OVER DUE INT P/OTHER TOTAL ---------------------------------------------------------------------------------------------------------------------------------- 1 Y 8 BAIGANPALLI SADIQ MEHABOOBSAB 16/06/00 8000 4740 16/12/02 4740 1804 332 6876 6 2 Y 22 INAMDAR ILIYASPEERA KHADARSAB 04/07/00 8000 7601 04/01/03 7601 14180 1699 23480 6 3 Y 41 SHAIKH MEHABOOB BASHASAB 07/07/00 7000 5342 …

Member Avatar
+0 forum 2
Member Avatar
Reusable Code Snippet Text - Based RPG V2

I accidentally posted a lower version of the game that had more flaws, and a few less features. This one has a few more minor bugs fixed, and a power attack instead of a normal attack.

Member Avatar
+0 forum 14
Member Avatar
Reusable Code Snippet Pygame Text (Python)

This simple code shows how to write text with a given font, font size and color using the module pygame ...

Member Avatar
+4 forum 8
Member Avatar

Hi All: I have recently started using a web-based texting service; it is just easier than texting on a cell phone. I have a few concerns, and I would like to see if anyone has any answers. 1. Is there a free or low-cost web-based service that turns texts into voice mails? I know Verizon and Sprint do, but I don't use them for cell phone service. 2. Is there a way I can tell if a text has gone to a non-text-capable number, to include dumb phones, land lines, fax lines, data lines, etc? It is frustrating; I sent …

Member Avatar
+0 forum 4
Member Avatar

Hello. I have a button on a web page and when the mouse is over it becomes larger (don't ask why). .buton { /* some code here*/ height:50px; width:100px; text-decoration:none; text-align:center; text-shadow:1px 1px 0px #ffffff; transition:width 0.5s, height 0.5s; } .buton:hover { width:200px; height:200px; } In body is this code: <a href="#" class="buton">BLABLA 1</a> How can I change the button text when it becomes larger? For example, instead of BLABLA 1, be HELLO 1.

Member Avatar
+0 forum 1
Member Avatar

am creating a new social network like FB: In that i cant able to change the text color permanently by selecting a theme... help me guyz:

Member Avatar
-3 forum 3
Member Avatar

I'm trying to create a simple code that would transform standard sentences into interrogative sentences. I’m not sure how easy or hard it is to create such a code and was wondering if such code or a similar code already exists. The code I'm looking for would do this: EX: The sky is blue --> Is the sky blue? I’m very novice to programming, so any suggestions and tips will be welcome

Member Avatar
+0 forum 1
Member Avatar

Hi, Im making a simple program which converts a encrypted text file the upload it to sql CE. This is time in and out logs of every employee. The date is extracted from a machine and downloaded as encrypted file. We managed to decrypt it by getting the equivalent value of each character. I need to decrypt this file then save it to database (sql server 2008 r2) Downloaded file looks like this, in plain text: ±²®ªÇª®°­°®­°®¯±ª®·¸²®¸±²B ´µ³ªÇª®°­°®­°®¯±ª®·¸²±¸³®N ´µ³ªÍª®°­°¯­°®¯±ª¯·¸®°¸²²T ±²®ªÍª®°­°¯­°®¯±ª°®¸®®¸°®9 ±¯´ªÍª®°­°¯­°®¯±ª°®¸®®¸±²A ´µ³ªÇª®°­°°­°®¯±ª®·¸±¶¸±´X ±¯´ªÇª®°­°°­°®¯±ª¯®¸²¯¸²´C ±²®ªÇª®°­°°­°®¯±ª¯®¸²±¸°µA ´µ³ªÍª®°­°°­°®¯±ª¯·¸±¶¸±²] ´µ³ªÇª®°­°³­°®¯±ª®·¸³¯¸²µX My code for now in uploading: (I used openfiledialog object to open the file) …

Member Avatar
+0 forum 9
Member Avatar

Hi, I'm not sure if this is the correct section to post my question in, but since my problem refers to xaml scripting I guess so. I added a listview in my win store app from which the user can choose among several elements and click the one she wants to expand in another box. The problem is that when you click and therefore highlight an item, its name is kinda cut off showing part of the first letter and than the others (for example, if you see Æþelstan and click on it, it'll only show Eþelstan). I tried to …

+0 forum 0
Member Avatar

how to `.replace()` the `'error'`? only use `a` and `b` var str = 'bla bla anything error anything bla bla'; var a = 'anything', b = a; im not good with regular expressions so im asking for how to do this with variables so i can set them up all by myself

Member Avatar
+0 forum 8
Member Avatar

Here’s the concept behind the smartpen: there are millions of pages of good old fashioned handwritten notes taken every day in business meetings and school lessons around the world. Unfortunately they remain trapped within the confines of the paper they are written upon. But what if you could easily share those notes, make them searchable and accessible by digitising them with a tap of the pen you write them with? [attach]21268[/attach] That’s where the Echo smartpen comes in by digitally capturing what you write, and what you hear, and then ‘pencasting’ the data using the new Livescribe Connect software. To …

Member Avatar
+0 forum 1
Member Avatar

Hi all, I've started to get acquinted with Perl's HTML::Parser, which does a really good job at parsing html (duh ;-) But for the life of me, I can't get it to return the actual text from subroutine! I keep getting references to it :\ :\ use HTML::Parser; package MyParser; sub start { my ($self, $tagname, $attr, $attrseq, $origtext) = @_; if ($tagname eq 'img') { my $Title=$attr->{ title }; # now this works well, and actually prints the value and not the reference! print "Image title found: ", $attr->{ title }, "\n"; return($Title); } else {return();} } my $parser …

Member Avatar
+0 forum 2
Member Avatar

hey guys. I have a form (very much simplified): <form method="post" action="add_contact.php"> <label>House No. :</label><input type="text" name="houseno" required /> <label>Street Name :</label><input type="text" name="street" required /> <lable>Spouse ?</lable><input type="radio" id="spouse-yes" onclick="FillSpouse(this.form)">Yes<input type="radio" id="spouse-no"> <label>House No. :</label><input type="text" name="spousehouseno" required /> <label>Street Name :</label><input type="text" name="spousestreet" required /> </form> what i want is for when radion button "Yes" is clicked the two other text fields(name="spousehouseno" and name="spousestreet") will be populated by the same input values in the text fields(name="houseno" and name="street"). ive tried using from [Click Here](http://www.htmlgoodies.com/tutorials/forms/article.php/3898101): <script type="text/javascript"> function FillSpouse(f) { if(f.spouse-yes.checked == true) { f.houseno.value = f.spousehouseno.value; f.street.value = …

Member Avatar
+0 forum 5
Member Avatar

hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> <option value="Hajjah">Hajjah</option> <option value="HM">HM</option> <option value="HRH">HRH</option> <option value="Miss">Miss</option> <option value="Mrs.">Mrs.</option> <option value="Mr.">Mr.</option> <option value="Pehin">Pehin</option> <option value="Professor">Professor</option> <option value="Raja">Raja</option> <option value="Tan Sri">Tan Sri</option> <option value="Tengku">Tengku</option> <option value="Tuanku">Tuanku</option> <option value="Tun">Tun</option> <option value="Tunku">Tunku</option> <option value="Ungku">Ungku</option> </select></br> <label class="salute-label">*If a person has many salutations, choose the highest form of salutation*</label> </p> <div style="height:0"><label>First Name …

Member Avatar
+0 forum 2
Member Avatar

Hello, I need a litle help here. I am creating a program that finds a specific sentence in a word path and replaces it with a given value. Specific sentence: l="600" And it has to be changed to : l="300" This is not to dificult and works fine: Public Class Form1 Private Property sign As String Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim sign1 As String Dim sign2 As String sign1 = ("""600""") 'sign1 = ("""") sign2 = ("""300""") Dim source As String = "C:\temp\bodem.mpr" 'path from original file Dim destination As String = "C:\temp\bodem2.mpr" 'path …

Member Avatar
+0 forum 6
Member Avatar

hello everyone, I need to add custom text on my uploading image ,any jquery or wordpress plugin is for that??

Member Avatar
+0 forum 6
Member Avatar

In HTML,CSS BLINKING TAG IS NOTWORKING?I NEED PROGRAM IN JAVASCRIPT FOR BLINKING THE TEXT..

Member Avatar
+0 forum 3
Member Avatar

Hi I need to show coordinates from the map in the text box below. Can you make the code showing the latitude and longitude onmouseclick? I will be very grateful. <html> <head> <title>OpenLayers Example</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> <script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> </head> <body> <div id = "container" style = "width:1250px"> <div id="header" style="background-color:#CCCCCC;text-align:center;"><h1>Услуги с кадастрални данни</h1></div> <div style="width:900px; height:500px; float:left" id="map"></div> <div id = "featureinfo" style = "width:350px; height:500px; background-color:#CCCCCC; float:right"></div> <div id="wrapper" style="margin:5px"><div id="map" style="width: 800px; height: 450px"></div></div> <table cellpadding="5" cellspacing="0" border="1"> <tr> <td width="50%" valign="left"> <br> <h3>Get the Latitude and Longitude of a Point</h3> <p>When you click …

Member Avatar
+0 forum 3

The End.