132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for missy_mi

Hi, i am having problem with my vb project to clear all item in my form. Below is the code that i am using : Dim ctrl, obj as control For Each ctrl in Me.controls If typeof ctrl is GroupBox then For Each obj In ctrl.Controls If typeof obj is …

Software Development visual-basic
Member Avatar for kb.net
0
208
Member Avatar for thekilon

I have this code. Its not the entire code because its a Blender addon with many lines that are unrelated to sockets so I give here only the part that deals with the sockets which I kept isolated from the rest of the program. def create_thread(): global threadSocket,listening threadSocket = …

Software Development python socket-programming
Member Avatar for thekilon
0
2K
Member Avatar for cambalinho

i put an image on form with WM_PAINT message. but the image is, only, showed after resize(for example) the form. why is that? did i forget any style\extended style?

Software Development c++
Member Avatar for cambalinho
0
298
Member Avatar for dumicom

Hi Guys, I'm using Python 2.7.3, How can I ask the user to enter "from datetime" & "to datetime" then plot the graph For eg. when user from datetime: 21/7/2014 0:00 to datetime: 22/7/2014 23:57 from datetime import datetime import matplotlib.pyplot as plt import matplotlib.dates as mdates x = [] …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for bananacat

I'm a little bit stuck at this moment. As of now, this is the code that I have: private void btnChangeImage_Click(object sender, EventArgs e) { using (OpenFileDialog openFileDialogForImgUser = new OpenFileDialog()) { string location = null; string fileName = null; openFileDialogForImgUser.Filter = "Image Files (*.jpg, *.png, *.gif, *.bmp)|*.jpg; *.png; *.gif; …

Software Development c# mysql visual-studio
Member Avatar for cgeier
0
4K
Member Avatar for hg_fs2002

I want to convert this piece of code using this memory layout transformation : https://software.intel.com/en-us/articles/memory-layout-transformations (Array of Structures to Structure of Arrays) Here are the codes before and after applying the transformation and I want to know whether I'm doing it right or not? Before: typedef struct { double x; …

Software Development c
Member Avatar for Hiroshe
0
270
Member Avatar for nathan.pavlovsky

