Showing results 1 to 25 of 94
Search took 0.07 seconds.
Search: Posts Made By: NFITC1
Forum: .NET General 11-12-2012, 10:45 AM
Replies: 3
Views: 371
Posted By NFITC1
This is kind of what I have it doing now. I just...

This is kind of what I have it doing now. I just wanted to avoid doing this and assigning all the controls' texts every time a child form comes up. I guess I'll live with it this way. It's not much...
Forum: .NET General 11-01-2012, 10:58 AM
Replies: 6
Views: 596
Posted By NFITC1
I'm going to go out on a limb here and offer a...

I'm going to go out on a limb here and offer a potential solution based on an identical error I was getting. This may have nothing to do with your problem, but I was getting the same error when I was...
Forum: .NET General 10-30-2012, 02:31 PM
Replies: 3
Views: 371
Posted By NFITC1
Sharing Control texts between instances of child forms

In my current project I want to have some controls have default texts that the user can change via an external xml file. I can load the texts just fine, but I don't know if I have the most efficient...
Forum: .NET Interface and Graphics 10-19-2012, 03:17 PM
Replies: 5
Views: 830
Posted By NFITC1
It works either way, actually. Ironically,...

It works either way, actually. Ironically, specifying "Me" instead of dbpRender in the device's constructor makes it render in the form just fine. It must be a problem with my control.

I got it...
Forum: .NET Interface and Graphics 10-19-2012, 01:55 PM
Replies: 5
Views: 830
Posted By NFITC1
I've tried that. Turning it off and on and even...

I've tried that. Turning it off and on and even switching the base object to a form and back. None of that makes a difference.

I'll counter your assumptions with some of my own.

I assume the...
Forum: .NET General 10-19-2012, 12:35 PM
Replies: 1
Views: 248
Posted By NFITC1
I do this stuff in java all the time. As such,...

I do this stuff in java all the time. As such, I've run into similar problems before. It's probably not exactly the same, but I'm willing to give it a shot.

What I've had to do is close the...
Forum: .NET Interface and Graphics 10-19-2012, 11:10 AM
Replies: 5
Views: 830
Posted By NFITC1
Direct3D render disappearing after presenting

I've got two projects that are supposed to be 3D renderings. One of them renders just fine, the other does not.

The one that isn't working I copied the code from the working one expecting it to...
Forum: .NET General 07-02-2012, 02:55 PM
Replies: 2
Views: 606
Posted By NFITC1
From my experience with DGVs, altering cells like...

From my experience with DGVs, altering cells like that doesn't work as intended. It's probably better to clone the whole row, alter the cell the way you want it to be, then reinsert the row at the...
Forum: .NET Interface and Graphics 04-10-2012, 09:10 AM
Replies: 5
Views: 2,241
Posted By NFITC1
I could share the datasource, but there's still...

I could share the datasource, but there's still 32 comboboxes that have to populate 32 different lists with 800 entries each. Since these 800 entries are all the same it would be more efficient to...
Forum: .NET Interface and Graphics 04-10-2012, 08:14 AM
Replies: 5
Views: 2,241
Posted By NFITC1
Reinventing (and drawing) the ComboBox

I'm trying to make a custom combobox from scratch that multiple instances will share the listbox that holds the data on. I'm trying to draw the button face manually using GraphicsPaths and pens and...
Forum: .NET General 04-10-2012, 08:06 AM
Replies: 4
Views: 561
Posted By NFITC1
One thing to always keep in mind is that only...

One thing to always keep in mind is that only non-arrayed primitive types can be passed by value. Everything else is passed by reference.
Forum: .NET File I/O and Registry 04-07-2012, 04:28 PM
Replies: 1
Views: 1,678
Posted By NFITC1
The problem is your reader. It doesn't know where...

The problem is your reader. It doesn't know where your IndexOf function found the match in the string you already instanciated(sp) so it's going to read the first line from the file then the next TWO...
Forum: .NET General 04-06-2012, 07:48 PM
Replies: 3
Views: 590
Posted By NFITC1
In almost any other project that would work...

