199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VernonDozier

function validate_font_family($font_family, &$error_message) { $valid_match1 = '"Times New Roman",Georgia,Serif'; $valid_match2 = '"Arial",Georgia,Serif'; if(preg_match($valid_match1, $font_family) || preg_match($valid_match2, $font_family)) { return true; } $error_message = "Invalid font family(" . $font_family . "). Must be either "; $error_message .= $valid_match1 . " or " . $valid_match2; return false; } The code is supposed …

Member Avatar for VernonDozier
0
102
Member Avatar for erezz

Hi, I have 4 different files that contain the text below. I need to Remove specific whitespace from the text and to find if there is a number that appears in more then one file and to print the output result to a new file that will includ lines with …

Member Avatar for erezz
0
240
Member Avatar for riahc3

Hey I want to declare a variable that is global that I can use (and modify) all over my website. Ive read that I may be able to do it with jQuery but not sure how to (more importantly, where). Its a simple text field, nothing else. Specifically it must …

Member Avatar for fobos
0
637
Member Avatar for Panathinaikos22

Because UDP is unreliable protocol i want someone to try my code. For someone who have server, run my code and send packets to your server and then monitor to your server bandwidth usage Sender packet size is near to (Server)Receiver packet size ??? Soz for my english. using System; …

Member Avatar for Panathinaikos22
0
132
Member Avatar for GH23

I'm developing a VB.NET application that is going to be checking if a table has been changed and if it has get the data and send it off to another application. I was looking into ways for an application to know that there has been new data added to the …

Member Avatar for francis994
0
275
Member Avatar for jigglymig

I have been looking on the internet for how to do a save as on my form, but can't seem to figure it out. All I know is you can do something with the saveFileDialog, but I don't even see it pop up. I want to incorporate 8 Different SaveAs …

0
81
Member Avatar for irishsailor

I am having problems trying to center some text. I created a printdocument and it has a company name and title and then other information I have the information fine but I wanted to center the company name and I can't seem to do it correctly here is what I …

Member Avatar for irishsailor
0
596
Member Avatar for mancode1007

halo guys, I having problem executing the SQL statement in the visual studio but when in the MySQL it work fine. Here are my code. Dim sql As String = "SELECT * FROM (SELECT @row:= @row + 1 AS rowNum, std.* FROM Student std ,(SELECT @row:= 0) r) AS t …

Member Avatar for wen_cai
0
166
Member Avatar for faizzul_77

i want to create column headers now in my first array have this http://uitm.x10.bz/!/1.png array CSC238,8.00-9.50 MAT183,1.00-2.00 ECO120,2.10-4.00 BEL311,4.10-6.00 MAT183,8.00,9.50 then second array, i want to do like this http://uitm.x10.bz/!/2.png array 8.00-8.50 9.00-9.50 10.00-10.50 11.00-11.50 12.00-12.50 1.00-2.00 2.10-3.00 3.10-4.00 4.10-5.00 5.10-6.00 6.00-7.00 7.00-8.00 8.00-8.50 9.00-9.50 hope can help this problem …

Member Avatar for francis994
0
195
Member Avatar for zemzela

I got error ProfileCommon could be not found , in my code. I don't know how to fix the error. I put namespace using system.Web.Profile, but error still does here. Could someone help how to do that? Please help me if you know. Thank you public partial class UserProfile : …

Member Avatar for zemzela
0
157
Member Avatar for SAM2012

I need your help regarding the message acknowledgement in the queue when the message reaches at the queue. Any help would be highly appreciated. the code for my queue class is; struct ListNode { ListNode(gcroot<message^> msg); gcroot<message^> msg; ListNode* next; }; ListNode::ListNode(gcroot<message^> msg): msg(msg), next(nullptr) {} public class queue { …

Member Avatar for DeanMSands3
0
190
Member Avatar for eongchin

hi, i started using VB 2008 recently (with perl background, its a big leap) and having a problem with database. i am trying to access a database that is attached to a different form. i managed to get my code to work if i was writing on the same form. …

Member Avatar for adam_k
0
96
Member Avatar for lxXTaCoXxl

I'm having trouble with my some output in hexadecimal math. The subtraction overload seems to work fine, but when I add an address to another it goes all wierd on me. :( Here is a sample output: 00000000 + 0000055c = 0000000c // Incorrect 000a0000 + 00000180 = 000a000000000080 // …

Member Avatar for skatamatic
0
121
Member Avatar for thanatos1

Hello guys, i have a question regarding how to change the origin of a window, particularly a JFrame. I'm essentially running a program called "Fraps" to see the frames per second of my JFrame, with this program, you can display the fps on any 4 corners of the window currently …

Member Avatar for NormR1
0
270
Member Avatar for MastAvalons

Hi, my project works with emulating the file system. I can invent my own as well. I'm developing a unix like shell which will provide all the file handling commands similar to unix. Basically I want to allocate a large file on the actual file system, and treat it as …

Member Avatar for MastAvalons
0
195
Member Avatar for aadesign

I really hope someone can help me with this one. It is a Hotel Booking System: Tbl Room (RoomID, Floor, Notes) Tbl BookingsRoom (RoomID, BookingID) Tbl Bookings (BookingsID, StartDate, EndDate, Comments) I have to create an SQL select statement for checking if a room is bookable during a given time …

Member Avatar for adam_k
0
342
Member Avatar for moshe12007

hi i have have problem with my code i try to do event that use me to know when the clipboard changed - but it doesnt work :( -> The Code: namespace YossApp { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void InputStr(string dataObject) …

0
87
Member Avatar for moone009

I have an ssis package the loops through an entire folder importing records into a sql 2005 database. I pull these records from a table in my database through an "execute sql task" then that gets pushed into the foreach loop container. However when one of the filenames is missing …

0
90
Member Avatar for MrEARTHSHAcKER

Hi, I am learning queues and I have found 2 examples. Both examples represent queues with limited size, for example 30. But <queue> allows us to create queue that is not limited by ***pre-set** queue size. Can anyone explain me how have they created something like that? Thanks! ***By *pre-set* …

Member Avatar for MrEARTHSHAcKER
0
247
Member Avatar for Jake.20

Greetings, Can someone tell me on how can i call a certain textbox from web.aspx to another web.aspx in visual basic windows form application we use Me.lastname.text = Profile.lastname.text what is the equivalent code in asp.net? btw i'm using visual basic asp.net. Thank you in advance guys :D.

Member Avatar for Jake.20
0
702
Member Avatar for bigzos

Hey,,I tried the following code to retrieve data from an excel file,apply query and save the result of query to another excel file. Now there are two problems: One,I am getting the required data but some reduntant unwanted data too. Second,It only works if the excel file, from which the …

Member Avatar for bigzos
0
625
Member Avatar for thanadaray

How to check if table exist? **I would like to check if table exist then drop table. If not exist, create table.** My codes at this moment: import MySQLdb, csv, sys db = MySQLdb.connect("host","username","password","databasename" ) # prepare a cursor object using cursor() method c = db.cursor() # Drop table if …

Member Avatar for vegaseat
0
8K
Member Avatar for vriend12345

When I am trying to design an algorithm , I had a programming problem in Java .. I want to write M nested "for" like that: for (I[0]=1; I[0]<=N; I[0]++) for (I[1]=1; I[1]<=N; I[1]++) ... for (I[M]=1; I[M]<=N; I[M]++) { Statements; } Where M is entered by the user during …

Member Avatar for vriend12345
0
119
Member Avatar for jigglymig

I am having trouble making the link open a web browser and going to the website can someone please show me what to do in the linkClicked. private void agricultureLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { }

Member Avatar for lxXTaCoXxl
0
114
Member Avatar for Casperjames

Hey all, writing some code but keep getting a javascript related "Not Implemented" error. The code is window.onload=setTimeout('loadAll()',10); The code works fine but the error is annoying in that "An error has occured.." keeps popping up. Oh how I love cross browser coding. Anyways, any input is appreciated, thanks!

Member Avatar for Casperjames
0
117
Member Avatar for Bungie

I need help creating a pause screen for my pong game. Also if you could make a way to make the game fullscreen that would be great. Here is the code: import pygame, sys, random, os from pygame.locals import * import screen import screem os.environ['SDL_VIDEO_CENTERED'] = '1' # Pygame init …

Member Avatar for TrustyTony
0
274
Member Avatar for karanits

I know there are multiple variations of this question here, but not in this form. My Ledger table, in a basic form have the following columns. TransactionID | DateOfEntrydate | TransactionDate | ClientID | TrIsDebit | OpeningBalance | Amount | ClosingBalance DateOfEntry is a colums which stores time of insert …

Member Avatar for karanits
0
1K
Member Avatar for riahc3

Hey Let me see how I describe this.... I have a textbox (inside of a form) and that form also has a button that calls a Javascript function that does some unrelated stuff. This is all inside of Lightbox. I want to be able to type in text in that …

Member Avatar for emclondon
0
187
Member Avatar for zeqe

Hi there. I'm having trouble passing variables between Forms. Let me explian my self by an example. I have a Form1, the user types a "Client ID" in a textbox if it's not a valid one, it opens a Form2 in which the user selects the correct "Client ID", once …

Member Avatar for zeqe
0
178
Member Avatar for jrosh

I am tryin to add rectangle to on to an image in wpf. Rectangle is drawn at MouseLeftButtonDown event. Problem is I want to add this rectangle straight to the Grid (on to the image) without using a canvas. How Can I do that? or How can I avoid using …

Member Avatar for Sahil89
0
2K
Member Avatar for triumphost

typedef union { unsigned Color; struct { unsigned char B, G, R, A; }; } RGB, *PRGB; inline RGB Rgb(int R, int G, int B) {RGB Result = {((COLORREF)((BYTE)(R)|((BYTE)(G) << 8)|((BYTE)(B) << 16)))}; return Result;} inline RGB Rgb(COLORREF Color) {RGB Result = {Color}; return Result;} The above is my code …

Member Avatar for L7Sqr
0
141
Member Avatar for NeiXude

Hi,I am new to mobile and i am still studying the components,layouts,etc..first i want to know how can i put radiogroup in listview, i made another xml file "Radiolayout.xml" but i could not display this in listview. More inputs will be much more appreciated. This is my java file "Sample01.java" …

Member Avatar for NeiXude
0
115
Member Avatar for perllearner007

I have a delim-tab file ID NAME FAMILYTAG EFFECT 001 John Black Positive 002 Kate Rhodes,Mich Positive 003 Aaron Sunders Negative 004 Shirley Rhodes Negative 005 Dexter Sunders,Hark Positive I want to input this file(which is much larger) and read in a name for eg: Kate. I want the script …

Member Avatar for perllearner007
0
161
Member Avatar for mogaka

i have the following query: 1.$query="SELECT * FROM ab_service WHERE account_id=$account_id AND sku='".$sku."'"; 2.$query="SELECT * FROM ab_service WHERE account_id=$account_id AND sku='$sku'"; none of the above seems to work.the problem is with $sku var because when i dont put it as the condition, i get results.what is the problem ? the …

Member Avatar for seslie
0
66
Member Avatar for sah

For some days I have been trying to optimize an image processing program (cropping, rotate, changing brightness and undo) written in c# 4.0. Getting suggestions from google I have optimized the code in many ways. At first some disposable objects hadn’t been disposed that’s why exception was shown. But I …

Member Avatar for sah
0
1K
Member Avatar for adityawkhare

Can anybody here tell me please how to display a notification/message box in c++. suppose i'm making a program for factorial of a no. and i want to display the result in a message box with msg..." Factorial of No. is <fact>". help me please!!!

Member Avatar for Ancient Dragon
0
572
Member Avatar for poojavb

Hello Friends, I have three table ->PatientDetails ->ParentDetails ->InsuranceDetails -Patient id is the common column in all the three tables... While saving the data in table using VB.Net there is a column in PatientDetails i.e. Insured If the patient is insured then only the values from text boxes and the …

Member Avatar for poojavb
0
337
Member Avatar for h0k1

Hey Guys,, I'm new to PHP and and contact forms, I'm in need of help for the current website I'm making for a local sporting community. I have uploaded a current picture of what my contact us box (Name,Email,Message) looks like : As you can see im using a CSS …

Member Avatar for baig772
0
350
Member Avatar for king03

hi there guys can you suggest me some games that I can program in c sharp in an object oriented way? just simple programs that can be done for maybe less than a week since I'm just starting to learn it yet. Any idea? Please help me guys I will …

Member Avatar for seslie
0
122
Member Avatar for Ashfa

Hi, I have a grid view having images and text.. i used handler to display image. but after implementing the code to display image,,, autogenerated edit/delete options are not displaying Data Fields........ mpId...int(Text), mpName.... varchar(Text), mpLocation... varchar (dropdown list), mpImageF.. image , mpGender... varchar(radio button list) **Please Guide me how …

Member Avatar for Ashfa
0
279
Member Avatar for collin_ola

Hi, I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information. Here's my code: [CODE]Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click Dim settings …

Member Avatar for n71423
0
2K
Member Avatar for prancode

I have this code which displays a login form, i want to encrypt the password before it stores into the sql database and should also be able to verify the pwd when a user logs in. Please help me, it'll be very greateful of you, Thank you. Private Sub Login_Click(ByVal …

Member Avatar for Reverend Jim
0
246
Member Avatar for sjeggels

Hi there, I am looking for help to code a php mysql search form with 4 dropdown list. I want the user to search for accommodation establishments by using a citytown, tourism route, accommodation profile and accommodation tariffs. All this will be in the dropdown list which reflects the fields …

Member Avatar for sjeggels
0
3K
Member Avatar for Captain_Ludd

Hello all, Im new here and looking for some advice re the google maps javascript API (which im also pretty new at) The background: I have managed to get some pages that use the googlemaps interface up and running add markers to them etc and allow the user view directions …

Member Avatar for 72dpi
0
263
Member Avatar for Hakoo

Hello all, I am trying to validate my ASP.NET page in W3C validator. I am getting following errors. Can anyone help with this? No DOCTYPE found! Checking XML syntax only. The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling …

Member Avatar for mikev2
0
241
Member Avatar for matharoo

-53 45 -54 43 -55 42 -56 41 -57 40 -59 37 -61 35 -61 36 -62 34 -64 33 -65 31 -65 32 -67 30 -68 29 -69 28 -72 25 -73 23 -73 24 -74 22 -76 20 -76 22 -78 20 -79 18 -80 17 -81 16 …

Member Avatar for b1izzard
0
254
Member Avatar for im abcd

So my android project should show a startup image at first and then start the program but instead it shows a blank black screen . Here is my code : My class.java : package abcd.pack; import java.util.Timer; import abcd.pack.R.layout; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class Class extends Activity …

Member Avatar for peter_budo
0
122
Member Avatar for HasNor

Dear experties, I need your help. I have a problem when i want to view user remark that view in 1 line without enter to the next line as user enter during create remark. But it's ok if I view that remark using text area but need to scroll.. how …

Member Avatar for HasNor
0
95
Member Avatar for Lyandor

Hey guys. Can you have a look at my queries? I can't spot the error with my foreign key linking. As of now, the table staff has already existed: StaffID char(7) Staff_Name varchar(50) Position varchar(50) And now I'm trying to create a new table called SalesInvoice: create table SalesInvoice( SalesInvoiceID …

Member Avatar for seslie
0
177
Member Avatar for nikoerror

**Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/u377251981/public_html/foll.php on line 69 how to fix this error? please help me... ** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css" media="all"> @import "style.css"; </style> <script type="text/javascript"> function …

Member Avatar for nikoerror
0
182

The End.