Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

<-- less than a month here so don't know the history but glad to see ya here :)

Edit: Woot!! Post 400!!

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

My thanks to both of you, links duely added to bookmarks :twisted:

More... need more BRAINZZZ... I mean Links!! hehe.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

what exactly is a "fake" signature and why is it a problem/against the rules?

From what I understand of it a "fake" signature is essentially where a person manually types their "signature" content directly at the end of their messages for every message. This could be their name, an URL for their company, an URL for their personal website, whatever is a standard 'sign-off' for their posts.

The site (DaniWeb) provides a "signature" segment adjustable via your Control Panel where you can format and include a standardized signature that will appear at the bottom of every post you make.

As part of the posted rules it is encouraged to use a site-wide standardized signature instead of a "fake" signature for various reasons, one of which is outlined in the "What will happen" portion of the related explanation in the rules which is "Emails, fake signatures, and personal information will be snipped out of offending post." This is, in part related to the next posted rule "Keep It Spam-Free".

Hope that helps :)

Edit: Oops, I guess the sig field does auto-format URLs as links after all...

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Ok... Just as a note, I literally had to copy/paste your relevant code segments into 2 separate notepads side by side to check it over but here's what I'm seeing for starters:
Your 2 slideshow scripts (the portion that follows) are identical. If they will function as identical scripts there's no need to have them there twice

<script type="text/javascript">

for(var j = 0; j < imgAr1.length; j++)
{
		rImg1[j] = new Image();
            rImg1[j].src = imgAr1[j];
}

document.onload = setting();

var slide;
function setting()
{
	slide = document.getElementById('pic');
	slide.src = imgAr1[0];
	slide.setAttribute("width",width);
	slide.setAttribute("height",height);
}

//Image or picture slide show using java script
//slideshow function
var picture = 0;
function slideshow(){
	if(picture < imgAr1.length-1){
		picture=picture+1;
		slide.src = imgAr1[picture];
	}
}

function prev(){
	if(picture > 0 ){
		picture=picture-1;
		slide.src = imgAr1[picture];
	}
}

function start(){
		slide.src = imgAr1[0];
		picture = 0;
}

function end(){
		slide.src = imgAr1[imgAr1.length-1];
		picture = imgAr1.length-1
}
</script>

That being said, if they're meant to work on separate slideshow sets you may want to consider making them unique to each other by changing the variable name styles for things like the image libraries as currently the only point of variance is between

<a href = "javascript<b></b>:void(0)" onclick = "document.getElementById('sh').style.display='block';document.getElementById('fade').style.display='block'">

and

<a href = "javascript<b></b>:void(0)" onclick = "document.getElementById('ed').style.display='block';document.getElementById('fade').style.display='block'">

and in the image filenames themselves.

Now, my javascript is a bit on the rusty side but... from what I'm seeing of the code segment I showed above it looks as if your slideshow is basing from …

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Actually, in the subscribed threads links in the control panel if you click on the name of the person it shows as having replied to the thread it will take you directly to their post skipping all the earlier stuff.

Granted, the primary link does go to the top of the thread as you said :) But I get around that by just clicking the name of the responding party to the right of that link.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

OTHER UPTIGHT MODERATORS who doesn't know proper grammar AKA ANCIENT DRAGON

Normally I don't like to feed these types of posts with a response but I just had to put in my 2 cents since you seem to feel that it's that important to split your rant into two separate caps-lock-challenged threads.

While I can understand that perhaps you felt offense at a statement made by one individual within this site... And I can also understand that you felt 'picked on' after you were hit with some moderator action for breaking posted rules of this site... I don't understand why you feel that any of the following applies:

  • The rest of us need to be made painfully aware of your feelings of persecution
  • The rest of us in any way care about the fact that you received moderator action in the first place
  • The rest of us feel any need to witness your abusive tirades against another member of this community
  • That you are in any way exempt from the rules that apply on a privately owned and operated forum because "people who read the rules ... don't have their own website and no money TO MAKE THEIR OWN RULES"
  • That anyone who uses 50%+ caps in their posts can claim any level of maturity, let alone a superiority over others

