Hello Daniweb Community, I'm wanting to slice a square image into 9 pieces like below ![Image_Grid_Expected.png](/attachments/small/3/92037daf6101645e42f7718c3f4ccf65.png "align-center") the code I'm currently using is this Private Function CropBitmap(ByRef bmp As Bitmap, ByVal cropX As Integer, ByVal cropY As Integer, ByVal cropWidth As Integer, ByVal cropHeight As Integer) As Bitmap Dim rect As New Rectangle(cropX, cropY, cropWidth, cropHeight) Dim cropped As Bitmap = bmp.Clone(rect, bmp.PixelFormat) Return cropped End Function Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click PictureBox1.Image = CropBitmap(New Bitmap(PictureBox2.Image), 0, 0, 21, 21) PictureBox3.Image = CropBitmap(New Bitmap(PictureBox2.Image), 0, 21, 21, 22) PictureBox4.Image = CropBitmap(New Bitmap(PictureBox2.Image), 0, 43, 21, …

Member Avatar
Member Avatar
+0 forum 24

Hi, I am not able to "run as different user" in my windows 7 (domain login) machine. For example if i'm trying to start iexplore (run as diff user) It returns the error : "The system cannot find the file specified". Please help me. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

Hello, I have a number of long text files, they took from windows system with specific encoding (windows-1256). Can I count the all different number of words in theses files using Ubuntu commands? For example: If I have three text files contain respectively -Hi, hello. -Hello all. -Good people in all time. The output should be: 7. Thank you

Member Avatar
Member Avatar
+0 forum 5

Hi, i finally done my flag where i can choose the culture of my site, the problem now is the following : i have my table with ID , BODY, BODY_IT, BODY_FR, BODY_SP for example, when i click on the french flag my culture is = fr in this case, i would love to show the french BODY_FR in stead of the normal BODY : <div class="form-group"> @Html.LabelFor(model => model.Body, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.LabelFor(model => model.Body, new { @class = "control-label col-md-2" }) @Html.ValidationMessageFor(model => model.Body) </div> </div> and here <dt> @Html.DisplayNameFor(model => model.Body) …

Member Avatar
+0 forum 0

I have 10 field that I want to calculate the total. some of the fields take null value. I tried the codes below but the result was empty. select id, (c1+c2+c3+c4+c5+c6+c7+c8+c9+c10) as total from items order by id; the result show was null. In dreamweaver the result was blank. please kindly help me out. By Franz

Member Avatar
Member Avatar
+0 forum 1

Am doing an application to allocate the seats to the students in a building with rooms. I have almost done to allocate the students appropriatly in the rooms. The problem now is convert them to a single variable. So here is the place am struck with: I have these data in a rich textbox: 1 11 200 1 12 201 1 13 202 2 11 203 2 12 204 2 13 205 1 21 100 1 22 101 1 23 102 2 21 103 2 22 104 2 23 105 3 21 106 now I need the string as follows: …

Member Avatar
Member Avatar
+0 forum 5

How i ll display one image into differnt frames in php or wordpress ,when user click on particular image

Member Avatar
Member Avatar
+0 forum 1

how to show data on different sections on click a link without anchor tag in html without using js,css or php

Member Avatar
Member Avatar
-1 forum 2

Hello I am working on this code for a hotel reservation. so far I am stuck on the part which requests that fridays and saturdays be charged 150 instead of the 120 usual cost per night. I have dateTime variables for the arrival date and departure date and a timeSpan variable for the duration of the stay. my thought was to step through each day of the timeSpan variable and for each occurance of the DayOfWeek.Friday and DayOfWeek.Saturday I was going to add 30 dollars (the additional cost for a weekend night) to a variable weekendCost which i would then …

Member Avatar
Member Avatar
+0 forum 5

Dim table As DataTable = New DataTable table.Columns.Clear() Chart1.DataSource = Nothing Chart1.Series.Clear() table.Columns.Add("Color", GetType(System.String)) table.Columns.Add("Data", GetType(System.Int32)) table.Rows.Add("Green", Integer.Parse(txtgreen.Text)) table.Rows.Add("Red", Integer.Parse(txtred.Text)) table.Rows.Add("Blue", Integer.Parse(txtblue.Text)) table.Rows.Add("Yellow", Integer.Parse(txtyellow.Text)) table.Rows.Add("Brown", Integer.Parse(txtnothing.Text)) Dim IEtable = CType(table, System.ComponentModel.IListSource).GetList Chart1.DataBindTable(IEtable, "Color") Chart1.DataBindTable(IEtable, "Data")

Member Avatar
Member Avatar
+0 forum 1

Hi, I am currently working on joining 2 tables, however those tables have different number of columns thats why I have difficulty on joining them. I tried to use FULL OUTER JOIN, close result but still not my expected output. You can kindly see my attachment to see the scenario. Oracle Sql Query: `SELECT a.id, b.firstName, b.lastName, b.midInitial, a.project, a.manager FROM table1 a FULL OUTER JOIN table2 b WHERE a.id = b.id` By the way, I'd used this query to that expected scenario and still not getting same on that screenshot. Hoping someone who can guide me to this. Thanks. …

Member Avatar
Member Avatar
+0 forum 3

Is it possible to merge both the 2 element below so that they work on a single page. What i mean is this should be the background of the page: http://tympanus.net/Development/AnimatedResponsiveImageGrid/index3.html and a slideout contact form can appear at the corner over the background: http://www.building58.com/examples/tabSlideOut.html Is it possible, how?

Member Avatar
Member Avatar
+0 forum 3

Hi All, I need to load varying Custome controls to one page with differnt panles,I have to load Custom control page according to selection of Criteria. Thanks

Member Avatar
Member Avatar
+0 forum 3

Hi guys I need some explanation from you experts on php.I succeeded in installing MySql vers.5.5, workbench, myPhpAdmin and Wamp Server.I gave up installing Apache, too complicated, I use IIS7 anyway and works fine.All these tools work fine, I can create databases, tables, update them etc.and I am doing all the tutorials about php.Now I have this problem. Usually I start Wamp server and then I open the command Line Client,type my root password and I am in business.Sometimes though when I insert the password and push enter I get a loud beep, the prompt disappears and I cannot get …

Member Avatar
Member Avatar
+0 forum 4

I want to send string and save in different computer's database using c# using Asynchronous Any body Plz Help me finding a Solution

Member Avatar
Member Avatar
+0 forum 6

I have 2 classes. AddressBook and SingleAddress. AddressBook is supposed to contain SingleAddress. I'm omitting the #include and some of the extra functions. Here's SingleAddress.h class SingleAddress { private: string lastName,firstName,strAdd,city,country,email; int postCode,homeNum,mobileNum; public: SingleAddress( string s1,string s2,string s3, string s4,string s5,string s6, int i1,int i2,int i3); string toString(); }; SingleAddress.cpp SingleAddress::SingleAddress(string s1,string s2,string s3,string s4,string s5,string s6, int i1,int i2,int i3){ firstName=s1; lastName=s2; strAdd=s3; city=s4; country=s5; email=s6; postCode=i1; homeNum=i2; mobileNum=i3; } string SingleAddress::toString() { stringstream info; //last name, first name, street address, city, country, postal code, home phone number, mobile phone number, email address info<<"First name: " <<firstName <<"\nLast …

Member Avatar
Member Avatar
+0 forum 3

hello i' trying to take out data from start time and end time from my database record..any idea how to solve it for example: 2012-09-08 12:09:33 roadA 2012-09-08 10:49:09 roadA 2012-09-08 10:39:27 roadC 2012-09-08 09:09:33 roadA if i select 10:39:27 to 12:09:33, then only 3 data will be display...

Member Avatar
Member Avatar
+0 forum 2

This is a problem that i observe regarding the Indicated wifi speed on the 'status' dialog box (Windows 7 operating System). I have a **TP-Link wifi-n enabled router**. The box indicates a connection spped / maximum speed of 150 Mbps(small b). on my status dialog i do see a speed of 150.0 Mbps listed. However on certain other PC's (All Win7) I see speeds as low as 5 Mbps. Why does this happen? How will this Affect performance? how may this be rectified.

Member Avatar
Member Avatar
+1 forum 3

Hi, After I make a GUI program on my computer nicely, every object in the form often changes in its location and size in different computer. I know it is because the monitor resolution is different and there are several solutions on the web but none of them actually works perfectly. Please tell me the best solution for it based on your own experience..

Member Avatar
Member Avatar
+0 forum 2

Hi there, I'm supposed to integrate different sources of data into one database. I am given these types of sources: * .txt * .csv * .html * .xls * access file as well. what attributes should I be looking at to construct a global schema because all of them have different attributes? But I can say there are a few things in common between them like name, DOB, Country, CountryName. A few hints on how to approach it will be good. Any useful website that illustrates or explains well the concepts would be awesome. Thank you.

Member Avatar
Member Avatar
+0 forum 10

I need serious help with a website! It works fine with Safari, Google Chrome, and I spent a long time making it compatable for Firefox. But the website is completely differently in Internet Explorer. I am not having any luck at all with this one. If anyone could have a look and make suggestions as to what needs to be changed, it would be greatly appreciated. I am especially having problems changing the menu bar – none of my css corrections seem to have any affect. Here is a link to the website: www.vaudevillian.co.uk

Member Avatar
Member Avatar
+0 forum 2

The End.