132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for niths

Hello, I have a page where i can upload files. so when i upload a file with .odt extension it should convert those files to word document files.. so can any help me.. Thank you. [CODE]protected void btnUpdate_Click(object sender, EventArgs e) { string destination = Server.MapPath("~/Documents" + "\\" + name …

Software Development
Member Avatar for harishbansal90
0
470
Member Avatar for bangor_boy

I have been playing about with some code tonight and trying to add things to it, so i know it wont make sense when talking about cats and dogs, females and males and music, I run this code and the GUI comes up I click add CD and the required …

Software Development gui java java-swing
Member Avatar for NormR1
0
855
Member Avatar for zela

I have this text box which display multiple lines from a text file on my form, I want the box resize as the form gets resize without cutting any text in it, the textbox display multiple line of text and i want a textwrapping feature if it possible on the …

Software Development visual-basic
Member Avatar for Deepak Shitole
0
812
Member Avatar for hardik.rajani

Hi I was trying to make a remote desktop program using java socket programming. I have been successful to develop it for LAN. But i am wondering that how to use the same application over internet. As i am not an networking guy, i don't have enough knowledge of tunneling …

Software Development java socket-programming
Member Avatar for Aviras
0
2K
Member Avatar for huBelial

Hello, I have a program that reads images from my access database. What I'm trying to do now is write the images out to a folder but I don't know where to begin. The "ms" variable holds the images. [CODE]Option Explicit On Public Class Form1 Private cn As ADODB.Connection Private …

Software Development image microsoft-access open-source vb.net
Member Avatar for Netcode
0
352
Member Avatar for nai_christop

hi...i want to save the date from datepicker control to database access... i have coded everything except datepicker...its my 1st time to use this control.. thank you...

Software Development visual-basic
Member Avatar for Deepak Shitole
0
104
Member Avatar for ddanbe

Although [url=http://en.wikipedia.org/wiki/Roman_numerals]roman numerals[/url] sneak in our lives from time to time, we(luckily) don't use them very often. Probably the reason why the Romans where not that good at calculating things. That changed, more than 1000 years later, with [url=http://en.wikipedia.org/wiki/Fibonacci]this person[/url] who introduced to the Western world the number system we …

Software Development
Member Avatar for gracefull
0
1K
Member Avatar for jas2010

I wanted to connect mysql with C# But I was faced with the following error error text:connection unexpectedly terminated Please help me

Software Development c# mysql
Member Avatar for shahnawaz1992
0
243
Member Avatar for Mike Bishop

i have a calculation and the results are outputting like so 96.5471447543161 i would like to format this text box to only show 96.54 (no rounding) below is the code i am using. [CODE] Dim d1 As Double = Nothing d1 = ((Val(Me.txtgoodsout.Text) + (Val(Me.txtnrft.Text))) / Val(Me.txtrawin.Text)) * 100 Me.txtyield.Text …

Software Development vb.net
Member Avatar for bLuEmEzzy
0
132
Member Avatar for sathya88

am try to create notepad in java... menu item actionlisteners are not working...except exit... what is the problem with my code??? and is there any sequence follow... because am try to use jScrollpane the text area will be blocked??? code is.. [CODE]import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import …

Software Development java java-jsp java-swing
Member Avatar for JamesCherrill
0
233
Member Avatar for king03

What's wrong with my code? Why can't I output the "hahahaha" string from public constructor1?? help me please. [CODE]using System; namespace hahahahahahahahaha { class Program { public static void Main(string[] args) { constructor1 obj = new constructor1(); } } public class constructor1 { public constructor1(); { Console.WriteLine("hahahaha"); } } }[/CODE]

Software Development oop
Member Avatar for Mitja Bonca
0
148
Member Avatar for dorumonsg

Correct me if I am wrong, ALL web sites viewed have their htm/html/aspx/jsp pages downloaded into the Temporary Internet Files right? I am trying to access the Temporary Internet Files to collect and copy Information from these web sites. For example if I view a page on Wikipedia, I want …

Software Development visual-studio
Member Avatar for dorumonsg
0
158
Member Avatar for vergil1983

I have been given a question to write a program to read a number x from the user and then print the value of ln(1+x). I have been given the following equation to perform the calculation: [CODE] 1 2 3 4 5 6 100 ln(1+x) = x x x x …

Software Development c++
Member Avatar for raptr_dflo
0
215
Member Avatar for lovely ari

[COLOR="Red"]hi there how you doing guyz i want to make pong game in VB.net i want it for one player like this one [url]http://www.quantumstate.co.uk/pongscreen.png[/url] i didn't find good tutorials all what i found was a tutorials to make it in VB6 i need it in VB.net any tutorials or full …

Software Development vb.net
Member Avatar for et289
0
185
Member Avatar for mikejs

Hi is it possible to fill a list box from two SQL tables firstname lastname thanks M

Software Development sql vb.net
Member Avatar for mikejs
0
141
Member Avatar for clyo cleopas

[CODE] //A c++ program that calculate and print parking charges #include <iostream> using namespace std; #include <iomanip> const double minimumFee = 7.00; const double hourlyFee = 1.75; const int numOfCustomers = 12; const int numOfMinsPerHour = 60; void inputAndValidate(int&,int&,int&,int&); void convertToMinutes(int&,int&,int&,int&); void convertBackToTime(int&,int&,int&); double calcCharge(int,int); int entranceMinutes,exitMinutes,entranceTimeInMins,exitTimeInMins ; int minutesParked,parkedMinutes,entranceHour,exitHour,parkedTime …

Software Development c++
Member Avatar for raptr_dflo
0
1K
Member Avatar for farooqaaa

How to embed a resource programatically? Say you have an exe file located in "C:\test.exe" (to be used as a resource). When I run this app it will check for "test.exe" file and embed into itself. So the next time I run the app it will have the "test.exe" embedded …

Software Development
Member Avatar for kvprajapati
0
177
Member Avatar for TestVBnet

I have got My 1st DataTable TableA from Database which is given below [CODE=text] Item Place ------------------------- ItemA PlaceA ItemC PlaceC[/CODE] I have got My 2nd DataTable TableB from Database which is given below [CODE=text] Item Status --------------------------- ItemB ItemC Complete[/CODE] The New Data Table will Look Like Below [CODE=text] …

Software Development vb.net
Member Avatar for Netcode
0
89
Member Avatar for srinivashwp

i am facing difficulty in updating msacess database for several columns with following code [CODE]Public Sub connect() Dim path As String path = App.path & "\chss.mdb" cnn.CursorLocation = adUseClient If rs.State = 1 Then rs.Close cnn.Open "provider = microsoft.jet.oledb.4.0;persist security info=false;data source = " & path End Sub Public Sub …

Software Development open-source visual-basic
Member Avatar for foxyuva
0
153
Member Avatar for aldeene

i'm using this code [CODE] If txtCashTendered.Text = "" Then MsgBox("Input Amount First!") txtCashTendered.Focus() Exit Sub End If If ctbTotal.Text < txtCashTendered.Text Then Try Dim x x = MsgBox("Finalize Transaction?", MsgBoxStyle.YesNo) If x = vbYes Then txtCashChange.Text = Format(txtCashTendered.Text - ctbTotal.Text, ".00") FinalizeTransaction() End If Catch ex As Exception MsgBox("Create …

Software Development vb.net
Member Avatar for aldeene
0
93
Member Avatar for vijaybrar

Hi I need help with this, supposed to be when i input a string example "ab12*&" there are three output Number of Letters: 2 number of Integers: 2 number of Special Character: 2 but my program shows the number of character [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e …

Software Development vb.net
Member Avatar for Pgmer
0
109
Member Avatar for ougesh

Hi, i am doing a simple application using vb8 and i want to load a form named form2 on my main form(form1) rather than opening form2 in another window.. can anyone please help. Thank you.

Software Development visual-basic
Member Avatar for foxyuva
0
146
Member Avatar for mikejs

Hi I have set pane1.hide() and panel2.hide on form load however the panel still shows when I had only one panel it worked fine the new panel is exactly the same size placed directly over the other. Why does it still show? I know I could use multiple forms it …

Software Development vb.net
Member Avatar for mikejs
0
78
Member Avatar for murnesty

[CODE]union _Test { unsigned char keydata[4]; struct _Member { unsigned char a; unsigned char b; unsigned char c; unsigned char d; }Member; }Test; Test.keydata[4]= { 1, 2, 3, 4}; [/CODE] error on line 12: expected expression before '{' token. If I declare without union, [CODE]const unsigned char keydata[NUM_KEYS]={ 2, 1, …

Software Development c++
Member Avatar for L7Sqr
0
2K
Member Avatar for logan_231_2009

hey guyz.. I don't understand the REAL job of a controller in MVC pattern. Can anyone show me a simple program with the controller's code? thanks a lot

Software Development c++
Member Avatar for Stefano Mtangoo
0
796
Member Avatar for sandeepparekh9

hi.. i just made two function related to excel . 1. Merging all sheet of excel as tables in single Dataset 2. Exporting a dataset to Excel File .(all the tables of dataset as sheets) i just wanted to share.. i hope it becomes helpful to you. ps: Dont forget …

Software Development dataset microsoft-office vb.net
Member Avatar for sandeepparekh9
0
542
Member Avatar for Oneryavuz

i have a control dll and i use this control in my project then i change this controls codes after i do it . appears some error on this lines in form1[designer] [ICODE] Me.Dentisyon1 = New WindowsControlLibrary1.dentisyon Friend WithEvents Dentisyon1 As WindowsControlLibrary1.dentisyon [/ICODE] what should i do? thx for answers

Software Development vb.net
Member Avatar for Oneryavuz
0
111
Member Avatar for restrictment

Hey guys, I need a really simple code for chatting across consoles. I have looked up many tutorials on how to do this, yet they all seem to fail. All I want is a VERY simple chat that sends data from the client to a file, and then receives the …

Software Development c c# c++ client-server file-stream web-server
Member Avatar for restrictment
0
1K
Member Avatar for king03

Help please I am trying to output a value of an array, for example I want to output 7. How do I do it? Here's the code: [CODE]{ class Program { public static void Main(string[] args) { double [] kush = new double [2] {5.2,7}; Console.WriteLine(kush[2]); Console.ReadKey(true); } } }[/CODE] …

Software Development
Member Avatar for king03
0
93
Member Avatar for Oneryavuz

i for example i save ppt in OLEDB OLE Object :-/ and i need to open this powerpoint file in my program how can i do that :| thx for answers :|

Software Development vb.net
Member Avatar for Oneryavuz
0
139
Member Avatar for Oneryavuz

i have a table and oleobj column in this table. i save some files to oleobj. and i need to open them how i can do that. for example i save ppt in oleobj and ineed to open this powerpoint file how can i do .. 2nd question. can i …

Software Development vb.net
Member Avatar for Oneryavuz
0
477
Member Avatar for blivori

I currently have this piece of code: [CODE]Sub Button1Click(sender As Object, e As EventArgs) If dlgFolder.ShowDialog = Windows.Forms.DialogResult.OK Then txtPath.Text = dlgFolder.SelectedPath Try Dim CopyFile As String = Path.Combine(Directory.GetCurrentDirectory, "pdftk.exe") Dim CopyLocation As String = Path.Combine(dlgFolder.SelectedPath, "pdftk.exe") Dim pyScript As String = Path.Combine(Directory.GetCurrentDirectory, "pdfmerge.py") Dim pyLocation As String = Path.Combine(dlgFolder.SelectedPath, …

Software Development vb.net
Member Avatar for Reverend Jim
0
431
Member Avatar for jimmylee7706

I'm trying to make a simple text game just for fun. Java is a language I want to learn so making a game is a great start. I'm having problem with my if statement however. This is an example of whats happening. This is only a few hours into the …

Software Development java java-swing programming-construct
Member Avatar for jimmylee7706
0
235
Member Avatar for JoshuaBurleson

I'm trying to understand utilizing classes and their methods. I made a simple program to exit or print 'Will continue' given a word. however I keep getting a TypeError for self and through reading my books and searching online I'm still not quite sure why. the code is: [CODE]class OffSwitch(object): …

Software Development python
Member Avatar for Enalicho
0
242
Member Avatar for CaptainHook

I have written some code to count the number of upper case letters in a string and the last line will not work? I am trying to print a statement that concatenates a line of text and an integer variable: [CODE]print ("The number of upper case letters are: " + …

Software Development python
Member Avatar for CaptainHook
0
240
Member Avatar for CaptainHook

I am trying to write code to count the number of upper case letters in a string using Python. I have written the following but instead of the code returning the number of Upper Case letters it returns []? An help would be gratefully recieved. [CODE]import re while True: strPassword …

Software Development python
Member Avatar for CaptainHook
0
305
Member Avatar for DarkPheonix

[CODE] import java.io.*; class BinaryCounter{ private String b; private int binary; public String binaryConverter(int binary){ this.binary = binary; String temp; temp = Integer.toBinaryString(binary); return temp; } public String INCR(String b){ this.b = b; char[] temp1 = new char[b.length()]; temp1 = b.toCharArray(); char[] temp2 = new char[temp1.length+1]; for(int h = 0 …

Software Development java
Member Avatar for DarkPheonix
0
895
Member Avatar for jmurph333

I need to simulate a mouse click, but I need it to simulate a click that will effect the open window (In this case the browser). Is there an easy way to do this or is it not possible? Any help is appreciated.

Software Development
Member Avatar for nmaillet
0
639
Member Avatar for pudgeeboy

hi guys got a question here how can you display output 1 to 35 in a variable declared with the value of 1 (a=1; with the condition of 1>100 ??? in a for loop structure sorry if i dont make sense guys.. im kinda new to this thing

Software Development java
Member Avatar for Anuradha Mandal
0
158
Member Avatar for exicar

Hi, I´ve got following code for a office 2010 like tabcontrol in .NET 4.0 [CODE]<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ControlTemplate x:Key="OfficeTabControl" TargetType="{x:Type TabControl}"> <ControlTemplate.Resources> <Style TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid SnapsToDevicePixels="True"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="MouseOver"> <Storyboard> <DoubleAnimation Storyboard.TargetName="hoverShape" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:.1"/> </Storyboard> </VisualState> <VisualState Name="Normal"> <Storyboard> <DoubleAnimation …

Software Development asp.net microsoft-office
Member Avatar for nmaillet
0
352
Member Avatar for nuclear

Its something really basic, but for some reason i cant get my dinamic array to work. Keep getting a message that i need to add the "[]", but then i would create a static array, not a dinamic one. The code: [CODE]program Noname0; var arr : array of integer; begin …

Software Development pascal
Member Avatar for Duoas
0
127
Member Avatar for Niles64

Hi Please take a look at [CODE=python] class ShortInputException(Exception): #QUESTION: Why do I have to inherit from the "Exception" class? def __init__(self, length, atleast): Exception.__init__(self) #QUESTION: Why do I have to add this? self.length = length self.atleast = atleast try: s = raw_input('Enter something --> ') if len(s) < 3: …

Software Development python
Member Avatar for Niles64
0
122
Member Avatar for clousot

Hello, I know the break or continue statements for the loops... But I have a if stetement that I would like to exit from and I don't know how to do [code] value = -1 if true: print 'hello world' # Some unexpected value is set so I would like …

Software Development python
Member Avatar for woooee
0
4K
Member Avatar for singh_soorma94

Hi, I made this thread for our groups assignment. We are suppose to get 3 program codes, at least 250 lines each, from anyone that created one. As soon as we retrieve them, we are supposed to evaluate them and find out what type of things they used and how …

Software Development java
Member Avatar for sirlink99
0
161
Member Avatar for kayoh

[CODE]Dim Processors(4) As ProcessorType For j = 1 To 4 Step 1 Put #filenum, WritePos, Processors(j).byte0 WritePos = WritePos + 1[/CODE] I'm in the process of translating this VBA code to python, and essentially what it does is creates 4 Processor Objects but as you can see from the for …

Software Development python visual-basic
Member Avatar for kayoh
0
288
Member Avatar for gge18

hey!! this is my first time to post question in this board. i learn a lots from this place. now , i really got a problem for this programming. anybody can help me!!!! i done "Add" part but i don't konw right or wrong and for "pass" i really need …

Software Development linked-list python
Member Avatar for CoscNinja
0
426
Member Avatar for dreadiscool

Hi everyone. I have a web server that I wrote in C#, and it serves HTML documents pretty fine. The code is a bit messy, and I'm going to clean it up, but my main question is how to handle POST when submit buttons are used in HTML? Thanks! This …

Member Avatar for thines01
0
3K
Member Avatar for bettybarnes

What is the c++ code of this c language code [CODE]printf("%d", b[i])[/CODE] ??

Software Development c++
Member Avatar for bettybarnes
0
101
Member Avatar for iampord

Is anybody know what is the easiest way to encrypt and decrypt text from textbox? Thank you in advance. Good day!

Software Development encryption vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for hailey.o3

this is the output of the program. Enter num1: 2 Enter num2: 2 Enter number of iteration: 2 1=1.5 final answer=2.5 we are assigned to do the program . it's really difficult .

Software Development c++ programming-construct
Member Avatar for Fbody
0
136

The End.