Search Results

Showing results 1 to 40 of 174
Search took 0.02 seconds.
Search: Posts Made By: TobbeK
Forum: C# 31 Days Ago
Replies: 3
Views: 489
Posted By TobbeK
Hi

Your example was very useful. I just replaced the static text, and the loop with a textbox input and it all works well, new pages are added while needed. Also with less code than the Pdfsharp...
Forum: C# 32 Days Ago
Replies: 3
Views: 489
Posted By TobbeK
Hi and thanks for your answer.

Yes you are correct, I want to split the paragraph if needed and append the text on a new page, also create new pages while necessary.

Yes I have looked into the...
Forum: C# 32 Days Ago
Replies: 3
Views: 489
Posted By TobbeK
Hi
I put my hope to anyone experienced in the PdfSharp class library or perhaps can find an answer anyway. Please provide some code example, I have tried many variations and have already seen most...
Forum: C# Aug 5th, 2009
Replies: 10
Views: 526
Posted By TobbeK
I am still not sure this is the correct way saving listview items into a binary file. Something is saved, but probably not all of the listview items (rows).


private void...
Forum: C# Aug 5th, 2009
Replies: 10
Views: 526
Posted By TobbeK
No errors, even if it's binary I can only find one post (row) in the txt file. I am missing something when trying to serialize all of the posts (rows) in listview.

The code is for my own training...
Forum: C# Aug 5th, 2009
Replies: 10
Views: 526
Posted By TobbeK
I have added a array for the items, a file is created, but it not seems to contain all of the listview rows


ArrayList animals = new ArrayList();
...
Forum: C# Aug 5th, 2009
Replies: 10
Views: 526
Posted By TobbeK
Here's my attempt doing a binary serialization. Together with a SaveFileDialog. Doesn't really work, but may show the way of thinking.


private void sparaSomToolStripMenuItem_Click(object...
Forum: C# Aug 5th, 2009
Replies: 10
Views: 526
Posted By TobbeK
I really don't what's best. The listview items inputs comes from textboxes, and I have tried to approach serialization from textboxes as well. Maybe I need some array doing that. I can put up the...
Forum: C# Aug 5th, 2009
Replies: 10
Views: 526
Posted By TobbeK
I need to serialize items populated in a listview.

Can anyone provide me with some simple example how to do that.
No matter if it is binary or XML.
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Am I on the right track when using the base and derived classes or am I lost forever. A few things doesnt really work yet such as the change and delete row things. With the fixed column it looks...
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Thanks

The ctor did the trick

Stupid me :-)
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Okidoki

I got the point, dont know how to change it though.

This is all of the current testcode. With use of base class, derived class and so on as supposed.


using System;
using...
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
The columns repeats when new posts been added to the listview as shown in my previous post. Is there anyway to set this, in code or something else
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Thanks
The columns looks good, but new columns is repeated together with new post as shown in the attachment


lstListAnimals.View = View.Details;

...
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Yes ddanbe

The derived classes Meateater and planteater is now abstract as well, this is what I have done so far. I have no returning values from these yet. Still thinking how to do do things :-|...
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
The columns looks fine, but I may missing something here, how do I setup values to be shown in the different columns ?

lstListAnimals.View = View.Details;

...
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Yes...

I uses the listview now, and make it view the values in rows, but how to add more columns to it ?

lstListAnimals.View = View.List;
...
Forum: C# Jun 28th, 2009
Replies: 21
Views: 715
Posted By TobbeK
I have attached examples of the user interface (how it should look like) and a class diagram.

I like to start with the listview or listbox control. How can i add columns. Headers is not necessary....
Forum: C# Jun 27th, 2009
Replies: 21
Views: 715
Posted By TobbeK
I did a few improvements about the abstract base class and added 2 derived classes.

The application is a part of a workshop, where a suggested applicqation could be
a animal register, not my...
Forum: C# Jun 27th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Thanks for all of the quick responses.

I will get back soon with an updated code as suggested and with more specific questions about the parts of the app.

//Tobbek
Forum: C# Jun 27th, 2009
Replies: 21
Views: 715
Posted By TobbeK
Hi

I like some beginnerhelp in C# and the basics of OOP. I have coded a bit but need some further guidance to continue.

