132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sing1006

Dim DMC_No As New List(Of Integer) cmd.CommandText = "SELECT MC_No FROM tbl_MainComp WHERE EquipTag= '" & TextBox1.Text & "'" Using reader As OleDb.OleDbDataReader = cmd.ExecuteReader() While reader.Read() DMC_No.Add(reader.GetInt32(reader.GetOrdinal("MC_No"))) End While End Using Dim DFM_No As New List(Of Integer) For i = 0 To DMC_No.Count - 1 MessageBox.Show(DMC_No.Item(i)) 'This line to …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
396
Member Avatar for karthik16

1.Write a C++ function that intakes 2 arguments: a character and an integer and prints the character given number of times.If ,however, the integer is missing the function prints the character twice.

Software Development c++
Member Avatar for Nick Evan
0
230
Member Avatar for Doogledude123

Curious who's all used MiGLayout and what everyone's thoughts are on it. Is it a prefered layout over others? If so, which? What do you like and dislike about it? Is there any other 3rd Party Layout's you would recommend? What features do they have that make them recommended?

Software Development java
Member Avatar for JamesCherrill
0
127
Member Avatar for Liam_4

I need to design a histogram that prints out an "*" for certain intergers and the integers need to be read from a text file. I think I got the hole "*" thing down, but the file reading isn't working not matter what I try so I could use a …

Software Development java
Member Avatar for JamesCherrill
0
144
Member Avatar for dcampbell

This is a proto type of a much larger project. I have items that different values and only on needs to be seleced. Then I want to compile alll selected components to new html window for printing or export to .pdf. I have gottent to the end of my knowledge …

Software Development html-css java pdf
Member Avatar for dcampbell
0
229
Member Avatar for powerade661