Hello programmers! I am working on a custom tree class [with the code example being copied from Dietl's C++ How to Program, 9th edition]. It is in my fashion to copy all the code examples in the book when reading it (for muscle memory), but the authors created a custom …

Software Development c++
Member Avatar for nathan.pavlovsky
0
379
Member Avatar for abaddon2031

Im working on a code that loops through a folder break up the file names in it into specific parts and then reads off sertain parts of the broken name and writes it to a csv sile. The files ser formated as follows test_PAQT_B2H.csv, test_PAQT_B4.csv, and test_PINI_B1H.csv. when it jsut …

Software Development python
Member Avatar for abaddon2031
0
362
Member Avatar for mcdczzz

hi is there someone that can give me some hints on how to create excel file using data from my ms access database..because i haven't seen one in the net maybe someone might help me here..i would appreciate some hints or tutorials..:D thanks a lot...

Software Development visual-basic
Member Avatar for Stuugie
0
436
Member Avatar for lodhasanket4

how to show the data from 2 tables on selectedindexedchanged event

Software Development
Member Avatar for rubberman
0
76
Member Avatar for Prasadd

Hi ppl, I am new to this grp and looking some friends. anyways, I am facing problems while usign UserControls in C#. the error says that the references might be missing etc. But, Ive used the same previously and it worked without any problems. I'll be thankful to anyone offering …

Software Development c#
Member Avatar for ChrisHunter
0
194
Member Avatar for Muhammad Saqib

Anybody Plz tell me how I can update a Gridview Record.Kidly tell what is code in C# I am waiting for reponce for my this thred

Software Development
Member Avatar for pritaeas
0
281
Member Avatar for mark103

Hi all, I need your help, I'm working on my python script to get the list of channels and programs when I pulled the data from sqlite3 database. I'm using the variable of channel_per_page to get the range from 0 to 7 for channels that I want to pull the …

Software Development python
Member Avatar for slate
0
149
Member Avatar for Praise92

Hi guys i need your help, i am trying to read an xmlfile which is on the listbox, after reading it i want to bind the data to GridView, i can read directly from the location where i have saved the XMLfiles but now i want to select it from …

Software Development dataset xml
Member Avatar for tinstaafl
0
262
Member Avatar for jnneson

Hello, Please I want to be a good Programmer atleast be able to do something on my own, I will like to know where to start learning from, Which lang. to learn first, what step should I take? Also I will be glad if I can know someone that can …

Software Development
Member Avatar for AleMonteiro
0
160
Member Avatar for Needhelp2

Hi all, I have a large txt file (3 Million lines). Ouside excel capacity. Thanks for your support... input file format: =================================================== .. ... ... 2014 Jul 23 08:15:16.675 ... .. Name = x Lastname = y . . Age = 5 height = 1 .. .. ... ... 2014 …

Software Development visual-basic
Member Avatar for e.pol
0
246
Member Avatar for Doogledude123

I am getting a NPE on `a`. I have no idea why the array would be null, but heres the relevent code for it. public void setAbility(Ability[] abilities) { for(Ability a : abilities) { sb.append(a.getName()); } pAbility.setText(sb.toString()); } Method called here: Pokemon sPokemon = Pokemon.getPokemon(sender.getValue()); ... pController.setAbility(sPokemon.getAbility()); Passed getAbility(): public …

Software Development java
Member Avatar for Doogledude123
0
298
Member Avatar for Gurleen_Kaur

In my Windows application, I want to create an automation software using C#.NET which works in two steps: 1. Select particular data and copy it from a page of a website. I have done it using web browser control for SelectAll. The data is not HTML data but databound data. …

Software Development c# microsoft microsoft-office
Member Avatar for du_1
0
321
Member Avatar for nibiruisaplanet

It's a code to calculate age from today's current date. I know I'll have to use #include <ctime> But I have no idea what I would use for the rest. Here's my code: package practicing; import java.util.Calendar; import java.util.Date; import java.util.Scanner; public class FindRelativeAge { private static Calendar calendar = …

Software Development c++ java
Member Avatar for vijayan121
0
362
Member Avatar for screenedcreamy

I have acode review checklist which I would like to automate, Could anyone suggest me how i could get started with this. I would like to create a tool which takes in java extensions and reviews based on custom review check. Would this be time consuming?? any insights on how …

Software Development java
Member Avatar for stultuske
0
256
Member Avatar for liltrig3

Hi Everyone. I Really Need Urgent Help To Create A Paint Application In Java Using Applets Or The Swing. Its Really Urgent. I Have Been Trying To Code This For Like Week Now And I Am Just Left With Five Days To Submit It. Thsi Application Should Be Able To …

Software Development java java-swing
Member Avatar for stultuske
0
4K
Member Avatar for mcdczzz

If cboSearchType.Text = "Accredited Month" Then If rs.State = 1 Then rs.Close SQL = "SELECT * FROM BusinessInfo WHERE " & " AccreditationDate " & " like '" & cboMonths.Text & "%'" rs.Open SQL, con While rs.EOF = False With grdSearchResults .Redraw = False .Rows = .Rows +1 .Row = …

Software Development visual-basic
Member Avatar for e.pol
0
146
Member Avatar for nayzin.phyo

'====================================================================================================== '====================================================================================================== Option Explicit 'For Log ID Public RUNNINGID As String Private Sub butBrand_Click() On Error GoTo ErrorHandler Dim colData As New Collection frmSearch.SQL_Statement = "SELECT ROW_NUMBER () OVER (ORDER BY brand_type_code) AS [NO.] , " & _ "[brand_type_code] AS [Brand Type] , " & _ "[brand_type_name] AS [Brand Name] …

Software Development open-source sql visual-basic
Member Avatar for e.pol
0
182
Member Avatar for dumicom

hi guys below is my attempted code, how can i plot date and time(x-axis) versus a value (y-axis) import matplotlib.pyplot as plt from datetime import time, datetime x = [] y = [] t = [] fig = plt.figure() rect = fig.patch rect.set_facecolor('#31312e') readFile = open('data.txt', 'r') sepFile = readFile.read().split('\n') …

Software Development python
Member Avatar for dumicom
0
5K
Member Avatar for brittney_2

I need help with my constructor that should call for all the user inputs, for example their first name, and the information gets checked to make sure it's valid. For example the name is all letters, and the identifier is actually 9 digits, etc. I can set the default constructor, …

Software Development java
Member Avatar for brittney_2
0
239
Member Avatar for PM312

i am trying to import data from excel to datagrid view. why instead of actuel data "System.__ComObject" is displayed in datagrid cell. Dim xl As New excel.Application Dim xlsheet As excel.Worksheet Dim xlwbook As excel.Workbook xlwbook = xl.Workbooks.Open("d:\PayableInput\InvoiceUpload.xlsx") xlsheet = xlwbook.Sheets.Item(1) Dim Rowst As Integer = 0 Dim RN As …

Software Development vb.net
Member Avatar for PM312
0
286
Member Avatar for Ryan Nigel

Hi to all long story short, i have 2 executable files **first.exe second.exe** i want to run both with one button, i know i can run one executable file with this code Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click Process.Start(My.Computer.FileSystem.CurrentDirectory & "\first.exe") End Sub but how do …

Software Development vb.net
Member Avatar for tinstaafl
0
966
Member Avatar for lopesi2003
Member Avatar for kb.net
0
115
Member Avatar for mark103

Hi all I need your help, I'm working on my python script to fetch the list of channels from the sqlite3 database. I'm fetching 7 channels to set each channel in each label control 4010, 4011, 4012, 4013, 4014, 4015 and 4016. When I fetch the list of channels to …

Software Development python
Member Avatar for woooee
0
2K
Member Avatar for nathan.pavlovsky

Hi programmers! I am trying to grasp the concept of friendship. Let's say that we have the following: class List; //forward declaration class ListNode { friend class List; //make List a friend /* rest of code here, blah, blah, blah. */ } Does this mean that ListNode can access Lists's …

Software Development c++
Member Avatar for nathan.pavlovsky
0
214
Member Avatar for cambalinho

heres a nice tutorial about regions: http://www.flipcode.com/archives/Win32_Window_Skinning.shtml like you see, these tutorial is for forms.. so how we can do with child controls!?! we can: add the WS_CLIPCHILDREN or WS_CLIPSIBLINGS style, when we create a button\other control: hwnd = CreateWindowEx( 0, TEXT("CBUTTON"), strCaption.c_str(), WS_CHILD | WS_VISIBLE | BS_TEXT | WS_TABSTOP …

Software Development c++
Member Avatar for cambalinho
0
178
Member Avatar for jmay1327

I have a EXGrid in a form and want to add button to a cell that either say "Edit" and "Remove", or Have icons for the two. Here is the code I have so far. With grdGrade .BeginUpdate '.DataSource = objCo.DAL.Connection.Execute(sql) .DefaultItemHeight = 21 .TreeColumnIndex = -1 .MarkSearchColumn = False …

Software Development visual-basic
Member Avatar for jmay1327
0
595
Member Avatar for preetchannay

hello to all..., i am working on a project and there i am facing a problem of adding pictures to a label.In my project its like that.. i have a textfield ,a button and a label. When i write the file name in the textfield and then after clicking on …

Software Development image java
Member Avatar for preetchannay
0
142
Member Avatar for Lee_8

Can anyone help me to write java program? I'm using BlueJ for this assignment. This assignment is to write a program to calculate loan repayments. Banks and/or finance companies loan customers money (usually called a mortgage) so they can make large purchases (such as a house or a car). Each …

Software Development finance java
Member Avatar for JamesCherrill
0
816
Member Avatar for alysha.recore

Hello everyone! I am in need of some help with a homework assignment. It's basically creating a file indexer using C++. I have 2 separate files that I need to read in: one is a text document and the other is a Skip words key. I am incredibly confused about …

Software Development algorithm c++ ios
Member Avatar for NathanOliver
0
169
Member Avatar for Gunjan Rathi

how a single linked list can be sorted by swapping the pointers??

Software Development c linked-list
Member Avatar for deceptikon
0
218
Member Avatar for Desmond_1

import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import javax.swing.SwingUtilities; import javax.swing.Timer; @SuppressWarnings("serial") public class OnClickLesson extends JFrame { private int value = 0, clicked = 0, countdown = 1; private Timer timer = new Timer(1000, null); public OnClickLesson() { timer = new Timer(1000, new countDownTimer()); addMouseListener(new MouseAdapter() …

Software Development java java-swing
Member Avatar for Desmond_1
0
257
Member Avatar for Bradoz

Hello below is my code for a program that reads in integers rom keyboard input and creates two polynomials from that input and then does some maths functions on them. I've got the addition working, having trouble with the multiplication though. Any help would be appreciated. thanks import java.util.*; import …

Software Development java linked-list
Member Avatar for JamesCherrill
0
3K
Member Avatar for mo_snow

The MilTime class should convert time in military (24-hour) format to the standard time format used by the Time class. Theclass should have the following member variables: milHours : Contains the hour in 24-hour format. For example, 1:00 pm would be stored as 1300 hours, and 4:30 pm would be …

Software Development c c# c++
Member Avatar for pritaeas
0
5K
Member Avatar for daniela.valkanova

> Not sure why do I always get a 0 from the isvalidReal function? int isvalidReal(string signedNum) { bool check; int i = 0, j = 1; string str = "+-."; for (i = 0; i <= signedNum.length(); i++) { if (isdigit(signedNum[i])) { check = 1; } else if (signedNum[0] …

Software Development c++
Member Avatar for Learner010
0
144
Member Avatar for xn hunk

how to write to file in program folder in VB.net? ex Program Files\n\n.ini. how to write to n.ini in program folder.

Software Development vb.net
Member Avatar for cgeier
0
475
Member Avatar for xn hunk

how to AutoScroll Listbox in continuous manner in VB.net? ex AutoScroll 1 3 5 then start again from 1 3 5

Software Development vb.net
Member Avatar for tinstaafl
0
3K
Member Avatar for Syeda_2

hi everyone, i am new in C. can anyone help me to solve the following problem: write a small program in CLIP to code that shall work like a simple computerized study advisor. Your program will collect some data from the user and then suggest a field of study. To …

Software Development c data-science
Member Avatar for rubberman
0
97
Member Avatar for mo_snow

I posted a simliar issue ealier, but I've changed my approach since then. #ifndef TIME_H #define TIME_H class Time { public: Time(int = 0, int = 0, int = 0); ~Time(); int hour; // valid values are 0 to 23 int minute; // valid values are 0 to 59 int …

Software Development c c# c++ display
Member Avatar for rubberman
0
1K
Member Avatar for Jjajangmyeon

I'm writing a program to parse a user entered string. My textbook does not include the .find() function, but I found it in an old C++ book (Ivor Horton's Beginning C++, the Complete Language) is the .find() considered bad, or depricated? It seems to work really well, but I don't …

Software Development c++
Member Avatar for rubberman
0
343
Member Avatar for daniela.valkanova

> The following letters are stored in an alphabet array: B, J, K, M, S, and Z. > Write and test a function named adlet(), which accepts the alphabet array and a new letter >as arguments, and then inserts the new letter in the correct alphabetical order in the array. …

Software Development c++
Member Avatar for daniela.valkanova
0
274
Member Avatar for can-mohan

Guys, In below code after reading string values from vector , I can have output like("VarID","flag","count") for(int i=0; i < v.size(); i++){ cout<<v[i]<<endl; } All are (varID,flag and count)are string literal , now i need to populate the structre with this string literal. where VarID = int,flag=bool, count=Int. Can anybody …

Software Development c++
Member Avatar for tinstaafl
0
302
Member Avatar for Slavi

Apparently JavaFX is getting really into the game now as far as I see and I think its time I start getting to know it .. Just read a couple of articles and a few questions came up in my mind: - Do I need to use IDE (eclipse) for …

Software Development gui ide java java-swing
Member Avatar for Doogledude123
0
291
Member Avatar for ndombko1

Hello I need to add a zero in front of a number if it is 3 or less so that it has 4 digits total. I only need this for row 6 or row 5 to be python specifc. I need this to write to the same csv file. AFI12001 …

Software Development python
Member Avatar for ndombko1
0
377
Member Avatar for asaidi

Hi i just export my project on ubuntu and when i run from terminal i have this error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver and in my project the mysql connector is located in the desktop.. any solution please

Software Development java ubuntu
Member Avatar for Taywin
0
236

The End.