This is an application with the purpose for my own training in...
Forum: C# Mar 22nd, 2009
Replies: 10
Views: 1,288
Posted By TobbeK
Thanks

A lot of good help
Forum: C# Mar 22nd, 2009
Replies: 10
Views: 1,288
Posted By TobbeK
Outstanding as usual ddanbe :cool:

I need som time to analyze what the code is doing, but it is working the way I needed.

What is so special with the form elements, and why is so hard to...
Forum: C# Mar 22nd, 2009
Replies: 10
Views: 1,288
Posted By TobbeK
Yes that is correct :-)

There is some deeply hidden secret how that can done...
If I pass static values from A to B, I can do whatever I like with the values.

I am trying to avoid making...
Forum: C# Mar 22nd, 2009
Replies: 10
Views: 1,288
Posted By TobbeK
Hi there ! Thanks.

I am still a bit confused about the values. It seem not to be possible to reach the values in my other class as long they come from the textbox in Form class. It works if I take...
Forum: C# Mar 22nd, 2009
Replies: 10
Views: 1,288
Posted By TobbeK
Hi, thanks

Is it possible to use the set get without creating a new textbox in the second class. The second class is not a form so I like to pass just the value of the textbox. My code below...
Forum: C# Mar 22nd, 2009
Replies: 10
Views: 1,288
Posted By TobbeK
I have a small problem passing values between classes while a textbox is used.

I can reach the public variable (field) for the textbox that belongs to the Form class from my other class, but no...
Forum: ASP.NET Jan 26th, 2009
Replies: 1
Views: 1,773
Posted By TobbeK
How can I access a variable in Global.asax.cs

This is my current nonworking code .....

my code in Global.asax.cs



public class Global : System.Web.HttpApplication
{
Forum: C# Jan 24th, 2009
Replies: 5
Views: 367
Posted By TobbeK
Thank you guys !

This was what I was looking for, it replaces the current string from the label and print the values I want from the array: "One Two Three" in a row.

Label5.Text = string.Join("...
Forum: C# Jan 24th, 2009
Replies: 5
Views: 367
Posted By TobbeK
This has probably a simple solution, but i cannot find any obvious wrong.

This is a simple button event and the supposed output in Label5 should be: One Two Three.
Now, I can only get "Three",...
Forum: C# Jan 20th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
What am I missing here....

I try assign 2 public variables (TaxRate and ItemType) with values from the method GetTaxrate.


class Product
{

static void Main(string[] args)
...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
Thanks again...
That was it !

I agree, and I must do a lot of mistakes myself to learn this. It is fun language but a little bit hard sometimes.

I am sure I will be back here soon..

best...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
No errors, but no one of the public variables can be assigned to any values. No matter if I try to change data types. I dont know whats wrong. My code here should do a simple calculation and print...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
Yes thanks!

I dont know the difference between set public variable as you did and a method. But it seem to be a good start.

I will work with this a bit and send you a feedback here!
Thanks
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
VBScript mostly and VB. Completely different languages.

What do I need to pass for example the variable ReadName and pick just that one up into the main method. As you can see I have no problem...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
Yeah well that is the problem, how do I do that, passing the product values into another method so I can work with the value there?.

I am not use to C# syntax at all, I am old ASP programmer who...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
Hi

I think one of my problem for my to understand is how I can "pick" one variable and work with that one in the main method. If I can do that, It may solve a few things. Now, all variables in...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
I will be more than happy if you help me with one or two of the variables so I can fill out the rest and post it back here. I have trying this for days and I am not not use to C# at all. Frustrating...
Forum: C# Jan 19th, 2009
Replies: 21
Views: 1,050
Posted By TobbeK
Hi

I am completely new to C#, so please bare with me ....

What I am like to do is to pass variable values between the methods below, and finally print the results in the last method. I have...
Forum: ASP Mar 21st, 2008
Replies: 4
Solved: Form looping
Views: 986
Posted By TobbeK
Hi there!

Thanks again.
I solved it, but without the second loop (j).

Here it is!
From here it should not be any problem to create a validation routine for the fieldsets.

OUTPUT TESTCODE
Showing results 1 to 40 of 174

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC