43,549 Solved Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
it posible to save multiple file directory using listbox?how would i do it? Software Development file-system visual-basic | |
![]() | 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 |
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 | |
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 … | |
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++ | |
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 | |
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 | |
![]() | 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 ![]() |
Why does textbox text appear faded when 'enable' propery is set to false? Software Development vb.net | |
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 ![]() | |
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 … | |
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 ![]() | |
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 … | |
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 | |
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++ | |
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 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 | |
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++ ![]() | |
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 | |
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 | |
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; … | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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++ | |
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 | |
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 |
The End.