Having said all of that, you're definitely allowed your opinion and you've every right not to utilize services if you disagree with how they're run …

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Ok, basically, what I'm finding when I look at print options for web applications is this...

1) It's not a code-behind process, it's a user-end process
2) It can be accomplished using JavaScript or other browser-level scripting

A simple method to invoke a 'print-screen' type scenario would be the JavaScript function of

window.print()

Which will call the page print function. Beyond that, if you want to add additional print functionality (page layout, etc) you would need to look into other JavaScript or possibly ActiveX controls of some sort to implement those functions.

Hope that helps :) Please remember to mark as solved once your issue is resolved.

P.s.: The above information was from the first non-advertising link in the search I posted to you earlier... Please try to perform basic research before asking others to do your work for you in the forums :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Please change your front end code to include this:

<asp:DropDownList id="ddlEmpName2" 
style="Z-INDEX: 138; LEFT: 192px; POSITION: absolute; TOP: 32px" runat="server" Width="152px" ForeColor="DarkBlue" DataValueField="EmployeeId" DataTextField="EmpLastFirst" DataSource="<%# dvEmpActiveList %>" 
Font-Size="X-Small" AutoPostBack="True" Enabled="False" 
AppendDataBoundItems="True" onselectedindexchanged="ddlEmpName2_SelectedIndexChanged" >
<asp:ListItem Selected="false" Text="Select" Value="0"></asp:ListItem>
</asp:DropDownList>

Your snippet at the top does not have both a closing bracket on your DDL opening code or a reference to the onselectedindexchanged event.

Hope that helps :) Please remember to mark as solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Kayfar;

Please post your login/logout code here (minus any password sensitive information if present in your code) so that we can see the process you're using to maintain your login session.

Depending on your session management method we may be better able to suggest the best possible method for ending the session so that if someone uses the "back" button the expired session means that they would be forced to log in again.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Ok thanks for that :) Someone else had already made that suggestion via instant message but I just wanted to hear from the top whether what I was looking for was possible or not.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Anyone on 'staff' have an answer for this before I mark it solved as a matter of housekeeping?

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Anyone else have any thoughts on this before I mark it solved as a matter of housekeeping?

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Anyone else have any thoughts on this before I mark it solved as a matter of housekeeping?

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

G'day all...

I know there's a sticky in this forum for books that are recommended as C++ references from newbies to advanced coders.

What I'm wondering is this...

What are the online resources you most recommend for C++ coders?

What I'm looking for are those resources that are so useful to you that you feel everyone should have them bookmarked as common "go here for information" type sites.

Basically, I'm trying to self-learn C++. I'm coming from a C# background and I'm planning on picking up some resource/learning books as well but I'm also trying to build a directory of resource bookmarks to have handy as I go along.

Thanks in advance for your feedback folks :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Have you tried checking here?

Hope that helps :) Please remember to mark solved once your issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

You could set a default URL string value on the page generated as the first value obtained at the time of the dropdown's population. Then set the dropdown selected item changed event handler to change that string value and use the string as your URL to load instead of using the selected item property as the URL.

Basically...

string linkURL = dropDownDataPopulationFirstValue
dropDownName_SelectedIndexChanged Event
linkURL = dropDownName.SelectedIndex.Value.ToString()
ClickableLink = linkURL

No, that's not actual code, just the outline of how to do it.

Hope that helps :) Please remember to mark solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

My thought is, if it's at all server-side related it'd be the speed at which the information is being presented to the user. I don't believe that your javascript link system is an issue per-se but more the size of PDF files and speed of file transfer. However, this can be either a server issue or a client issue or neither (in the case of router issues BETWEEN server and client).

