64,152 Solved Topics
Remove Filter ![]() | |
[CODE] Dim InputText As String = Me.txtenter.Text Dim Letters = From c As Char In InputText.ToCharArray Select c & " = " & AscW(c) & " " Me.lblanswer.Text = String.Join("", Letters.ToArray) [/CODE] The above code is to convert each letter in a word or phrase (including the space) to its … | |
Hi, I have a structure declared in C# [CODE]public struct myStruct { int x; }[/CODE] I created a 2D array of structures [CODE]myStruct[,] theStruct = new myStruct[3,3];[/CODE] What is the C# equivalent of the following C++ code? theStruct[0][0].x = 50;?? Please Help Thanks in advance | |
Dear Experts How to make datagridview current row bold? Please help | |
I am familiar with several PHP random image loaders. The only thing I can not seem to find very easily with these scripts is one that prevents repeats for so many reloads. I have a directory containing 3500 images. What I have noticed is that I can cycle through the … | |
Hi Everyone! I was wondering how I would use a javascript varible in jquery ?. [CODE] function postNewAnswerAlerts() { if (http_request.readyState == 4) { if (http_request.status == 200) { var result = http_request.responseText; $('div#question').load('responder.php?mode=readquestion&id=' + result).show().fadeIn('slow'); } } } [/CODE] Many thanks James. | |
Hi. I have a working program that lets you put info about a coupon. and then later on you can search for coupons, display them or remove them from the linked list. My problem is that, we are not supposed to perform input operations from our classes. But the way … | |
Hi, I have an application where I have to use two dll files as reference to my project. The thing is, my dll files both have the same name, but are something like different versions. I am not able to add both as references becoz of clash in name. And … | |
Ok, I know that I am missing something due to my lack of knowledge with Binary Serialization and wish I could find better material on it. In the mean time, thanks to one of the moderators help, I have now been able to store an array in my database. Once … | |
Hey, Im using visual studio 2008 trying to make a windows form application that uses a database. Currently The design looks like this a Table BandID -> links to a table of Contacts -> also links to a table of Songs If i have a member of Table BandID with … | |
I am currently doing a college project using asp and c#. I have the sql database connected and I am able to write to it but i cant read from the database the way I want. So I have a dropdown list populated by dates from my database and I … | |
<iframe id="theIFrame" onLoad="resize()" style="width:100%; height:100%;" frameborder="0"></iframe> I have this.. the src is file go.jsp in go.jsp changes occur.. how can I resize go.jsp the iframe so that there wont be scrolling dont give me solution use scorlling="no".. simply..data will be hidden below..I want to resize the page... | |
Hi, When I click BACK button on my Browser, all old variables were sent to URL are retrieved again. How can I destroy them? Thanks | |
Hello everyone, I'm new to C / C++, and just wanted to make a file which can delete an item. The code worked, but when I want to give a path, it doesn't work anymore. Any help? [CODE] #include <iostream> #include <stdio.h> using namespace std; int main() { remove ("c:\users\asus\new.docx"); … | |
Can anybody help me here... my application being developed in ASP.NET uses a master page. The master page is set out with a header table, site navigation table, and the content place holders.... when i load certain pages the site navigation table (on the left) will automatically resize to try … | |
Hello, im trying to implement a template matching algorithm with the use of Python + PIL and I'm trying to follow the code that wikipedia gives for template matching -> [URL="http://en.wikipedia.org/wiki/Template_matching"]http://en.wikipedia.org/wiki/Template_matching[/URL] Basically it loops through all pixels of a search image, and all pixels of a template. The sum of … | |
Hi there Can somebody please give me a link to a tutorial regarding materialised views/snapshots (preferably in Oracle) and perhaps some sample scripts too. Thanks in advance. | |
Hi I need to insert a flat text file into a SQL Server table using C#. The text file lines are 500 characters long and I will need to break it up into columns. Column 1 – 6chars, Column 2 – 1chars, Column 3 – 8chars I’ve managed to read … | |
Hello everyone...can anyone modify my code below....i have a database named "Database1.accdb" with a table "Applicants"...The columns are ID(auto incremented),Name,and Age.... on this code, i can display the data from my database... My problem is that how can i add a new record to my database...or delete a record... I … | |
Hi, Im building a database in Access with the use of VB. If I have 2 tables, both of which will be used as a subreport/form: 1 - Invoice Details a - Invoice Number : Integer b - Item: String c - Quantity - Number d - Rate/Cost/Wateva - Currency … | |
I am relatively new to C++ and am currently taking a course for it. One of my assignments is to make a calculator for hourly wages and figure gross and net pay based on a fixed percentage for taxes. I am able to compile the code if I change the … | |
Dear freinds, I have a big issue which I have been struggling with for days now. I have a richtextbox where users Can input text and print it. My problem is that i don't want to allow more than one page to be printed so i need to prevent the … | |
I am having two combo box value say List 1 and List 2 And user can move the items from List 1 to List 2 and vice versa. After completing the "Move" operation the user would like to "SAVE" these changes. At this point I need to have all the … | |
i want to set some initial level parameters before calling main method... how to do... within main i can set it first but it have no effects... | |
This is my first time for establishing an ASP.Net website on a HTTPS server. As usual, I have developed a website and it works fine on HTTP server (including localhost), but after I upload the website to the HTTPS server, the ASP server button disappeared and when I view source … | |
Is there a way to use a progress bar on a message box? | |
Can Any body help with this script. I am not an expert in PHP I am displaying images 4 each in a page and the last image is repeating. unset is not working. [CODE]<?php $ar=scandir("hairupdo"); $n=0; $h="hairupdo"; $cnt=0; $numofimages=count($ar)-3; $imagesperpage=4; $numberofimages=0; $pages=ceil ($numofimages/$imagesperpage ); $gid=$_GET["id"]; echo "<table width=100 border=0 cellspacing=5 … | |
hi there, i have a problem with this one, i want to input the data to an array, however, this doesn't work for me. [code=php] $resultSN = mysql_query("SELECT * FROM table "); $resultRowsSN_Count = mysql_query("SELECT COUNT(*) FROM table"); $count = mysql_result($resultRowsSN_Count,0,0); while($row = mysql_fetch_array($resultSN)) { $machineName_O = $row['MachineName']; for ($i=0; … | |
Greetings again. I'm encountering an error with the following section of my script. If I include the commented section my program returns the following error; "(Router -Startup) the URL cannot be empty. Parameter name : url" With it commented out like below, the .dll functions correctly. [code] public List<Form> Startup() … | |
Hi, I have a query that display's results from my sql database. I have it listing a start time and an end time. And I have a script that calculates the duration of how long the service was an outage or was just degraded. I am wanting to display a … ![]() | |
Not sure if this is the right place to put this as it's my first post, so if it's not I apologize. I'm wondering if there is a way to put an image into the background of my applet. I've searched all over the place and just can't seem to … | |
Hi! I'm writing a java app with a swing gui. The problem is the following. I am developing on a mac, where it runs fine. but when I run it on Windows Posready09 (Windows XP), which is the platform the app is intended for, or Windows7, half of the window … | |
Hello, I have a VB form with 2 comboboxes and a textbox in which a user can type into. I would like my mouse cursor to move from my 2nd combobox selection directly over to the textbox that I have on a VB form. 2nd comboboxe name: "CodeComboBox" Textbox name … | |
Hello My application creates and reads files from the same folder. So I am using appliaction.startuppath property to get the current path so far. Now I have included a open file dialog box to browse and load another file from other folder. But after this dialog loads the file from … | |
Hi i am trying to delete a file(s) from a checked list box, when i click a button. This is the code i have: [code] Dim item As IO.FileInfo For Each item In CheckedListBox1.CheckedItems Try item.Delete() Catch : End Try Next item [/code] But i get the error: Unable to … | |
hey guys, im working on a little program that would ask the user to input file name and would ask the user again to specify the output file so the contents of file one would be transferred in to the file 2. i have been working on it for few … | |
I know how to use System.Web.Mail to send emails. Anybody know how to send encrypted emails? | |
Hello, I am trying to do a program that is reading for example a.txt file that have 5 lines and i want him to show me for example line #3 only, i know i need to use fgets but i rly dont know how to start it a.txt [CODE]1;27.01.1957;8;12;31;39;43;45; 2;03.02.1957;5;10;11;22;25;27; … | |
Hello ! I am trying to make a little program, which would go through the string content, find some keywords inside of it and return their position in the text. Unfortunately my program does not work for the duplicated words like "AFIX" or "CONF" (see example bellow). Is there simple … | |
Hi, I have the following code: [CODE]<asp:GridView ID="MyGridView" runat="server" AllowPaging="true" PageSize="30" AutoGenerateColumns="False" AllowSorting="true"> <Columns> <asp:TemplateField HeaderText="Industry ID" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Center" SortExpression="ID"> <ItemTemplate> <asp:Label ID="IDLabel" runat="server" Text='<%#Eval("ID") %>' /> </ItemTemplate> <EditItemTemplate> <asp:Label ID=" IDLabel " runat="server" Text='<%#Eval("ID") %>' /> </EditItemTemplate> <FooterTemplate> <asp:Label ID="EnterLabel" runat="server" Text="Please, enter the new name: " /> </FooterTemplate> … | |
Problem: Write a program that has an array of at least 20 integers. It should call a function that uses the linear search algoritm to locate one of the values. The function should keep a count of the number of comparisons it makes until it finds the value. The program … | |
Hi, Can anybody please tell me if there is a code in PHP that I can attach to a link and when it is clicked the web page is printed | |
I have code that outputs data as so [code] Input file name: file.txt Input text: Process id 1, Quantum No 2, Priority 0 Process id 2, Quantum No 3, Priority 1 Process id 3, Quantum No 3, Priority 0 Process id 4, Quantum No 1, Priority 2 Start of processing … | |
I need help with jFilechooser. I've already made the jFilechooser. The problem is that I want to change the text of the "save" butten to "Ok", as I need it to perform a save function, as well as a read function, on different occasions. Changing the code where the jFilechooser … | |
I want to read he source file of the .exe I am writing. For example if I am running test.exe I want to read test.c Also if the name of the file changes it still had to open it. what i have tried is: [code] FILE *fp=fopen(*.c,"r") [/code] Can someone … | |
Ladies and gentlemen i thank you for your assistance in my system that i have been developing. my organisation is very impressed by it. i was thinking of a situation whereby my system could give a notification when a person's copies he subscribed run out. i mean when the copies … | |
How can I correct. I have textbox that is empty and where the cursor is flashing and I wish to move to other textboxes. What happens is that the error message is displayed first and when I press OK, only then can I move to the other textboxes. How do … | |
Hi, I have a 3 tables needed to be inner join before I got a full details of a transaction history (What item, shipment details, quantity, who bought it etc). The involved tables are ShopCart,ShopCartItem and OrderData ShopCart: [code] CREATE TABLE dbo.ShopCart ( ShopCartID int IDENTITY (1,1), ShopperID int NOT … | |
I am quite new to XSLT and I want to add unique index to elements types to transform something like this: <item1> [INDENT]<item2>[/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] [INDENT]<item2>[/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] </item1> <item1> </item1> into: <item1 id="1"> [INDENT]<item2 id="1">[/INDENT] [INDENT][INDENT]<item3 id="1"></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3 id="2"></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] [INDENT]<item2 id="2">[/INDENT] [INDENT][INDENT]<item3 id="3"></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3 id="4"></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] … | |
Hi all, I have two jsp pages say jsp1 and jsp2. In jsp1 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="one" scope="session" class="mypackage.myclass1" /> [/code] In jsp2 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="two" scope="session" class="mypackage.myclass2" /> … | |
Hi. I am kind of having trouble with some functions. Basically, I know how to write out functions using void and no return, but for this problem I am working on, I have to use int myfunction(something&) instead of void myfunction(). Can anyone please lead me in the right direction … |
The End.