4,439 Posted Topics

Member Avatar for Peter_36

Never had the need to use a goto (progrmming mainly in C#), but occasionally I used a break or return to step out of a loop.

Member Avatar for ddanbe
0
360
Member Avatar for ibpet11
Member Avatar for Khang_1

This all boils down to writing some statements. Example: **Let A be the reminder of the division of X by 19** Becomes in C# code: `A = X % 19;` Try out the rest and see what you can come up with. Succes! O, and one of my snippets on …

Member Avatar for rubberman
0
156
Member Avatar for Ackroid

I wonder why you want to develop your own calendar. There are two controls to help you out: MonthCalendar and DateTimePicker. And second, what is that case statement doing in your ValueChanged method? This should be a separate function: month name in month number out.

Member Avatar for ddanbe
0
790
Member Avatar for lytonia
Member Avatar for ddanbe
0
384
Member Avatar for Pandey_1
Member Avatar for sonupari

Did you try the left-arrow? It should do the trick. Position yourself with it after the 4, do a backspace and type an 8.

Member Avatar for ddanbe
0
84
Member Avatar for Usman_10

What is listView1? A PictureBox has a Location property. Perhaps you should have more PictureBoxes?

Member Avatar for ddanbe
0
179
Member Avatar for Dani
Member Avatar for ddanbe

I have a `List<double> MyList` something looking like this: 4.75/1.01/5.66/NaN/42.42/3.33 I’d like to get the minimum value of 1.01 out of it, but I get d = NaN when doing `double d = MyList.Min();` Tried, after some long internet strolls, something with LINQ to no avail. Some LINQ afictionados around …

Member Avatar for ddanbe
0
265
Member Avatar for Jose_12

Don't know exactly what you are trying to achieve. Line 1 should be `for (int i = 1; i <= r; i++)` Same for j on line 6. Unless you declared i and j as `int` elsewhere. Line 4 `Convert.ToInt32(i)` should be` i.ToString()`, same with all other converts. i and …

Member Avatar for ddanbe
0
321
Member Avatar for Luis_6

What have you done besides posting your assignment? You must have written some code because it was easy for you in C. We like to see code. Even totally wrong code.

Member Avatar for ddanbe
0
662
Member Avatar for Ashraf_6

A simple google of "bluej gui builder" gave me 4500 results. Pick yours.

Member Avatar for JamesCherrill
0
156
Member Avatar for Jim_11

Is there a special reason why you want to manipulate applications from your application that way? I'd use W10 for that.

Member Avatar for ddanbe
0
446
Member Avatar for Jeff-Bennett

Do you talk about regular-irregular polygons? Do you have some origin and radius? Please elaborate.

Member Avatar for Stagnant
0
503
Member Avatar for VIPER5646

Yes, but could you specify where? Knowbody is going to help you with posting a blob of code and saying I have an error.

Member Avatar for VIPER5646
0
1K
Member Avatar for Ben_20

> i dont have codes yet Are you hoping we should provide cristal clear codes, perhaps in a report? Show your efforts and if we can, we will help you if we possibly can. :)

Member Avatar for ddanbe
0
82
Member Avatar for Calvince

Do you still have to use vb6? What rproffit means that you have to make a variable call it `count` or something. Get it through a textbox or other input. Line 4 of your code should then read `gpa = total / count`

Member Avatar for Minimalist
0
219
Member Avatar for Chisanga_1

Learn linear algebra thoroughly. Learn C++ thoroughly. Maybe then you begin start thinking about face recognition.

Member Avatar for Traevel
0
297
Member Avatar for Usman_10
Re: c#

s11 is an employee and also a person. It is not a student! s11 is not a meaningful name, try to give more meaningful names to your variables. If you would have named s11 as AnEployee or something, you would have noticed that `AnEployee.Informatio_student()`; does not work. You first have …

Member Avatar for pritaeas
0
251
Member Avatar for Suzie999

Line 3 of your code suggests that your string contains "left" or "right" but not both at the same time. So am I correct to pose that if your string contains "left" it cannot contain "right"?

Member Avatar for JamesCherrill
0
311
Member Avatar for Securex
Member Avatar for yawar260

Could you please specify what exactly it is you want, because adatapost has given you the code to create a label at runtime. If it can be done once it can be done 3 or 4 times or more also.

Member Avatar for Santhosh_3
0
275
Member Avatar for Jean-Michel

There exists a book called MATHEMATICAL TOOLS IN COMPUTER GRAPHICS WITH C# IMPLEMENTATIONS Alexandre Hardy & Willi-Hans Steeb (Univ. of Johannesburg, South Africa) It might help you out.