As I indicated, I had no issues whatsoever with a random cross-section of links that I opened from the site so it leads me to infer that the issue is either client-side (reader issue/reader version) or server-side (beyond the script, actual server file presentation).

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

All I can say is the information in the error message tells you where the error is (sort of)...

"operator == cannot be applied to operands of type 'System.IntPtr' and 'int'"

You have defined:

IntPtr handle = User32.WindowFromPoint(curpos);
handle = User32.GetAncestor(handle, 2);
 
for (int i = 0; i < listBoxTables.Items.Count; i++)
if (((PokerTable)listBoxTables.Items[i]).HWND == handle)

In your first segment which I'm assuming worked correctly as you say you started getting errors after, when you add this:

int handle = 0;
            StringBuilder Buff = new StringBuilder(nChars);
            handle = GetForegroundWindow();

            if (GetWindowText(handle, Buff, nChars) > 0)
            {
                this.textBox1.Text = handle.ToString();

                for (int i = 0; i < listBoxTables.Items.Count; i++)
                if (((PokerTable)listBoxTables.Items[i]).HWND == handle)

It almost feels like I'm back watching Sesame Street :twisted: "One of these things is not like the others..."

Sorry had to say it... In your first example you defined handle as "IntPtr handle" and in your second example you defined handle as "int handle = 0;"... Your error says you can't use == to compare IntPtr and Int and that 2nd definition of handle is why.

Hope that helps :) Please remember to mark solved once your issue has been resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I suppose... In my case I'm currently unemployed and I've been using my "free time" to try to help out others :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

reibi;

Did you look at the link I provided for you? I ask because I still believe it will do what you're looking for *shrug*

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I take it back... after fiddling and playing with the controls I can't get it to do what you want :twisted: The main reason being that the databinding is not controlled enough for me to get a variable into the 2nd repeater representing the message id of the first repeater so it can selectively populate a list of responses related to that item.

Sorry, really thought it would work and if you can find a way to populate the repeaters at the code-behind level instead of the front end data-bind level it would work :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Technically, if configured correctly with the 2nd repeater INSIDE the first repeater (which I guess is the tricky part) and the correct data population you should be able to get the effect you're needing with what I supplied.

Basically repeater1 should be configured as a straight up select of all the "questions", repeater2 should be configured to select all answers based on the current question. In that way it SHOULD give your required result.

By configuring as indicated abouve you should get the following:
Repeater1 details
Repeater2 details
Repeater1 details2
Repeater2 details2
Repeater2 details2, 2nd
Repeater2 details2, 3rd
Repeater1 details3
Repeater2 details3

And so on... I'd play around with dynamic population of the dataset for repeater2 based on the current information from repeater1 to achieve this result.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I don't have any specific examples for you but I might try a Google search for CSS hyperlink color options and such because I think that's your best bet for having links that change colour based on pre-set properties/criteria... possibly coupling with javascript to actually catch the criteria as it occurs and call the appropriate CSS style to match.

Alternately if it's an ASP.Net driven application and you're using <asp:hyperlink> links, you can dynamically set the color on the back end using the forecolor property of the hyperlink based on whichever programatical requirements you need.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

One thing to check (because I don't think that DESC is exclusionary to using DGVs) is that the table values in the database are what you expect them to be. For example, is the result 0 lines populated to the DGV or is it several lines with id's but no other content? If it's the latter you could be dealing with null values in the other columns that hadn't been anticipated by the design of this project.

There's literally no reason why changing the sort order of the select statement should be affecting whether or not data shows within the DGV. Alternately (though not preferred) you can use the following:

dataGridView1.Sort(dataGridView1.Columns["id"].ListSortDirection.Descending)

if you truly can't get the DESC to work in the select statement.

Hope this helps :) Please remember to mark as solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I'm a bit confused as to your intention here... are you trying to add the item you're inserting into the DB to the already populated DGV? If so, why not simply reload the DGV to reflect the new table contents once the table's been added to?

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Welcome to the forums. I'm hoping for your wife and kids' sake you didn't list your hobbies in order of preference hehe.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Not sure what you mean there... Your initial question was how to check for a change in the file. In order to do that you need to have the original file vs the file being checked. Only other way that would be quicker and easier is if you had a stored table of checksum values for your files and compared against that.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