In almost any other project that would work great. However, there could be multiple instances of this child form being displayed at any given time so hiding/revealing won't work. Also, it's kind of a...
Forum: .NET General 04-06-2012, 02:50 PM
Replies: 3
Views: 590
Posted By NFITC1
Multiple instances of a single control on a form

I've got two sets of lists with nearly 800 items that I need in 32 different drop down comboboxes (before you ask, that is required and it can't be simplified). Understandably, populating each of...
Forum: .NET General 04-06-2012, 02:35 PM
Replies: 2
Views: 419
Posted By NFITC1
If you want the value to go to 0 in the result of...

If you want the value to go to 0 in the result of an overflow then I'd do this:

Compbar.Value = Math.Max(CompBar.Value - damage, 0)

That might be a little less clear, but it will set the value...
Forum: .NET Interface and Graphics 09-16-2011, 09:57 AM
Replies: 1
Views: 799
Posted By NFITC1
Sounds like you want an MDI style application....

Sounds like you want an MDI style application. You should use the MDIContainer control. I think that's what it's called. There's a lot oc things you can do with those child documents too. I don't...
Forum: .NET General 09-16-2011, 12:02 AM
Replies: 2
Views: 976
Posted By NFITC1
You're problem, if you haven't fixed it by now,...

You're problem, if you haven't fixed it by now, is with these lines. The guy I work under is always saying that solutions are right in front of you, but sometimes it just takes an extra set of eyes...
Forum: .NET Interface and Graphics 09-08-2011, 02:02 PM
Replies: 7
Views: 2,994
Posted By NFITC1
The way you're doing it is just adding to...

The way you're doing it is just adding to complexity. There's not much point to refactor a function that contains one line. What you're doing is calling the Class's shared function rather than...
Forum: .NET File I/O and Registry 08-26-2011, 05:59 AM
Replies: 3
Views: 1,244
Posted By NFITC1
I think there's a class in the...

I think there's a class in the My.Computer.FileSystem package called DirInfo that can tell you how many files are in the dir. I used it to create a little prog to tell me where my drive's space was...
Forum: .NET General 08-25-2011, 06:20 AM
Replies: 7
Views: 2,674
Posted By NFITC1
The easiest way to see is check the reg entry...

The easiest way to see is check the reg entry after writing it to make sure it's correct. IIRC, Win7 might change a non-admin prog to point to the virtualstore dir on most hard-coded lookups like...
Forum: .NET General 08-24-2011, 12:13 PM
Replies: 2
Views: 910
Posted By NFITC1
I'm not sure that those properties actually work...

I'm not sure that those properties actually work for cells that you add at run-time. You can go through all the cells programmatically and change their styles. That works for me.
Forum: .NET File I/O and Registry 08-19-2011, 08:51 AM
Replies: 6
Views: 1,229
Posted By NFITC1
I thought that was the format you wanted. What's...

I thought that was the format you wanted. What's not right? if you want quote marks around it you'll have to append four quote marks:

WriteBat.Write("pawncc.exe " & """" & SaveFile.FileName & """"...
Forum: .NET File I/O and Registry 08-19-2011, 08:25 AM
Replies: 4
Views: 2,200
Posted By NFITC1
You're half-way there already. Just add a check...

You're half-way there already. Just add a check if Firefox32 is Nothing:


If Firefox32 Is Nothing Then
MsgBox("Firefox could not be found")
Else
...
End If
Forum: .NET General 08-18-2011, 03:09 PM
Replies: 1
Views: 903
Posted By NFITC1
Basic math: Dim Sum as Double = 0 Dim...

Basic math:


Dim Sum as Double = 0
Dim Average as Double
For i = 0 To .bets.Length - 1
With .bets(i)
Sum += .price
Print(.price)
End With
Forum: .NET File I/O and Registry 08-18-2011, 12:45 PM
Replies: 6
Views: 1,229
Posted By NFITC1
Oversight on my part. The variable "Write"...

Oversight on my part. The variable "Write" already exists in the If block above it. You can't create it with the same name. Rename the second Write variable to something like WriteBat and change the...
Showing results 1 to 25 of 94

 
Forum Jump
Advertisement:



Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe