64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for samueal

I need to disconnect internet connection of a single system which I'm using now,connected in LAN. And I need to Connect again to the internet. How could i make this. I used [CODE]ReleaseDHCPLease [/CODE] and [CODE]RenewDHCPLease [/CODE] But it didn't work Help me

Member Avatar for samueal
0
604
Member Avatar for gulbano

Hi I have two forms MainForm and DisplayForm. From MainForm i get the file name on button click and load the form in picturebox placed on display form... Can any one tell me how to do that??? Thanks in advance

Member Avatar for abelLazm
0
128
Member Avatar for ninjatalon

I have a table that i'm trying to use as a template that I can then copy to a new page. i only got this much [CODE] Dim oWord As word.Application Dim oDoc As word.Document Dim oTable As word.Table FileCopy("C:/1535.doc", "C:/1535_1" & ".doc") oWord = New word.Application oDoc = oWord.Documents.Open("C:/1535_1" …

Member Avatar for ninjatalon
0
2K
Member Avatar for aplee

Hi everyone, I have this problem, I developed the program in C#(winform) in my computer, when I try to publish it and install in my computer, it works fine. But when other users with different computer install, the are receiving this error : unable to install or run the application. …

Member Avatar for aplee
0
564
Member Avatar for vincezed

Hi all I am developing a form with a toggle button in the toolstrip ... i have given the property checkonclick to true and gave this coding in the click event.... I am loading a Groups (Usercontrol) in the MainPanel1 (panel).... It works for first time but does not work …

Member Avatar for abelLazm
0
303
Member Avatar for hirenpatel53

Hi All i am filling dataadapter by using query which contains joins Means Retraive data from Multiple Table and fill that data into datatable code shows as follows [CODE]_problemAdapter = new MySqlDataAdapter("SELECT xr.ID,vw.ID view_ID, vw.DX, vw.DisplayName, xr.Active,xr.Preferred FROM vw_Dignosis vw LEFT JOIN diagnosisXref xr ON vw.ID=xr.View_ID ORDER BY vw.DX;", SupraClasses.SupraConnection.Instance); …

Member Avatar for abelLazm
0
219
Member Avatar for ryan102

Alright, so basic story, is a website, with an application form, and what im trying to do, is when the user presses the "submit" button, i get an email with all of the information they entered into the field, i *almost* had it working, almost being, when pressing the "submit" …

Member Avatar for vibhaJ
0
235
Member Avatar for DavidB

I have almost no experience with PHP so I need some help with a small code block. My website used to be hosted by a company within my own time zone, so I used the following code to output the date and time on my web page: [CODE] <?php print …

Member Avatar for DavidB
0
107
Member Avatar for Steven_B

Hi everyone! I'm working on a page that adds a new client. One of the form's values is a telephone number. The user enters a 10 digit number with no symbols (ex: 2288675309). Before it goes into the DB(MySQL), I want to format it so that it has hyphens (ex: …

Member Avatar for Steven_B
0
191
Member Avatar for Derek Elensar

I have another problem... Let's start with said code: [code] #include <iostream> #include <fstream> //I have tried using fstream.h like my teacher instructs me to do/ #include <cstdlib> //but it gives me another error: see below, in actual post. using std::cout; using std::cin; using std::ios; using std::endl; //using namespace std; …

Member Avatar for Derek Elensar
0
1K
Member Avatar for imperialguy

Platform and Python installation info: [b]Platforms: Windows, OS X Python: Active State Python 2.7 wxPython: Version 2.9[/b] Here is a sample code in which I use a wxMessageBox: [code]import wx,os class Frame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(100, 100),style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | …

Member Avatar for vegaseat
0
1K
Member Avatar for Toikkala

Hi! On school we got exercise to calculate how much the length of substance grow when we know original length and temperature change. So,the case goes that i have value temperature coefficient of different substances and i have to multiply them. I'd like to it without doing several condition statements. …

Member Avatar for woooee
0
255
Member Avatar for [V]

For some reason, I can create temp files but I cannot write to them. Nothing is saved, and the file is always empty. What am I doing wrong? I've tried making it in /tmp, Ive specified mode=w+b, they all do the same. (nothing) [CODE] import tempfile def main(): test = …

Member Avatar for woooee
0
238
Member Avatar for sheennave

I seem to have a problem refreshing the data within my JTable. I know the code is being run through. I have a JTable which is populated from a selection in a combo box, on first click within the combo box the table displays the correct data. So basically the …

Member Avatar for sheennave
0
2K
Member Avatar for lexusdominus

Hey, ive got a problem. i cant seem to get Playsound() to work. Ive searched google, and alot of people say to go to properties - all configurations - linker - and add winmm.lib to the additional dependencies to link it. ok, so i did that, have included mmsystem.h, but …

Member Avatar for lexusdominus
0
98
Member Avatar for gynmd

hello, can someone explain me how this printf inside the function works? [CODE] #include<stdio.h> #define SIZE 10 void function(int [],int); int main() { int a[SIZE]={32,27,64,18,95,14,90,70,60,37}; function(a,SIZE); return 0; } void function(int b[],int size) { if(size>0){ function(&b[1],size-1); printf("%d ",b[0]); } } [/CODE]

Member Avatar for gynmd
0
173
Member Avatar for gcardonav

Hi guys: I created this code to read two file get their input and post certain output. My problem is that C++ is sorting out my output from smaller to greater. Is there a way that I can get c++ not to sort out the output. Thanks: Gus Here is …

Member Avatar for Sky Diploma
0
268
Member Avatar for VIeditorlover

I have a problem with this construction, can not find how to rewrite it properly. [CODE] private SqlParameter op <T> (T? t, string name) { SqlParameter sp = new SqlParameter(); sp.IsNullable = true; sp.ParameterName = name; sp.Value = t.HasValue ? t.Value : Convert.DBNull; return sp; } [/CODE]

Member Avatar for gusano79
0
221
Member Avatar for Ephexeve

I am reading a Python book for Pyton 2.5 (But I am doing Python 3). I am at the chapter classes and I got this part; "You can check whenever the function attribute was callable." [CODE]callable(tc,'talk',None)[/CODE] In Python3 we do not have callable anymore, so I checked on the internet, …

Member Avatar for TrustyTony
0
278
Member Avatar for Trepach

Environment: MS Visual Studio 2008. (Please transfer this thread to where it belongs.) Project type: Windows Forms Control Library. Goal: Get the pixel color from a given process' main window. Already achieved: I got the desired process's pointer by using [code]cli::array<Process ^>^ Proc = System::Diagnostics::Process::GetProcessesByName("Notepad");[/code] I believe I got the …

Member Avatar for Trepach
0
424
Member Avatar for Acegikmo

I'm trying to make a class called "Sprite", which is supposed to handle spritecards and such. However, I can't seem to be able to get the image height without having an image observer object. Do I have to pass the image observer from the main class to every sprite class …

Member Avatar for Ezzaral
0
197
Member Avatar for BleepyE

Hey Guys, Ive made a settings form for my latest StopWatch project. The stopwatch also includes a countdown timer. To set the time to countdown from, ive made a settings form in which you can enter a value into a textbox and when you start the countdown, it reads the …

Member Avatar for BleepyE
0
100
Member Avatar for rssk

hi all i have list like list1=[2,3,4] m = 'ma' [B]m = list1 * m[/B] wen i run the script i'm getting output like [B]TypeError: can't multiply sequence by non-int[/B] i need a output like [B][ma2,ma3,ma4][/B] so plzzzzz help me:(

Member Avatar for TrustyTony
0
222
Member Avatar for WolfShield

Hey all, I am working on a calculator program and am using a StringVar() for the Entry widget. What I need is to delete the last char from the StringVar() when the user hits the 'Backspace' button. I have everything bound and all, I just don't know what the code …

Member Avatar for WolfShield
0
1K
Member Avatar for lexusdominus

[CODE]if ( initialize == "off" && Iminor > 20 || Imedium > 10 || Isevere > 5 || Ifatal > 0 )[/CODE] the string type 'initialize' is cout'ing "on" and all of the values right of the AND operator are TRUE. Why is the subsequent code block for the if …

Member Avatar for lexusdominus
0
130
Member Avatar for zack_falcon

I have a finished program that I want to deploy to another computer. My professors told me an installer is required, so I tried my best to research, and came up with this: [URL="http://www.youtube.com/watch?v=Lcue0jo41AM"]http://www.youtube.com/watch?v=Lcue0jo41AM[/URL] That was a tutorial video, (he used Visual Studio 2008) and I tried to follow it …

Member Avatar for zack_falcon
0
257
Member Avatar for divyakrishnan

[B]Hi... I want to add a text field inside a div(div with id "my_div") tag dynamically(By clicking "Add" button). The code below shown is adding the new textfield after the submit button not inside the "my_div" div . [CODE] <html> <head> <script language="javascript"> function add() { var divTag = document.createElement("div"); …

Member Avatar for manu555
0
4K
Member Avatar for s.w.a

that code that i have problem with it is only accept 2 input from me y and how to solve it please Scanner keyboard = new Scanner(System.in); String IP = keyboard.nextLine(); String TTL = keyboard.nextLine(); Scanner kb = new Scanner(System.in); String conntype = kb.nextLine(); thanks in advance

Member Avatar for s.w.a
0
100
Member Avatar for happymadman

Where are the connections stored, are they in a list, how to I access them? I have a (-messy-) program that will allow the users to set there name and when they send input to the server it will come up with "Received: Blah from username" but I would like …

Member Avatar for happymadman
0
112
Member Avatar for lexusdominus

[CODE]int thetime = time(NULL); string in; stringstream out; out << thetime; in = out.str();[/CODE] that's my code for casting an integer into a string, but im having a little trouble reversing it to change a string into an int. :/ can anybody help me out? you have to include the …

Member Avatar for lexusdominus
0
70
Member Avatar for OldDeveloper01

Hello. I have been following a tutorial, but want to adapt it. Currently the code below echoes out all of the any occasion cards into a list. I would like them to be echoed into a 2 by 3 formation. 2 down, 3 along. Struggling to get it to do …

Member Avatar for OldDeveloper01
0
172
Member Avatar for leo88

Hi, i am here to ask some button control problem in Visual studio: [CODE] private void button1_Click(object sender, EventArgs e) { Report newMDIChild = new Report(); // Set the parent form of the child window. newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Show(); } [/CODE] In my program, when …

Member Avatar for polczym
0
387
Member Avatar for wenbnet

Hello Sir, I want to perform following action please help!!!!!!!!!! when i click on a item in a listview it would also show in a separate label..... i didn't know how to do this????? please help.

Member Avatar for Luc001
0
903
Member Avatar for divyakrishnan

Hi.. I have a problem with my project. I want to create dynamic radio button group with different names. [CODE]<script language="javascript"> function changeIt() { my_div.innerHTML = my_div.innerHTML +"<br>Skills<input type='text' name='mytext[]' value='mytext'>"; my_div.innerHTML = my_div.innerHTML +"<br><input type='radio' id='my' value='mytext' value='male' name='radio[]'>"; my_div.innerHTML = my_div.innerHTML +"<input type='radio' id='my' value='Female' name='radio[]'>"; //var el …

Member Avatar for divyakrishnan
0
5K
Member Avatar for KushMishra

Hello, I developed a website in which I added a master page,header and footer. In the header, I added a code but its not working fine because the pages that I am adding are in another folders as shown below... [CODE]<li><a href="Home.aspx">Home</a></li> <li><a href="KMApps/KMAppsHome.aspx">Applications</a></li> [/CODE] As you can see that …

Member Avatar for KushMishra
1
173
Member Avatar for CrazyProgrammer

My question is a simple one how do I bind a passwordBox defined in code ie: [CODE] public PasswordBox Password { get { return m_pwd; } } [/CODE] to a contentpresenter in wpf considering that the datacontext of the usercontrol is already set to the .cs file that contains the …

Member Avatar for CrazyProgrammer
0
220
Member Avatar for SMITA6076

[CODE]/*********************************************************************************** * * File: Customer.java * * Author: Austin Smith * * Date: 04/04/2011 * * Description: The Customer class handles all client information * such as name and address. * **********************************************************************************/ public class Customer { /*** Defaults/Constants ***/ public static final String DEFAULT_NAME = "ERROR: Invalid Name"; public static …

Member Avatar for SMITA6076
0
251
Member Avatar for ret801

can someone show me the syntax for inserting Number literals and strings into python strings like the print statement for example(i.e print("string %s"),(SumNum)) .. I have forgotten. and could someone explain the difference between syntax and semantics to me , i have forgotten that also XD

Member Avatar for ret801
0
139
Member Avatar for Labdabeta

I decided to post this problem in a new thread. I have a simple program in OpenGL and it doesn't work. What happens is that a transparent window forms and when you hit the 'X' it says that the Release of the Device Context and Rendering Context failed. Here is …

Member Avatar for Labdabeta
0
203
Member Avatar for lexusdominus

Hey, ive got two string types [CODE] string string1 = '1'; string string2 = '2'; string string3 = string1 + string2; [/CODE] Ok, ive simplified my code. I would like string3 to equal '3', and not '12'. I dont know anything about casting. Please dont tell me to use an …

Member Avatar for lexusdominus
0
121
Member Avatar for Bitprior

Hello, and greetings to those I may be speaking with in this thread over time. I present to you a problem, rather fringed and minimal and troublesome. First, I'll start by saying that I don't really consider myself a programmer so much as I do an enthusiast who now, suddenly, …

Member Avatar for rubberman
0
197
Member Avatar for Jsplinter

I'm just starting a search for a library or code sample for grouping numbers together based on their distance from one another. For instance, in the set{1,2,4,25,28,29}, is there an algorithm that would identify two groups of numbers subsetA{1,2,4} and subsetB{25,28,29}? Nothing really came up in my google search, but …

Member Avatar for Jsplinter
0
258
Member Avatar for Arunabh Nag

How do i find out the number, names and datatype of fields in an Access table.....using code.....

Member Avatar for SadiSerdari
0
2K
Member Avatar for stupendousomega

I have a user input an integer... But if it's really long, it throws an exception and starts looping infinitely. How would I make it cut the number after the first 7 digits and only use that? Like, if I inputted 654897654321648435435135813513843513543514, it would only accept 6548976. Please help.

Member Avatar for mrnutty
0
215
Member Avatar for kutuup

I've trawled the internet searchiing for an explaination on how to do this. I'm working on an assignment and we are told to "transmit a whole object to the server". As far as I know, the send function of winsock2 only allows you to send data of type char, so …

Member Avatar for kutuup
0
496
Member Avatar for niths

hi all, i had a problem with displaying the data in textbox. My code is here [CODE] string note = "SELECT Notes,NDate FROM Ticket_Notes WHERE TicketNo ='" + tktno.Text + "' "; SqlCommand cmd3 = new SqlCommand(note, con); SqlDataReader id = cmd3.ExecuteReader(); while (id.Read()) { dnotes = id.GetValue(0).ToString(); ndate = …

Member Avatar for CsharpChico
0
186
Member Avatar for raghujosh

I have a string [B]$initial_string = "<input type = 'checkbox' name = 'cb[]' value = '[a-zA-Z]'>"[/B] In this I want to [B]match the letters 'cb'[/B] and [B]replace it with '1cb'[/B]. The final string should look like this [B]$final_string = "<input type = 'checkbox' name = '1cb[]' value = '[a-zA-Z]'>"[/B] My …

Member Avatar for raghujosh
0
130
Member Avatar for BryantFury

hi ive been working from a few questions etc at college and im really stuck on this particularly one. i am given this code : [CODE] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Prac3 Task 8</title> </head> <body> <h1>Task 8</h1> <!-- …

Member Avatar for BryantFury
0
115
Member Avatar for arjunpk

hi the code which i use to export a data table to excel works fine..... but when i open the excel file it gives me the following warning THE FILE YOU ARE TRYING TO OPEN IS IN A DIFFERENT FORMAT THAN SPECIFIED BY THE EXTENSION. VERIFY THAT THE FILE IS …

Member Avatar for C#Jaap
0
307
Member Avatar for ssreevidya.m

hai, I want an expression for all alphabets and some special characters like . - ' etc. I use an expression like ^[-_'.,A-Za-z]* but it doesnt contain '. can i get a correct expression for this. Thanks in advance Sreevidya

Member Avatar for shakeb@techwave
0
140

The End.