What I might recommend is a dynamically populated set of repeater objects instead of a datagrid.

Basically you set the "fields" of your repeater (labels, text areas, whichever) along with styles and colours of choice and you populate the repeater from your data.

In that way you can have 2x repeaters, one for the primary discussion/original post and one for replies which is a subset of the first one.

When populating the first repeater it populates based on the primary discussion and if the primary discussion has replies you populate the secondary repeater with those.

Unfortunately, it's a bit beyond what I've done with repeaters myself so I can't give detailed code as I've only worked on single-level repeaters myself but I'm sure it can be done :twisted: and it would allow you much more flexibility on formatting and such than the datagrid method.

A good resource for how to use the repeater can be found here.

Hope this helps :)

Edit: I would approach it something like this:

<asp:Repeater ID="Repeater1" runat="server">
            --Repeater format setup--
            <asp:Repeater ID="repeater2" runat="server">
                --Repeater format setup--
            </asp:Repeater>
        </asp:Repeater>
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

If I had the answer to that, I think I'd be developing them right now instead of trolling the forum looking for people to help with random code issues :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

You could, yes, but the principle remains the same... you need a benchmark file to compare to item by item in order to determine if a change has occurred.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

<-- Using firefox and having no difficulties whatsoever with the links on the page presented :twisted: 9/10 times issues viewing pdf files boil down to reader version issues or site delivery issues moreso than browser specific issues.

As a side note, I refuse to use Internet Explorer for anything other than testing web content as I'm developing.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

So to expand on the above example, to shrink by 2/3 but keep same container/display dimensions...

  1. Determine mid-point of existing rectangle ~ ((x2(right) - x1(left))/2) + x1 = xMid - ((150-25)/2)+25) = 87.5, ((y2(bottom) - y1(top))/2) + y1 = yMid = ((200-25)/2)+25) = 112.5
  2. Determine zoom ratio (2:3)
  3. Convert xLength (150 - 25) * 2:3 = 83.333
  4. Convert yLength (200 - 25) * 2:3 = 183.333
  5. Find new x positions 87.5 +- (83.333/2) = 45.833 (closest full pixel is 46) & 129.167 (closest full pixel is 129)
  6. Find new y positions 112.5 +- (350/2) = 20.833 (closest full pixel is 21) & 204.167 (closest full pixel is 204)

Completed new rect would be (129, 204, 46, 21).

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Well my method works best with a consistant overall ratio change (ie: you double the display size therefor ratio = 2:1 or shrink to 2/3 size giving ratio of 2:3)

With an example of 2:1 (doubling) I would do the following

  1. Determine mid-point of existing rectangle ~ ((x2(right) - x1(left))/2) + x1 = xMid - ((150-25)/2)+25) = 87.5, ((y2(bottom) - y1(top))/2) + y1 = yMid = ((200-25)/2)+25) = 112.5
  2. Determine zoom ratio (2:1)
  3. Convert xLength (150 - 25) * 2:1 = 250
  4. Convert yLength (200 - 25) * 2:1 = 350
  5. Find new x positions (87.5 * 2:1) = 175 +- (250/2) = 50 & 300 (forgot to adjust mid-point for 2:1 ratio change as well, did it on the fly here)
  6. Find new y positions (112.5 * 2:1) = 225 +- (350/2) = 50 & 400

Hope that helps somewhat. In the end you end up with your original rectangle at (150, 200, 25, 25) your 2:1 rectangle (based on doubling display size as well which displaces the center mark to a new position in the process) at (300, 400, 50, 50). While it may seem the matter is as simple as doubling all the numbers the basic formula can be used to replicate the ratio change as well as insuring visual symetry in the center point of the shape.