So I am trying to make this code run in a constant loop. Any ideas how I would do this? As I said before I am trying to self teach myself Python and so far I have been successful. import os import datetime import time print('What would you like to …

Software Development python
Member Avatar for powerade661
0
373
Member Avatar for JOSheaIV

As I develop more and more for a living I have been trying to perfect my developing skills with personal projects in hope to expand my professional career, one of these is the concept of Polymorphism. The last few projects I have worked on, I have this model where I …

Software Development career
Member Avatar for Amr.Mohammad87
0
459
Member Avatar for zachattack05

If I implement an abstract class that contains this method: private void MyMethod(string awesomeParameter, int aBigNumber) { // something cool happens here! throw new NotImplementedException(); } can I change it to this without breaking the implementation? private void MyMethod(string myParam, int myInt) { // something cool happens here! throw new …

Software Development asp.net oop
Member Avatar for ddanbe
0
298
Member Avatar for Papa_Don

Group, 10 months ago I posed the same question as to how to programatically create the variable names via the loop. However I'm now in real need of doing this and I don't fully understand what each step of the syntax actually means and what it does. Therefore I need …

Software Development vb.net
Member Avatar for Papa_Don
0
1K
Member Avatar for zachattack05

I am writing a custom MembershipProvider for ASP.NET and would like to record certain events in a table when they happen. I have the methods to do it, but I would like to get the value of the "ID" column of the row I insert into the table. I have …

Software Development mssql sql
Member Avatar for zachattack05
0
322
Member Avatar for powerade661

So I am trying to self teach myself Python, and so far it is working great. However I have ran into a bump in the road and can't really figure out why this script isn't working... Any ideas? import os answer = raw_input('Ready for shutdown, continue?') if answer == raw_input('Yes'): …

Software Development python
Member Avatar for powerade661
0
231
Member Avatar for Hoofy

I am having trouble figuring out an efficient way to perform the checks for how a winner is determined in a 3D tic tac toe program (that is 3x3x3). Winners can be three spaces in any vertical, horizontal, or diagonal, including those between the 3 "boards." There are over 50 …

Software Development c++ gaming
Member Avatar for Jamie_9
0
1K
Member Avatar for Misar

Dear All, can some one share me a code with one simple cipher encryption, as i'm a noob i in this thing.... Thanks all.

Software Development encryption
Member Avatar for JOSheaIV
0
248
Member Avatar for Ananthoju

How to detect the keylogger softwares which are running in the system. Keylogger run in hidden mode,by the processes running in the background are us to detect it. Is there any process/me3thod to get complete details of process i.e, how muchmemory,cpu,harddisk spae are using and which files in drive are …

Software Development c
Member Avatar for overwraith
0
222
Member Avatar for Arsenal0202

I'm having a hard time trying to display an error message once someone has already entered in that letter. I'm super new to all of this so I have no idea what I'm doing but I can't get it to work. Please help, I've been trying to fix this for …

Software Development
Member Avatar for invisal
0
166
Member Avatar for Xethiro

The purpose of this assignment was to get a phone number and print out how many digits of each were in the phone number. Ex: phone number = 555-3311 1 = 2 2 = 0 3 = 2 etc. Instead of getting how many times the number shows up I …

Software Development
Member Avatar for Xethiro
0
217
Member Avatar for sherwin_2

Hi, there's any way to shorten my code using making own functions?

Software Development c c# c++
Member Avatar for rproffitt
0
112
Member Avatar for kouty

The console says arr1 is not a function! function union(arr1, arr2, arr3) {//1 arr1 = arr1.concat(arr2).concat(arr3); console.log("concatenation of arr1", arr1, '\n'); arr1 = arr1.sort(); console.log("arr1 good ordered", arr1, '\n'); for(i = arr1.length - 1; i > 0; i --) {//2 for(j = i -1; j > 0; j --) {//3 …

Software Development javascript
Member Avatar for kouty
0
298
Member Avatar for kouty

Hello I try to learn the String.charCodeAt(index) method Here is a snippet that demonstrate that the first index is allways 48 independentely of the character. How work's it (I was expecting that each letter has her unicode-number equivalent. function unicoding(str) { for (i = 0; i < str.length; i ++) …

Software Development java javascript
Member Avatar for Traevel
0
393
Member Avatar for hefaz

Hi all, i am using a ribbon in my c# 2010 project, first i had .net framwork problem while i was running the form then i changed that to .net framework 4.0 now it says Win32 exception Unhandled. What is the problem? is the problem in debugger?

Software Development vb.net visual-studio
Member Avatar for rproffitt
0
549
Member Avatar for sing1006

I have 3 table which are ![zz.PNG](/attachments/large/3/f81c645612d06529dba9af30a4a314ac.PNG "align-center") I want to duplicate a record from the master table in the same time it will duplicate all children table. I will assign new primary key to the new duplicate record. For the tbl_System and tbl_MainComp work fine. But when i have …

Software Development microsoft-access vb.net visual-basic
0
311
Member Avatar for ahsan1

This is the program in java which is an interface to stanford postagger. I have attached a copy of it. I am using netbeans 6.7.1 . I have placed the model file which is "left3words-wsj-0-18.tagger" in the bin folder of jdk and also placed the stanford-postagger.jar in that folder. I …

Software Development java java-netbeans
Member Avatar for Hargung
0
266
Member Avatar for BobFX

Hi, I have built a shell extension handler, using this as a template: https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a In this instance, it registers with a ".ts" extension: hr = RegisterShellExtContextMenuHandler(L".ts", CLSID_LNtoALL, L"CppShellExtContextMenuHandler.LNtoALL"); The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts …

Software Development shell-scripting
Member Avatar for BobFX
0
370
Member Avatar for Mohamed_26

Hello, I am trying to build a basic unit framework. I have got this method in a class called KUnit3 public static void checkEquals(double value1,double value2) { if(value1 == value2) { addToReport(String.format(" %f == %f", value1, value2)); passedChecks++; } else { addToReport(String.format("* %f == %f", value1, value2)); failedChecks++; } } …

Software Development api java
Member Avatar for JamesCherrill
0
269
Member Avatar for ZER09

anyone can give me an advice for improving this piece code, it give me a complexity of score of 10. There is something telling in back of my mind that it can be improve, but this is the best i can do. arggg public override bool Validate(Control control, object value) …

Software Development
Member Avatar for Traevel
0
133
Member Avatar for kayleigh0411

I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as type double. My program is compiling with no errors, however the standard deviation is incorrect. It is outputting the standard …

Software Development java
Member Avatar for Traevel
0
938
Member Avatar for wilsonchama

Hi guys, am trying to populate textboxes with data from sql server database. below is the code I am trying to use in Visual studio 2012, Vb.net. Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSearch.Click Dim query As String Dim MyConnection As SqlConnection = New SqlConnection("Initial Catalog=PayRoll;" & …

Software Development open-source sql vb.net visual-studio
Member Avatar for Reverend Jim
0
325
Member Avatar for JohnT1

Hello, I created a small windows service in VB.net, intended to run on a MS Windows server 2012, which uses the EventLog.WriteEntry Method to write entries to a custom log file. All works as intended, however, I am wondering if there would be a better way to write to the …

Software Development open-source vb.net windows-server
0
255
Member Avatar for Dmennite

Everything I have found shows how to add a row to a database for new images... I am trying to update an existing row with a longblob field to store a logo and cannot seem to grasp what to do Any help would be greatly appreciated

Software Development c c# c++ mysql
Member Avatar for Ehab_1
0
2K
Member Avatar for norEdz

how to do this? write a c++ program that given the name of a text file reads that file and counts the number occurrences of each alphabetic letter in the text. treat upper and lower case instances of a letter as the same letter. hint: look up tolower()---testing the case …

Software Development c c# c++
Member Avatar for David W
0
11K
Member Avatar for loserspearl

I am trying to make a Java program that uses a tree to collect folder and file information about a directory and display it to the user. Essentially a java version of the tree DOS command. The user inputs a path to a folder and the command window will spit …

Software Development file-system java
Member Avatar for JamesCherrill
0
428
Member Avatar for amacss

I am currently taking this course, and I am struggling with the application of code at points. Does anyone know where I can find a good site for tutorial purposes?

Software Development c#
Member Avatar for ddanbe
0
303
Member Avatar for Adhya_1

So, my teacher gave me this assignment to write a program to enter a four digit number Andries each digit of the number in a separate line. For example, if a user inputs 1234, the output should be: 1 2 3 4 I'm stuck. Please help ASAP. We have learnt …

Software Development java
Member Avatar for Lucaci Andrew
0
259
Member Avatar for savedlema

Greetings! I have been using the code below to restore backups of mysql database taken utilizing the mysql dump for a few years, but suddenly, this does not restore database backups anymore. Is there any change within mysql? code: Dim myProcess As New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.UseShellExecute = False …

Software Development mysql vb.net
0
141
Member Avatar for Tiger_2

Hi, I am a student with a basic knowledge of C#. For my project, I would like to build a logic gate simulator that could teach someone about the basics of Gates. I have seen this done before and always wanted to have a go myself. My starting point, I …

Software Development
Member Avatar for ddanbe
0
477
Member Avatar for LibraryCode

I have a jbutton ,which once clicked ,counts the clicks: int clicked ; private void jButtonScanActionPerformed(java.awt.event.ActionEvent evt) { clicked++; } My question is how to attach this click output(once the button is clicked ) to jtext field to see the click count? private void jTextFieldParcelIDActionPerformed(java.awt.event.ActionEvent evt) { }

Software Development java
Member Avatar for LibraryCode
0
268
Member Avatar for raj208851

I always get errors in c programming while using if and else as " expected expression before else". Why do this error display?

Software Development c
Member Avatar for Taywin
0
790
Member Avatar for Violet_82

Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background …

Software Development gui java
Member Avatar for Violet_82
0
5K
Member Avatar for libreriaeben

I am trying to create a method entitled rolledOneOnlyOnce that takes in two integers as parameters and returns a Boolean. This method must be public and static. In this method, the integer parameters represent the values currently on each of the Game’s die (die1,die2 respectively). Here, you will want to …

Software Development c++ java
Member Avatar for JamesCherrill
0
151
Member Avatar for jerome2467

hi i got a bank account project and i dont know how to figure out this problem i need to be able to transfert money from checking account to saving account if someone can help me with an exemple ,because i am a bit lost thanks by advance

Software Development c c# c++
Member Avatar for Sudarvizhi_1
0
6K
Member Avatar for hallianonline

Hello I have created a installer package of my project build in Visual Basic 6.0. I have using Advance Installer for making package. every thing works perfectly on other systems but a minor problem in my project i am facing which is very hard for me to resolve is I …

Software Development visual-basic
Member Avatar for Minimalist
0
2K
Member Avatar for Jambaly

I am desgining a userform in ArcMap, but I don't know how to sum up numeric values in a textbox (txtBox1) in another textox (txtBox2). Can anybody provide me with a vba code for that!

Software Development visual-basic
Member Avatar for Vicky_4
0
4K
Member Avatar for major_lost

Rev Jim: I need to get a random file name from a specific directory (folder) each time this routine is called. I was given these steps on another website, but I need to be shown how this is done. Can you please assist? Get the files - Directory.GetFiles or DirectoryInfo.GetFiles …

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for efe.osato.5

pls i need help in creating a traffic control system .for my project

Software Development java
Member Avatar for Taywin
0
240
Member Avatar for Enee

I have a problem!! I am trying to convert pascal code to VB and am stuck. Pascal: TYPE Elements = SET of 1..255; Xpath = ARRAY[0..50] of BYTE; VAR Path0,Path1,Path2:Elements; Path:Xpath; So, Elements is defined as a base set of numbers 1 through to 255 (inclusive). Path0, Path1 and Path2 …

Software Development pascal visual-basic
Member Avatar for divya.jeeta
0
1K
Member Avatar for overwraith

Hey I have a question, how many people actually use telerik? Does anybody have experience with it, and what are your opinions on it? To me it is just another third party library that nobody knows, but I want an opinion on it from actual seasoned developers. I have worked …

Software Development asp.net
Member Avatar for overwraith
0
291
Member Avatar for Doogledude123

I was wondering if it would be more efficient to render a single BufferedImage instead of rendering a bunch of BufferedImages in a double for loop? I have an idea of how to do it, I just don't know what methods in BufferedImage you would use to create the bigger …

Software Development gaming java seo
Member Avatar for JamesCherrill
0
294
Member Avatar for plucesiar

Hi, I'm working through the 3rd chapter of Thinking in C++ Vol 1 by Bruce Eckel (free online). I am using Code::Blocks as my IDE. I've try searching for this problem through the forum but haven't found a solution; I think it might be a IDE-specific problem. The undefined reference …

Software Development c++ ide
Member Avatar for tomek3211
0
512
Member Avatar for Eppie

Hello everyone, I am new in assembly programming for MIPS and I was given a project to write a program that converts any decimal bumber from 0 to 511 into octal and return the result with 3 digits in reverse i.e. 170 for the decimal 57, 026 for 400 and …

Software Development assembly
Member Avatar for Eppie
0
3K
Member Avatar for Agilemind

I'm trying to optimize a Bayesian inference algorithm written in C. I'm looking for fast and accurate open-source libraries for working with probability distributions (both calculating density & drawing deviates - like the rnorm,dnorm,pnorm functions in R). So far I've found a tutorial which suggested the [gsl](http://www.gnu.org/software/gsl/manual/html_node/Random-Number-Distributions.html#Random-Number-Distributions) library but I …

Software Development algorithm c open-source
Member Avatar for rubberman
0
157

The End.