43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for henryz_box

I'm using VisualBasic.Net 2010 Pro, Windows Form Application, Win. 7, Wamp Server & MySQL Database This CODE is from the Declarations Section of the main form. Imports MySql.Data.MySqlClient Public Class Login Private mysql_host As String = "Localhost" Private mysql_player_log As String = "root" Private mysql_pass As String = "" Private …

Software Development mysql vb.net
Member Avatar for henryz_box
0
1K
Member Avatar for MasterHacker110

Hello, I have this program that will check and see if the email address the user entered contains valid characters and the @ and . character. The only problem is that my program isn't working... When I enter a valid email address it says it is invalid, when I enter …

Software Development pascal
Member Avatar for Mya:)
0
6K
Member Avatar for Slavi

So, I've been making a gui for a client to connect to a server using it. What I want is when I press Login to connect with the specfied Server address and port name on the gui. If I have hardcoded the Server and port it works but I don't …

Software Development gui java
Member Avatar for Slavi
0
199
Member Avatar for sing1006

JMenuItem mntmLoad = new JMenuItem("Load"); mntmLoad.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { JFileChooser chooser = new JFileChooser(); chooser.setMultiSelectionEnabled(true); int option = chooser.showOpenDialog(testgui.this); if (option == JFileChooser.APPROVE_OPTION) { File[] sf = chooser.getSelectedFiles(); String filelist = "nothing"; if (sf.length > 0) filelist = sf[0].getName(); for (int i = 1; i < …

Software Development java
Member Avatar for sing1006
0
799
Member Avatar for moaz.amin.37

Actually I have two questions 1) Why we not create Object with simple mathod like [(class name) (object name;)] in java 2) Why we use Constructor to create object code below class Run{} Run obj=new Run() why not use this code Run obj=new Run; Please relese my confusion

Software Development java
Member Avatar for Slavi
0
316
Member Avatar for harrykokil

hi guys.. im new to this forum and im certain its here that all my problems will be solved. In fact I have a traffic simulation project in python. Im stuck at the very start since ive never programmed in python. I would like to know how to make an …

Software Development python
Member Avatar for TrustyTony
0
10K
Member Avatar for kiail

Hello, I'm currently working with a program that using the reportviewer in VS 2012. I have been looking online since yesterday, trying to find any kind of tutorial on how to switch between reports. I have this so far, but it doesn't work. I have another snippet I've been trying …

Software Development asp.net
Member Avatar for kiail
0
273
Member Avatar for henryz_box

I found this along my way of trying to learn how to use databases 1."SELECT usname, password FROM userinfo " & 2." WHERE usname = '" & textbox1.Text & "'" & 3." AND [password] = '" & textbox2.Text & "'" I would like to know how I would execute code …

Software Development sql vb.net
Member Avatar for henryz_box
0
14K
Member Avatar for cyclopsvs

hello python developers, i recently started working on a simple xml rpc application, the simple version is completly working but when i wanted to extend it and add some more functionality i ran into some troubles. i want to register functions from different classes as server methods, i thought i …

Software Development mathematics python xml
Member Avatar for Benjamin_9
0
721
Member Avatar for edogg23

Hello. I am a complete newbit to Python. I am trying to read a text file (which is actually an svg file) and add a line to the text file. I would also like to remove certain text from the file. I am trying to edit some of the tags …

Software Development file-system python
Member Avatar for edogg23
0
376
Member Avatar for airhalynn101

I created a form with datagridview for a list of clients. Now, I want to add a Search funtionality for my list, so that the user can just type in the value he wants to see and the row with that value will get selected. Also, I want to add …

Software Development vb.net
Member Avatar for airhalynn101
0
611
Member Avatar for sing1006

for(int i = 0; i < program.size(); i++) if(program.get(i).contains(remp)) with the coding above, i can search and display all string in my arraylist that contains "hit2080". for example HIT2080___Introduction to Programming___ALL___Core___NULL___NULL HIT1307___Internet Technologies___ALL___Core___NULL___HIT2080 but i just want to search and display the first token that contains string "hit2080". Is there …

Software Development java seo
Member Avatar for sing1006
0
288
Member Avatar for RonKevinT.Manuela

I have a problem with my code in deleting of a record in datagridview and database(see attatchment)...for some reason I cant delete the data in my database...heres the code: private void btnDelete_Click(object sender, EventArgs e) { int selectedindex=dataGridView1.CurrentCell.RowIndex; string deleted; try { cnn.Open(); if (MessageBox.Show("Are you sure you want to …

Software Development c# vb.net video
Member Avatar for ChrisHunter
0
258
Member Avatar for Doogledude123

I know with Lists you can instantiate them to an ArrayList, but is this generally a good idea? Is it better to do 'List<?> list = new ArrayList<?>();' rather then 'ArrayList<?> aList = new ArrayList<?>();'?

Software Development java
Member Avatar for JamesCherrill
0
182
Member Avatar for PerplexedB

I have this routine that works in outlook 2010 but not in outlook 2013 (365). ` Public Sub readTextFile(oFolder As eFolder) If oFolder = NotSupported Then Exit Sub If oFolder = Inbox Then ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Views("MgInbox") Else ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderSentMail).Views("MgSentMail") End If Dim oTV As Outlook.TableView Set oTV = ActiveExplorer.CurrentView …

Software Development visual-basic
Member Avatar for PerplexedB
0
388
Member Avatar for pspwxp fan

Hi, My task is to create a library/precompiled header for use with MASM. I am using Code:Blocks. I have googled quite a bit and haven't come up with an appropriate solution. I was hoping someone could point me in the right direction. This is what i have done so far: …

Software Development c
Member Avatar for Ancient Dragon
0
2K
Member Avatar for Doogledude123

I know you can create nested classed (or just classes declared outside of the class in the same file) but what is the point of doing this? Why not just create a new class file?

Software Development java programming-construct
Member Avatar for JamesCherrill
0
203
Member Avatar for GagaCode

hey all, i have a little issue here with the below however the wired thing that i encoutred is that the below code run only for one time perfectly and when i invoked it again it displayes the error : " The ConnectionString property has not been initialized. " private …

Software Development microsoft-access
Member Avatar for GagaCode
0
322
Member Avatar for wizard25

Hi, I have an assignment. I need to write code in logic programming language SWI-Prolog. Its very hard and I am going to appreciate if you help me :D. This is the assigment: Print 2D array size of (width x height) in spiral order. More explanation and example: You have …

Software Development matrix-multiplication
Member Avatar for TrustyTony
0
772
Member Avatar for flebber

What I am trying to acheive is to parse an xml file break it up into useful components and push it to a multi table SQL database. But I cannot get off the ground in the basics. Take an xml file like this [Click Here](http://old.racingnsw.com.au/Site/_content/racebooks/20140513HAWK0.xml) Which at the start is …

Software Development career python xml
Member Avatar for Gribouillis
0
1K
Member Avatar for mcdczzz

it posible to save multiple file directory using listbox?how would i do it?

Software Development file-system visual-basic
0
105
Member Avatar for kevndcks

Hello developers, i have got a problem that i have been trying to solve all day and would be glad if anyone here can help. I have a Java port scanning application which scans for open ports and displays the results in a textarea called "taOutput" when the user clicks …

Software Development java
Member Avatar for happygeek
0
3K
Member Avatar for Mr.UNOwen

Hello, So I'm aware that OpenGL is Column major and DirectX is Row major, but how does that translate into a basic 1D array? So given the below visual matrix, what would the first 3 in the array of each platform and which 3 would be the x,y and z …

Software Development c++ matrix-multiplication opengl
Member Avatar for Mr.UNOwen
0
2K
Member Avatar for taylorjames01

Hi I'm new to programming but have learned pretty fast and have most of my small application figured out. But the part that I'm working on now has got me. I have a form with some text boxes that after they are filled out get added as a new row …

Software Development dataset vb.net
Member Avatar for taylorjames01
0
273
Member Avatar for ivan3510

Hi! A task was to solve a problem using threads (sum up two arrays), but so that you have a global const which will represent number of threads you want to use. Somehow, this doesn't work, and Im not sure if this is correct way to do it. Thanks for …

Software Development c++
Member Avatar for ivan3510
0
4K
Member Avatar for Stefan_2

I need a way to print(and later on compare - but for now just print) characters 2 by 2 as in: I have a string of 1F190307091810 and I have to print out: 1F 19 03 04 09 18 10. I need this for Baudot code(I have segments of code …

Software Development c
Member Avatar for Stefan_2
0
357
Member Avatar for Sarkurd

Hi i created a text file and put some numbers to it but when i read from it, the last number will be printed out twice #include <iostream> #include <fstream> #include <string> using namespace std; int main() { ofstream newfile("numbers.txt", ios::out); if (!newfile){ cout << "File not found" << endl; …

Software Development c++ file-system ios
Member Avatar for Sarkurd
0
173
Member Avatar for Dave_5

Hi guys, I'm hoping someone here can help. I am to develop an application for a project which keeps track of tennis scores. Having not been a tennis fan whatsoever during my life I am in need of some assistance developing the ontology (rules) for the apps logic. Can anyone …

Software Development algorithm objective-c
Member Avatar for Dave_5
0
627
Member Avatar for Centorpe

Why does textbox text appear faded when 'enable' propery is set to false?

Software Development vb.net
Member Avatar for Centorpe
0
88
Member Avatar for Papa_Don

Hi Group! I'm curious to know, is it is possible to build a custom control in Visual Basic? Specifically, I want to build a control that would be similar that would be similar to a ListView (in the Detail "view"). However the difference would be in how it actually displays. …

Software Development listview vb.net visual-basic
Member Avatar for deletedaccount
0
281
Member Avatar for Joe_6

I have a csv script that runs within a sequence on a set of gathered urls like so: threaded(urls, write_csv, num_threads=5). The script writes to the csv but seems to rewrite the first row for each url rather than writing to new rows for each subsequent url. I'm new to …

Software Development perl python
Member Avatar for Joe_6
0
182
Member Avatar for akkbkht

Hi there. I am making an application in VB.Net. In which i am scanning some system folders and on the execution time it gives me the error; E.g, access to the path "C:\any system file" is denied. Is there any code you people have that is edited in to the …

Software Development file-system vb.net visual-basic
Member Avatar for deletedaccount
0
3K
Member Avatar for nidheeshkumar.r

hey, i have stored a few images in mySQL database as BLOB.Now i want to retrieve and display the images on frame as a gallery/grid view.I have displayed one image in a frame but when i tried to add more images it fails...Can anyone help with sample code,coz im new …

Software Development image java mysql
Member Avatar for JamesCherrill
0
1K
Member Avatar for mc3330418

I have text file that has multiple x and y coordinates. I'm reding them in and trying to send them to drawrect. The problem I'm having is that the drawRect will only draw the last x and y that is read in here is how I'm reading in. for (int …

Software Development java
Member Avatar for JamesCherrill
0
486
Member Avatar for chubbyy.putto

I dont know what is wrong. The output didnt show anythin. FYI I have p6.dat on same dic. it just the out put didnt print the number. #include <iostream> #include <fstream> using namespace std; const int mySize = 15; const int myStop = 3; void impliedTask(int *&,float *&); int main …

Software Development c++
Member Avatar for Ancient Dragon
0
178
Member Avatar for tshukela.george

hi there I have made a connection to a database, and my problem is, when I try to add a new record to a table, it is fine for that time. Next time when I check the record is not there

Software Development vb.net
Member Avatar for Reverend Jim
0
173
Member Avatar for newbiewwcode

Member Access Operators: . and -> http://msdn.microsoft.com/en-us/library/b930c881.aspx I read the above article and played around with some codes. I thought line 25 and 26 would work but they didn't. Can you guys please tell me why? Thanks for helping! #include <iostream> using namespace std; class State { private: int* state; …

Software Development c++ microsoft-access
Member Avatar for newbiewwcode
0
208
Member Avatar for bushra mahboob

You are required to write a C++ program using loop and switch statement. The program should display even or odd numbers from 1 to 50 depending upon the option given by the user.

Software Development c++
Member Avatar for iamthwee
0
104
Member Avatar for cahram

Hi, I'm new to Python and have a task of reading a user input text file that is tab-delimited and contains 4 columns in each line: Authors, Year, Title and Journal. I currently am just able to open a file, and now I don't know how to begin parsing the …

Software Development programming-construct python
Member Avatar for nihad.aziz
0
4K
Member Avatar for Alxprog

Wikipedia page on DVDVideoSoft says it's written in C++ Qt and C#. So my question is this : in particular regarding the above mentioned product and in general what's written (or should be written) in C++Qt and what in C#?

Software Development c c# c++ qt
Member Avatar for Alxprog
0
644
Member Avatar for masonketcham

To my Inventory Program Part 4 there are three parts and I was able to compile successfully with the first two. I end up get several errors with part 3 and I am unsure to why. This is what I have. import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.FlowLayout; import …

Software Development gui java java-swing
Member Avatar for Doogledude123
0
350
Member Avatar for bejfake

Hi, I have such simple structure in unmanaged C++: struct Cam { char ip[16]; char login[16]; char pass[16]; char name[16]; }; and C# marshalled structure: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] public struct Cam { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string ip; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string login; …

Software Development c# c++
Member Avatar for bejfake
0
2K
Member Avatar for Yogesh_5

vb color commondialog box return color if i am selecting cancel in color dialog box.how we can handle this. commondlg.showcolor lblcolor.forecolor=commondlg.color

Software Development visual-basic
Member Avatar for Yogesh_5
0
292
Member Avatar for Tinnin

Hi All, I'm running through "Head First Java" and I'm hitting a snag with an exercise involving RMI. My Classes ---- package myremoteimpl; import java.rmi.*; import java.rmi.server.*; /** * * @author Michael */ public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote { public String sayHello() { return "Server says, 'Hey'"; } …

Software Development cybersecurity java java-netbeans
Member Avatar for Tinnin
0
4K
Member Avatar for bejfake

Hi, I start with code: int main() { Dict d; int n; std::cin >> n; char word[100]; for (int i = 0; i < n; i++) { std::cin >> word; d.addWord(word); } d.addWord("dog"); d.addWord("drog"); .... return 0; } I don't know why when I call method addWord manually, i.e. calls …

Software Development c++
Member Avatar for bejfake
0
243
Member Avatar for airhalynn101

I have an identity (auto-increment) column in my mssql table, which is also my primary key. I want to use these numbers on my form, such that when I open that form, the auto-increment id will already be displayed on a textbox (so I wont have to type it in …

Software Development mssql sql vb.net
Member Avatar for airhalynn101
0
2K
Member Avatar for changeworld4u

Hi Team, I have a file which contain following data like BKP0000032183140217000019 053IGZYEVSDOX .........field 2....... field3.....field4..... BKP0000032284140217000019CCTP1220 ............... BKP0000032384140217000019CA ..................... each line has 5 fields Now using shell script i am trying to extract field 4 based on condition that line start with BKP and contain code 84 and CA …

Software Development programming-construct shell-scripting
Member Avatar for changeworld4u
0
288
Member Avatar for chubbyy.putto

I got an error: -Functions that differ only in their return type cannnot be overload (#8) -Implicit conversion loses integer precision: "time_t'(aka "lomg") to unsigned int (#14) -Implicit cnversion loses integer precision: long to int (#18) -Functions that differ only in their return type cannnot be overload (#24) #include <iostream> …

Software Development c++
Member Avatar for chubbyy.putto
0
160
Member Avatar for jared.geli

Guys I need your help again I use this code to copy values from excel spreadsheet to datagrid. Try 's = Clipboard.GetText() Dim tArr() As String Dim arT() As String Dim i, ii As Integer Dim c, cc, r As Integer tArr = Clipboard.GetText().Split(Environment.NewLine) r = Form1.DataGridView1.SelectedCells(0).RowIndex c = Form1.DataGridView1.SelectedCells(0).ColumnIndex …

Software Development microsoft-office vb.net
Member Avatar for jared.geli
0
211
Member Avatar for Papa_Don

Group, I've got a protected spreadsheet at work that prevents me from creating links or writing macro's to do some repetitive copying and pasting from one spreadsheet to another. I hope someone can help. I'd like to use VB (if possible) to copy from a specific range in Spreadsheet1.Sheet1 (let's …

Software Development microsoft-office seo vb.net video
Member Avatar for jared.geli
0
404

The End.