In situations where you want to zoom the shape but not the container/display you can use all the steps above but omit the ratio …

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

For starters you would need to have a benchmark or base value to establish against the file to be tested.

From there you would basically have to do a line by line string by string (or char by char) comparison between the two files to determine changes between the base value and the current file (of course you can try to determine if the file is identical first but file size and creation date/time are not always good identifiers of sameness).

As for posting example code... sorry, don't have any pre-made and too tired to try to write it for you right now :twisted: but based on the information above you should be able to make a few educated steps in the right direction for what you're looking to do.

Don't be afraid to do some research on file reading to figure out how that works :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

You might find this link to be helpful in what you're looking to do... it goes step by step in how to have a span within your div that imitates the general effect you're talking about (I think). Some adjustment to the method they outline should do what you wanted if I'm reading it right.

Hope this helps :) Please remember to mark solved once your issue has been resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I just went through about a dozen of them and all came up fine. What I might suggest is you make sure your PDF viewer (Adobe Acrobat Reader) is up to date with the latest version as sometimes version issues can cause viewing incompatibility. Alternately, it could just be latency in the download of the PDF file as each of the files I tested did start off with all black for about 1/4 second before loading on my screen.

You can make sure you have the latest viewer here. As a side note, Adobe likes to package a trial version of McAfee Security Scan Plus with their reader download, you can opt out of this however and I personally don't like it on my system.

Hope this helps :) Please mark as solved once your issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Not saying that it's the reason why the specific sites you're referring to would do this but in some cases sites choose to use methods that bypass automation in their logins and authentications to prevent automated users (read: bots) from utilizing their sites. This can be common on some forums, form submission sites and the like. However, the more common method for bot elimination is captcha (probably spelt that wrong) images so *shrug*.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I'm no expert in the draw process but from what little I know the standard Graphics.Draw methods tend to be 'static' in their positioning. In order to achieve a "zoom" effect I would do something like the following (pseudocode not C# code cus I don't know the processes required per-se)

  1. Determine mid-point of existing rectangle ~ ((x2(right) - x1(left))/2) = xMid, ((y2(bottom) - y1(top))/2) = yMid
  2. Determine zoom ratio (2:1, etc)
  3. Convert xLength (x2(right)-x1(left)) * ratio
  4. Convert yLength (y2(bottom) - y1(top)) * ratio
  5. Find new x positions xMid +- (xLength/2) = newXTop & newXBottom
  6. Find new y positions yMid +- (yLength/2) = newYLeft & newYRight
  7. Draw new zoomed rectangle

Based on this process you determine the existing center point and "zoom" accordingly to the same center point on your new ratio.

Hope that helps :) It's been a while since I used draw methods so I'm sorry I can't provide actual code for the scenario.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

1) that snippet looks like a form with a table inside it
2) there's no closing table tag or any details between

If you're posting a code snippet please post all of the snippet so people can see the actual details as what you've posted above not only is improper html but makes no sense whatsoever :twisted:

