407 Posted Topics

Member Avatar for garystephen359

Try [this tutorial](http://w3schools.com/css/css_image_sprites.asp). W3Schools generally has some decent information for web development.

Member Avatar for nmaillet
0
51
Member Avatar for HelloMe

Well, you can either call `g.setColor()`, followed by `g.fillRect()` to redraw the background. Or you can simply use `g.clearRect()` to redraw the background colour.

Member Avatar for HelloMe
0
199
Member Avatar for Mahesh57

You need to explain this better. Are you trying to calculate the coordinates where a line intersects a circle? And what inputs are you given (slope, y-intersect, etc.), or are trying to extract a line from a raw image?

Member Avatar for nmaillet
0
246
Member Avatar for vinnitro

The main purpose for method overloading is doing essentially the same thing with different types. Each method must have a unique "signature". The signature is made up of the number, order and type of the parameters (the return value doesn't matter). In your sample program, you could call another one …

Member Avatar for vinnitro
0
178
Member Avatar for Chatthanz

> i wish he gonna help you I don't think he was asking a question... > This is a Simple one Line code for inserting current System date in to a text box: What is the point of this? Not that I don't understand the code, or its purpose, but …

Member Avatar for Mike Askew
0
151
Member Avatar for maurices5000

What do you mean exactly? You can use the == operator for most reference types (except when a class overloads the operator). To be sure you can use Object.ReferenceEquals() to compare two reference types.

Member Avatar for nmaillet
0
69
Member Avatar for iwishimgoodasu

Well, the line: Form2 form2 = new Form2(); is not calling the constructor you define above. It is calling the default constructor. You would have to change it to something like this: Form2 form2 = new Form2(class1); Also, in the Form2 constructor, you are assigning label1.Text to class1.Name, I think …

Member Avatar for nmaillet
0
257
Member Avatar for udusat

When you look at the exported CSV file in Notepad it's fine? So what program are you using to open the file, that gives the "replaced" characters? Are you using a C# program to parse it, or something like Excel?

Member Avatar for nmaillet
0
87
Member Avatar for thechampp

Couple of questions: * Are you using a fixed bit count? For instance, what would you do with the number 6? If we say it's 110, the reverse is 011 = 3. If we said it's the 4-bit number: 0110. Then the reverse is 0110 = 6, which is quite …

Member Avatar for nmaillet
0
81
Member Avatar for maurices5000

The return value doesn't have to be stored. It is up to the programmer to determine what to do with a return value, or whether to not use it all together. In this case, the programmer decided to use an delegate to print the result and didn't need it for …

Member Avatar for maurices5000
0
232
Member Avatar for ezekel

You would add something like either of the following statements: mybtn.Click += new EventHandler(mybtn_Click); //--or-- mybtn.Click += mybtn_Click;

Member Avatar for ezekel
0
113
Member Avatar for UsSy

First, I'm a Windows developer, not a mobile developer. So your mileage may vary. Use the `Storyboard.Target` attached property instead. Is the image you are referencing going to change? Or the index you are referencing within the list? You can reference lists in XAML (they must be exposed as a …

Member Avatar for nmaillet
0
176
Member Avatar for saybabs

This is dependent on many things, such as: What is the structure of your CSV file? What is the structure of your database? Is it all going into one table, or broken up amongst many table? Are there primary/foreign key constraints that you need to worry about? Maybe you should …

Member Avatar for Cameronsmith63
0
403
Member Avatar for xzero1

Well I can't vouch for HAP, I do agree with \__avd. In any case, by default the dot operator (.) matches any character except the line feed character (\n). You can change the default behaviour by doing something like this: Regex regex = new Regex(@"<p>\s(.)\s</p>", RegexOptions.SingleLine); Match m = regex.Match(htmlstring); …

Member Avatar for nmaillet
0
3K
Member Avatar for spowel4

Put it in a loop, read each line and split each line up with the string.Split() method or the Regex class. Post some code and ask some specific questions, otherwise you probably won't get much help here.

Member Avatar for nmaillet
0
98
Member Avatar for king03

Try taking out the AttachDbFilename part, so it would go from: con.ConnectionString ="DataSource=.\SQLEXPRESS; AttachDbFilename =C:\MyWorkers.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; to something like this: con.ConnectionString ="DataSource=.\SQLEXPRESS; Integrated Security=True;Connect Timeout=30;User Instance=True"; The database file is already attached to the instance of SQLEXPRESS. This may be causing some undesireable results. I'm not going to …

Member Avatar for peter_budo
0
4K
Member Avatar for bigstar

What tool are you using to interact with the database file? If you are using something like the entity framework, data gets cached in memory, but doesn't get written out to disk until you explicetly tell it to. Your app could still see it since it's in the cache. As …

Member Avatar for bigstar
0
333
Member Avatar for lxXTaCoXxl

It's getting late, so I don't have time to look too extensively tonight (I'll try and remember to look into it a bit tomorrow), but you may want to start in the Audio/Video section of the Windows API, found [here](http://msdn.microsoft.com/en-us/library/windows/desktop/ee663260(v=vs.85).aspx). In particular, look at the Core Audio APIs. I don't …

Member Avatar for nmaillet
0
134
Member Avatar for yup790

Add this to skatamatic's sample code: btn.Click += btn_Click; Then you'll need to create a new method to handle the `Click` event: private void btn_Click(object sender, EventArgs args) { MyDialogForm form = new MyDialogForm(); form.ShowDialog(this); } Now, there's a couple ways you can handle associating the dialog box with a …

Member Avatar for yup790
0
326
Member Avatar for Lizziebird

Could be a video card issue. Given that it's 10 years old, I would say it's time for a new laptop, but you could always try updating the video card drivers or formatting and reinstalling Windows (not Windows Vista/7, I assume?).

Member Avatar for JorgeM
0
131
Member Avatar for coolbeanbob

...I don't even know where to begin on that, but here we go: > The .NET framework is a platform on which applications developed using microsoft tools run on. Kind of, but MonoDevelop is used to run .NET code on several platforms. Unless you consider the language syntax and specification …

Member Avatar for nmaillet
0
100
Member Avatar for nmaillet

I'm trying to create some custom styles/control templates for WPF. The only control that seems to be giving be any issues (so far) is the ScrollViewer: <Style x:Key="{x:Type ScrollViewer}" TargetType="ScrollViewer"> <Setter Property="OverridesDefaultStyle" Value="True"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ScrollViewer"> <Border Background="#404040"> <Border BorderBrush="#808080" BorderThickness="1" Margin="4"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="Auto"/> …

0
156
Member Avatar for juliermills

This should probably be in the WebDev section, but without seeing any examples, I don't think anyone be able (or atleast willing) to try helping. The layout and rendering of webpages is handled quite differently depending on the browser. That's one of the many reasons I've been avoiding any major …

Member Avatar for nmaillet
0
77
Member Avatar for jrosh

You could use the WinAPI for this. Take a look at my previous post [here](http://www.daniweb.com/software-development/csharp/threads/378678/simulating-mouse-click-on-another-window#post1630378).

Member Avatar for taskman
0
208
Member Avatar for Ritesh_4

May I ask why? If you just need portability you could try compiling it with MonoDevelop (supports Linux, Mac OSX and Windows). Never really used it personally though...

Member Avatar for Ritesh_4
0
403
Member Avatar for 47pirates

Why don't you post the entire error message? And some code? You generally do it like this: cmb.removeAllItems(); cmb.addItem("item 1"); cmb.addItem("item 2"); ... If there's a change of having duplicate strings, create a class and override the `toString()` method, or use anonymous classes, like: cmb.removeAllItems(); cmb.addItem(new Object() { public String …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Mbot

The value you pass into `SetAngle` is: tan(angle) = (eY / pixelsPerMeter-bY / pixelsPerMeter)/(eX / pixelsPerMeter-bX / pixelsPerMeter) So, to get the angle (unless `SetAngle` for some reason accepted the tangent of the angle) you'd have to take the inverse tangent. Btw, that function can be reduced: (eY / pixelsPerMeter-bY …

Member Avatar for Mbot
0
151
Member Avatar for gali01
Member Avatar for lxXTaCoXxl

> There are good reasons for not using these functions. They're fine as a learning excercise for the original poster, but they're nowhere near production quality. QuadraticFomula crashes if a is zero, AbsoluteValue has an unneccesary multiplication (which the optimizer might replace) and involves unnecessary coercions if called with anything …

Member Avatar for skatamatic
0
159
Member Avatar for GilbertB

Give this a try: SqlDataAdapter dt = new SqlDataAdapter(); SqlCommand command = new SqlCommand("select * from DVD where Name = @name", c); command.Parameters.Add("@name", SqlDbType.VarChar, 100).Value = txtName.Text; dt.SelectCommand = command; Couple of things, first it should handle any encoding issues or data type mismatches since the parameter is defined (double …

Member Avatar for Mitja Bonca
0
989
Member Avatar for singularity~

Where is the server located in relation to your dev machine? On the same machine? Same LAN?

Member Avatar for singularity~
0
150
Member Avatar for Behseini

You'll need to install Visual Studio Tools for Office (VSTO), which may have been installed with Visual Studio. The right-click on **References** and click **Add References...**. Use the **.NET** tab and add **Microsoft.Office.Interop.Excel**, but make sure you are using the correct version (eg. 11.0.0.0 for Office 2003, 12.0.0.0 for 2007 …

Member Avatar for nmaillet
0
488
Member Avatar for 330xi

I don't know what you mean by DC... but are you working with 97-2003 documents or 2007-2010 documents? If you are using the older versions, you'll probably have to do some type of OLE automation, check [here](http://www.codeproject.com/Articles/34998/MS-Office-OLE-Automation-Using-C) to get started (depending on what libraries you are using for your GUI …

Member Avatar for 330xi
0
170
Member Avatar for suneye

Could you be a little less vague? I don't think this is quite as simple as you think it is. What's the device? Does it have drivers? Is there an API? What video/audio encoding does it use? What are you doing with the video? There is no one solution for …

Member Avatar for nmaillet
0
34
Member Avatar for cyberdaemon

> Quoted Text Here > I could be completely wrong here as not tried any of code only looked at it, > > But shouldn't ((CheckBox)row.FindControl("chkTypes")).Checked; > > Be (CheckBox)(row.FindControl("chkTypes")).Checked; > > So that is casts the object found as a CheckBox and not the row? No. The dot operator …

Member Avatar for nmaillet
0
112
Member Avatar for KushMishra

The `Conent` property only supports one visual element. If you want to add another, you'll need to use a `Panel`, such as a `Grid`, `Canvas`, `DockPanel` or just about anything else that dervies from the `Panel` class. Assuming you are using XAML (if not, you should) it would look something …

Member Avatar for KushMishra
1
2K
Member Avatar for RonKevin

3D modeling/animating I assume? Blender is an excellent open source tool. I wouldn't shell out money for the commercial software, unless your serious about it ($3,000+ for the popular ones). As for tutorials, Blender Guru and CG Cookie are good places to start... or just Google it...

Member Avatar for nmaillet
0
142
Member Avatar for zifina

Here's the developer page for the Google Maps API, [here](https://developers.google.com/maps/). As far as I know, you can only request static images using the HTTP classes provided by the .NET Framework. If you want an full interactive map, you'll likely need to use the JavaScript API. You could possibly host it …

Member Avatar for zifina
0
152
Member Avatar for Eagletalon

[QUOTE]"1>fatal error C1308: c:\...\Libs\Interop.Encore.dll: linking assemblies is not supported 1>LINK : fatal error LNK1257: code generation failed"[/QUOTE] Do you have CLR support enabled? Are you gearing your application towards .NET or native code?

Member Avatar for Eagletalon
0
3K
Member Avatar for phorce
Member Avatar for game4tress

Is it just one Window that is doing this, or all? If it is just one, you could try removing everything from the XAML file (keep a copy somewhere else of course) and re-add everything piece by piece to see when the error arises. I remember getting something similar, but …

Member Avatar for nmaillet
0
302
Member Avatar for NguyenThai

Some of the code you are using might be helpful, but using the [icode]Close[/icode] event is probably what you are looking for.

Member Avatar for adetolah
0
158
Member Avatar for zukazen

Please use CODE tags when posting. [icode]textBox1[/icode] would return a reference to the actual TextBox. [icode]textBox1.Text[/icode] would return the string displayed in the TextBox.

Member Avatar for zukazen
0
150
Member Avatar for zachattack05

If you look at the documentation (assuming UserControl is your base class): [QUOTE]The Load event occurs when the handle for the UserControl is created. In some circumstances, this can cause the Load event to occur more than one time.[/QUOTE] In WinForms, controls are essentially wrappers for lower level classes. For …

Member Avatar for zachattack05
0
125
Member Avatar for saneeha.nust

Like skatamatic said, the share name for the C:\ drive on the remote machine will not be C: (it is probably something like C$ or C). Check the remote machine to ensure it is sharing the C:\ drive, what its share name is, and the permissions (right-click -> properties -> …

Member Avatar for thines01
0
168
Member Avatar for basukinjal

> can anyone help me out in performing heapsort and the output should be displayedin the form of a heap i.e a tree.. using graphics in c Unless you are adding something significant to a thread, please don't post on an old thread. And you should start a new thread …

Member Avatar for steve.lorimer
1
11K
Member Avatar for smmcfarl

I copied your code exactly, and it seems to be working perfectly fine. I created a main method to access it, using a file containing your sample data: [CODE=C++]#include <iostream> #include <fstream> using namespace std; const int MAX_SIZE = 10; void readToArray(int intArray[], ifstream &inFile); void main () { ifstream …

Member Avatar for smmcfarl
0
92
Member Avatar for lxXTaCoXxl

When you remove the item from the ListBox: [code=c#]ListBox.Items.Remove(ListBox.SelectedItem);[/code] The ListBox.SelectedIndex gets changed to -1, since an item is no longer selected. You could store the SelectedIndex to a local variable before removing any items. You should be careful with this though, you are removing the element from the ListBox, …

Member Avatar for lxXTaCoXxl
0
161
Member Avatar for existinglady

For-loop? [code=C#] if(arraySeq.Length > 0) { StringBuilder builder = new StringBuilder(arraySeq.ToString()); for(int i = 0; i < arraySeq.Length; i++) builder.Append(", ").Append(arraySeq[i]); textBox3.Text = builder.ToString(); } else textBox3.Text = string.Empty; [/code]

Member Avatar for existinglady
0
2K
Member Avatar for batlou

[icode]public[/icode] in Customer.cs should be lower-case. Not sure if this is your problem, but when you get an error in just about any IDE it gives you a filename, and a line number. Why wouldn't you post this as well?

Member Avatar for Acasia
0
445

The End.