Member Avatar for ddanbe
0
227
Member Avatar for AssertNull

She has just too little experience. Let her make a travel around the world. A small suggestion:Belgium, Greece, Morrocco, Nigeria, India, Japan. After that, she might think different.

Member Avatar for diafol
0
395
Member Avatar for Yuna_1

Line 18: Why do you multiply salesAmount with sales, while your formula states you have to add the quantities?

Member Avatar for JamesCherrill
0
342
Member Avatar for Papa_Don

Some googling could help here: [Example](https://www.youtube.com/watch?v=-RLEMhGWht0) I tried "populate combobox vb.net from database"

Member Avatar for Papa_Don
0
1K
Member Avatar for bprosic

If I understand you well, why don't you check the first element in your array and check it against the rest of the elements in a loop? If at the end, they are all equal, you're done.

Member Avatar for tinstaafl
0
5K
Member Avatar for Simple man
Member Avatar for rproffitt
0
114
Member Avatar for ajit.nayak

Could you please just explain what your request and response format is all about, so we can understand it and maybe provide an answer?

Member Avatar for ddanbe
0
565
Member Avatar for hicham_2
Member Avatar for ddanbe
0
207
Member Avatar for bprosic

I have her a small snip that might put you onthe way: static void Main(string[] args) { string[] input = { "135N258S", "135N269B", "136N112S", "136N123D", "135N269B", "136K225D", "136N124S", "136N269B"}; var dataOK = input.Distinct().Where(n => !n.Contains("K")); foreach (string str in dataOK) { Console.WriteLine(str); } Console.ReadKey(); }

Member Avatar for ddanbe
0
202
Member Avatar for Erik_5

Are you sure there are always childnodes? You could test with [this](https://msdn.microsoft.com/en-us/library/system.xml.xmlnode.haschildnodes(v=vs.110).aspx).

Member Avatar for Erik_5
0
422
Member Avatar for Sid_3

Note there is also an [isalnum](http://www.cplusplus.com/reference/cctype/isalnum/) function. I find your design strategy wrong. If you would test in the input and allow only alphanumeric chars to go through, you would know your PLU string is correct and not have to validate it any more.

Member Avatar for ddanbe
0
521
Member Avatar for Altjen_1
Member Avatar for Sourav_6

French stands the most close to English. In fact about half of the words in English are borrowed from French. But if I would have this opportunity I would choose Chinese.

Member Avatar for ddanbe
0
145
Member Avatar for Wallace Jnr
Member Avatar for riahc3
Member Avatar for Hilal2009

Did you have a look at the [DateTime structure](https://msdn.microsoft.com/en-us/library/system.datetime(v=vs.110).aspx) ?

Member Avatar for ddanbe
0
783
Member Avatar for sofoklis

You could also write your gate functions a bit shorther. Example the AND function: bool AND (bool inputa, bool inputb) { return inputa && inputb; } You could perhaps (depends on the C-compiler) save a few computercycles, but the way it is written is perfect.

Member Avatar for ddanbe
-3
168
Member Avatar for imso
Member Avatar for imso
0
321
Member Avatar for AleMonteiro

Anarchism is indeed a great thougth, but it will never be. It's like Utopia.(Thomas More) As we are all animals, we have it in us to survive. Only the fittest will do so.(Ch. Darwin) So we all have to struggle to get some food to feed our offspring, for instance. …

Member Avatar for Agilemind
0
391
Member Avatar for Link_1
Member Avatar for MOD37

To walk through cells in excel sheet with macro use something like Dim i As Integer For i = 1 To 20 step 2 Cells(i, 1).Value = 42 Next i Posting macro recording code won't help much you know. :o)

Member Avatar for MOD37
0
172
Member Avatar for kudus94
Member Avatar for johndohmen1963

What is TextBox5, texta1, Label31(see line 65) etc.? Give them meaningful names!!! Like **naamVaderTxb** or something. I don't relly get why you have to test if your textboxes are not empty.

Member Avatar for ddanbe
0
257
Member Avatar for Kachour
Member Avatar for Ehtesham Siddiq

I don't know of any ImageBox in C#. Only a PictureBox control with an Image property. To load an image in a picturebox use something like: [B]pictureBox1.Image = MyJPEGimage;[/B]

Member Avatar for Marwen_1
0
3K
Member Avatar for Papa_Don

Line 23 & 24: Can you close an objReader1 after it is disposed? Same on lines 29&30

Member Avatar for Papa_Don
0
1K
Member Avatar for sumitseocastell

The End.