Not a shot, just need more info than a partial snippet of malformed code :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I'm just curious about the opinions of people in the programming industry as to what they would think of the following scenario:

  • User is an active contributor within DaniWeb (granted only recently joined)
  • User has supplied a large number of working solutions or at the very least processes by which solutions were derived for other members (for the time frame that they've been here)
  • User has shown knowledge and skill set within specific categories

Would it then be a case where that user could include their daily troubleshooting, debugging and code referencing work within DaniWeb as "Volunteer Work" or "Volunteer Experience" within their resume?

Would you include, perhaps, an URL to your profile here for potential employers to view? Or just general statistics (such as solved threads and positive feedback)? Or would it in any way impact on a resume in the first place?

I have to assume that at least SOME employers out there know of DaniWeb based on the size of the community here and the prevalence of the site in searches related to IT and code troubleshooting.

Any thoughts? Just to clarify, I don't contribute to the forums and to answering peoples' questions out of any need for personal gain but I am curious if my contribution here would be something of interest/benefit to add to my resume is all :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Thanks Lusiphur I love the Design of your Website that electricity effect in the menus really cool

Thanks, the buttons are easily achieved through combination of .png (transparent background stationary image) for the unclicked button and .gif (transparent background animated image) for the clicked mouse-over image... the tough part is downloading the 30 day free trial of Maya :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

David;

I've posted on the usual gambit plus a few... Monster (useless), Workopolis (slightly less useless), I've even posted with a couple of agencies (Procom and others) as well as trolling Craigslist and applying directly to dozens of companies I've come across in various searches I've conducted.

Part of the problem is, despite my abilities and knowledge (and the fact that I can 90% of the time find a solution if I don't already know it through a bit of research and effort) I don't have the big flashy credentials that many companies seek.

Yes, I have a computer programming degree from a trade college here in Vancouver but then so do many other people (similar degrees). The problem is, while I actually EARNED my degree (and then some) with hard work and a strong ability to easily pick up on key concepts quickly... many other people with similar degrees didn't and make the degree appear worthless to employers with their lack of practical knowledge and ability.

If I could at least get my foot in the door and show my skills and willingness/ability to learn I'm sure I could become a valuable asset for any company willing to give me the chance. Unfortunately, I never get past the application to even an interview :(

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Sure thing... Here you go!

Hope this helps :) Please mark as solved once your issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

best if no javascript is used.

also i can only have 1 solid border, this way it looks nice, and both the left and right could be longer.

Alternately, you could place a 3rd (very narrow vertical) DIV between the other 2 with a solid line image of sorts within it but you'll still end up with the line only being as long as the image and not being "fit to scale" with the rest of your content. *shrug*

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

DIV height is determined by content length in non-absolute DIVs.

What this means is:

  • Only a DIV with "absolute" positioning can be forced to a specific height
  • DIVs with "absolute" positioning will always remain "locked" in place on the screen (no left/right float)
  • The only way to extend the height of a non-absolute (floating or sub) DIV is to extend the content within the DIV (or artificially extend the content if jrock's jquery concept works).

At least that's how I understand it :twisted: then again, I could be talkin' out my a**.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Welcome to the forums roezer :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Welcome to DW technology :)

Side note: Neg votes aren't just an attempt to break your spirit or make you feel bad... they're usually a result of a poorly constructed post or not following the rules :twisted: But don't worry, I'm sure you'll catch on fast to how things work around these parts.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Welcome to DW Sumaiya :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Well guys I didnt know we are not supposed to post the solutions to college questions for projects. Now Im in the know.

To expand on that... at least from my understanding...

It's not that we're not supposed to post solutions for people. It's that people would like to see some effort from the question asker prior to them expecting to have their work done for them :twisted:

Either way, howdy to ya.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

The error "Object reference not set to Instance of an object" tends to be a common one I've seen.

Basically it's telling you that you're trying to use an object (read: class) that hasn't been instantiated yet, or rather, that hasn't been instantiated in the way you think it has :twisted:

For example:

  • I create a class called LoginDetails which will contain my connection strings and such that I can call with various methods inside the class
  • In my program I use "string connString = LoginDetails.connStr" to try to call my connection string

The IDE understands that I'm calling connStr from class LoginDetails as they share the same namespace but...I haven't created an instance of LoginDetails and I cannot call directly from an uninstantiated class so I would get an error similar to what you got.

If I change the details a bit and do this instead:

  • I create a class called LoginDetails which will contain my connection strings and such that I can call with various methods inside the class
  • In my program I create an instance of LoginDetails by using "LoginDetails lDet = new LoginDetails()"
  • In my program I use "string connString = lDet.connStr" to try to call my connection string

In this way I eliminate the error.

There are many ways you can be getting the error you mentioned but all derive from an object or class not being properly instantiated prior to an attempt to call …