Search found 75 matches

by complete
Sat May 05, 2012 7:56 pm
Forum: General Discussion Board
Topic: I am trying to go from 32 bit Vista to 64 bit Windows 7.
Replies: 3
Views: 1216

I am trying to go from 32 bit Vista to 64 bit Windows 7.

I am trying to go from 32 bit Vista to 64 bit Windows 7.

The 32 bit Vista was installed by mistake. My system can handle a 64 bit OS. Now I have finally found the time to upgrade. But the 64 bit intallation DVD can't be read from my OS. Any Advice?

Do I need to boot from that DVD drive? Will that ...
by complete
Thu Oct 20, 2011 3:34 pm
Forum: General Broadband Forum
Topic: defining a BorderBrush in my Silverlight C# file
Replies: 0
Views: 2863

defining a BorderBrush in my Silverlight C# file

I am having some basic compile issues defining a BorderBrush in my Silverlight C# file.

http://msdn.microsoft.com/en-us/library/system.windows.controls.border.borderbrush.aspx
states that you define a borderbrush like this:

myBorder1 = new Border();
myBorder1.BorderBrush = Brushes.SlateBlue ...
by complete
Thu Sep 22, 2011 2:47 am
Forum: Software Forum
Topic: How do I get a dattime format in C# that will look like this:
Replies: 1
Views: 14365

How do I get a dattime format in C# that will look like this:

How do I get a dattime format in C# that will look like this:

2011-09-01 00:00:00:000
This works
DateTime saveNow = DateTime.Now;

string test = String.Format("{0:yyyy-MM-01 00:00:00:000}", saveNow);

Now I want to know this. How would I subtract one month from the current month?

It T-SQL it ...
by complete
Thu Sep 15, 2011 1:52 pm
Forum: Software Forum
Topic: I have a question about Silverlight on the Client Side.
Replies: 1
Views: 13413

I have a question about Silverlight on the Client Side.

I have a question about Silverlight on the Client Side.

Silverlight is designed differently where it is not possible for a silverlight program running inside a browser can have access to a user's hard drive.

This is a good thing and is important for security.

But there are times when it might be ...
by complete
Sun Sep 11, 2011 11:07 pm
Forum: Software Forum
Topic: TextBlock wrapping of text in Silverlight XAML file.
Replies: 0
Views: 12197

TextBlock wrapping of text in Silverlight XAML file.

TextBlock wrapping of text in Silverlight XAML file.

I have a wierd and annoying problem. I have a textblock that is inside a stackpanel that is Oriented horizontal. It would be nice if I could have the textblock appear in multiple lines nicely wrapped. How could I do that?
by complete
Wed Jul 20, 2011 3:45 pm
Forum: Software Forum
Topic: DateTime Data Problems in Silverlight and C#
Replies: 1
Views: 14649

Here is the fix:



<vc:Chart.AxesX>
<vc:Axis ValueFormatString="MMM - yyyy" Padding="4" LineThickness="0" IntervalType="Months" Interval="1"/>

</vc:Chart.AxesX>
by complete
Tue Jul 19, 2011 11:04 pm
Forum: Software Forum
Topic: DateTime Data Problems in Silverlight and C#
Replies: 1
Views: 14649

DateTime Data Problems in Silverlight and C#

DateTime Data Problems in Silverlight and C#

Hello Forum.

I am using VISI Fire in Silverlight and C# to produce some data charts. One style of chart allows stacked data to be displayed in colums the xaml code I am using looks like this
http://i67.photobucket.com/albums/h292/Athono/xaml.png

The ...
by complete
Tue Jul 12, 2011 6:04 pm
Forum: Software Forum
Topic: What is a tinyint in C#?
Replies: 1
Views: 13735

What is a tinyint in C#?

What is a tinyint in C#?
SQL has its own datatypes. But a small int in SQL translates to an Int16 in C#. But there is no such thing as Int8 in C#. So what is a tiny int in C#?
by complete
Mon Jul 11, 2011 10:01 pm
Forum: Software Forum
Topic: I have a regular expression (regex) question...
Replies: 2
Views: 15274

I have a regular expression (regex) question...

I have a regular expression (regex) question...

How would I use regular expressions to remove the contents in parenthesis in a string in C# like this:

"SOMETHING (#2)"

The part of the string I want to remove always appears within paranthesis and they are always # followed by some number. The rest ...
by complete
Mon Jul 11, 2011 3:13 pm
Forum: Software Forum
Topic: changing a character in a C# string
Replies: 0
Views: 13020

changing a character in a C# string

suppose I have created a string in C# and I want to change the last character to a blank.

private static string sOldMassiveOutput;

public static string oldmassiveoutput
{
get { return sOldMassiveOutput.Trim(); }
set { sOldMassiveOutput = value; }
}
oldmassiveoutput[oldmassiveoutput.Length ...
by complete
Sun Apr 10, 2011 10:29 pm
Forum: Software Forum
Topic: How is IXRTextBlockPtr used?
Replies: 0
Views: 11391

How is IXRTextBlockPtr used?

How is IXRTextBlockPtr used?

I have a XAML file that is made by Expression Blend. But the Silverlight project that corresponds to it has to be in C++ instead of C# (it has something to do with being part of an embedded system).

The automatically gernerated C++ code referrs to the TextBlock code in ...
by complete
Wed Feb 16, 2011 2:15 am
Forum: Software Forum
Topic: How do I step through the source code of a DLL that is loaded on the fly?
Replies: 0
Views: 12996

How do I step through the source code of a DLL that is loaded on the fly?

How do I step through the source code of a DLL that is loaded on the fly?

I have a SLN that was automatically created by loading a BIN file into Visual Studio 2008. It uses a command line interface feature and on this command line, I can give a command to load a DLL. The DLL I load has been built ...
by complete
Sat Feb 05, 2011 11:51 am
Forum: Software Forum
Topic: Php
Replies: 1
Views: 3185

Php

I am just starting out with PHP. I have resorted to doing some custom PHP programming because the plug-INs for a CMS I am using need a little customization.

The question I have is very simple and I am sure PHP programmers can answer this instantly. I have successfully declared a global PHP variable ...
by complete
Fri Dec 03, 2010 2:09 am
Forum: Software Forum
Topic: How is PropertyChangedEventHandler used?
Replies: 0
Views: 13243

How is PropertyChangedEventHandler used?

How is PropertyChangedEventHandler used?
Can you tell me what this bit of code in a class' Initalize method does?
There is a class in the project we are working on that has a private Initialize method. And there is a bit of code in this method that I want to discuss.
But first, let me describe the ...
by complete
Tue Oct 12, 2010 7:38 pm
Forum: Software Forum
Topic: How do you convert an integer to two bytes in C#?
Replies: 0
Views: 13098

How do you convert an integer to two bytes in C#?

How do you convert an integer to two bytes in C#?

I have googled around but no answer really works. At least none I found.
by complete
Wed Sep 29, 2010 1:44 am
Forum: Software Forum
Topic: What is a model.cs file?
Replies: 1
Views: 18237

What is a model.cs file?

What is a model.cs file?

http://i67.photobucket.com/albums/h292/Athono/microsoft/model.png

This appears in a project I am sharing with other dev's. What is a model.cs file?


I have heard that it looks like the MVVM design pattern. Will MVVM design pattern produce this sort of configuration in ...
by complete
Tue Jun 01, 2010 3:53 am
Forum: Software Forum
Topic: How to Open a Directory Sorted by Date?
Replies: 1
Views: 21014

How to Open a Directory Sorted by Date?

How to Open a Directory Sorted by Date?

In C#, I can open a directory for reading each file. How to I make sure that the directory I investigate in my C# code is opened such that it is sorted by last modified date?
by complete
Tue Jun 01, 2010 3:52 am
Forum: Software Forum
Topic: How do you add an Icon to a WPF App?
Replies: 0
Views: 10205

How do you add an Icon to a WPF App?

How do you add an Icon to a WPF App?

I have an icon made already. How do I add it to the app so that it will represent the application on the desktop, in the minimize system bar, etc..
by complete
Tue Jun 01, 2010 3:51 am
Forum: Software Forum
Topic: How do you make one line bold in a TreeView Class in WPF/C#?
Replies: 0
Views: 4562

How do you make one line bold in a TreeView Class in WPF/C#?

How do you make one line bold in a TreeView Class in WPF/C#?

I mean, how do you make just one line in a Tree View bold at runtime?
by complete
Mon May 31, 2010 5:00 pm
Forum: General Discussion Board
Topic: What is the name of the Windows System Menu button?
Replies: 4
Views: 755

What is the name of the Windows System Menu button?

What is the name of the Windows System Menu button?

I am talling about the round glass-orb looking object (on a Windows 7 operating system) that appears in the lower left of the screen -- usually -- that you can click on to see the menu selection of programs on your compter.
by complete
Wed May 26, 2010 3:12 pm
Forum: Software Forum
Topic: How do I work with WIndows Forms in WPF?
Replies: 0
Views: 3301

How do I work with WIndows Forms in WPF?

How do I work with WIndows Forms in WPF?

In my WPF program I created a Windows Form class.
In this Form, I placed an OK button and I went into the properties of the button and set the DialogResult to OK.
Now, I am calling this Dialog (Window Form) from the MainWindow.xaml.cs:

dres = form ...
by complete
Thu May 20, 2010 10:05 pm
Forum: Software Forum
Topic: How do you draw a line on a canvas in WPF that is 1 pixel thick?
Replies: 0
Views: 4235

How do you draw a line on a canvas in WPF that is 1 pixel thick?

How do you draw a line on a canvas in WPF that is 1 pixel thick?

This is the method I am using for drawing a line on a canvas in WPF that uses the line class set to 1 pixel thick but it actually draws a line that is two pixels thick:


Line myLine = new Line();

myLine.Stroke = System.Windows ...
by complete
Mon May 03, 2010 7:18 pm
Forum: Software Forum
Topic: RSS Data
Replies: 1
Views: 1151

RSS Data

RSS data is nothing more than xml data, right? But is it some sort of special format that a webmaster have to follow inorder to be read from an RSS Reader? How do I make the XML data of my web site formatted for RSS readers?
by complete
Wed Apr 28, 2010 7:39 pm
Forum: Software Forum
Topic: How do I get around Inconsistant accessibilty error in C # ?
Replies: 0
Views: 3042

How do I get around Inconsistant accessibilty error in C # ?

How do I get around Inconsistant accessibilty error in C # ?

I need to pass a pointer to a node in a linked list to a method.
When I do, I get a "Compiler Error CS0051"

Example
The following sample generates CS0051:

Copy Code
// CS0051.cs
public class A
{
// Try making B public since F is ...
by complete
Fri Apr 23, 2010 10:02 pm
Forum: Software Forum
Topic: Declaring an array of linked list in C#
Replies: 0
Views: 3374

Declaring an array of linked list in C#

Declaring an array of linked list in C#

How do I declare an array of some class in C#? I wonder if it is even allowed or possible.

I got the compile error message "Array size cannot be specified in a variable declaration (try initializing with a 'new' expression)" when I tried to declare an array ...
by complete
Mon Apr 19, 2010 1:58 am
Forum: Software Forum
Topic: Relative Resizing of Forms in C#
Replies: 0
Views: 3540

Relative Resizing of Forms in C#

What is the magic that makes components cling to the edges of a form?

I had thought that one must use the resize event of the form and them force each element in the form to resize.

But then I saw some sample code which, even when I am editing the form, the elements seem to adhere to a percentage ...
by complete
Sun Apr 18, 2010 7:10 am
Forum: Software Forum
Topic: How to Create Forms Class in C#?
Replies: 0
Views: 3772

How to Create Forms Class in C#?

Now that C++ development has become second nature to me, do I have to start from scratch with C#? What used to be called a "dialog" or a "window" seems to now be called a "form". Is this right?

Since the beginning of Visual Studio, there has been easy way to describe the shape of a Dialog (now ...
by complete
Tue Dec 29, 2009 8:08 pm
Forum: Networks and Wireless Routers
Topic: What do you do in IIS if you get an error when trying to start your default web site?
Replies: 0
Views: 936

What do you do in IIS if you get an error when trying to start your default web site?

What do you do in IIS if you get an error when trying to start your default web site and it says that it cannot be started because another web site may be using the same port?

For some reason I have IIS 6 and IIS 7 on the same machine. I seem to be unable to start IIS 7 but it seems I can in IIS 6 ...
by complete
Sun Dec 20, 2009 10:09 pm
Forum: Software Forum
Topic: What is The Web Browser Plugin Used to View Message Traffic? What is the name of th
Replies: 0
Views: 2257

What is The Web Browser Plugin Used to View Message Traffic? What is the name of th

What is the name of the IE plug in that someone can download (I think from Microsoft) that lets a developer (well, anyone who gets the plug-in, actually) to view the message traffic that goes on behind the scenes from the browser to the server? I saw this one in action but I forget its name. And I ...
by complete
Mon Dec 07, 2009 11:27 pm
Forum: Software Forum
Topic: Windows Powershell SDK and System.Management.Automation.PSObject
Replies: 0
Views: 5933

Windows Powershell SDK and System.Management.Automation.PSObject

I have a build error in a c sharp program that I am compiling in Visual Studio 2008 on a Windows Server (2008, I guess) SP 2 64-BIT OS.
It says that 'System.Management.Automation.PSObject' is defined in an assembly that is not referenced.
I did some searching in MSDN and I found that this seems to ...
by complete
Wed Jan 21, 2009 10:28 pm
Forum: Software Forum
Topic: Platform Builder and C#
Replies: 1
Views: 4037

Platform Builder and C#

Platform Builder is a tool for building a Windows CE Operating system on your computer and then loading it on a Windows CE device.

All this is done through Platform Builder. And I do it all through the Microsoft Visual Stuido Development Environment (IDE).

I want to automate the process of using ...
by complete
Thu Jan 15, 2009 2:12 pm
Forum: Software Forum
Topic: What is the equivalant of a 'friend' keyword in C Sharp?
Replies: 0
Views: 3315

What is the equivalant of a 'friend' keyword in C Sharp?

What is the equivalant of a 'friend' keyword in C Sharp?

How do I use the 'internal' keyword?

I have read that 'internal' keyword is a replacement for 'friend' in C#.

I am using a dll in my C# project that I have the source code for and yet I do not want to modify the existing code. I have ...
by complete
Tue Jan 13, 2009 4:19 pm
Forum: Software Forum
Topic: using members of a C Sharp class
Replies: 1
Views: 2727

What is the point of using set and get in C Sharp?

It seems variables are used differently in this language than in C++.

For some reason, you have to have a static variable defined like this:

public static uint Somenum
{
set { m_somenum = value; }
get { return m_somenum; }
}

and prior to this ...
by complete
Mon Jan 12, 2009 9:51 pm
Forum: Software Forum
Topic: using members of a C Sharp class
Replies: 1
Views: 2727

using members of a C Sharp class

In C Sharp, just like in C++ you can have classes with "methods" and "members" but the syntax is different.

Does anyone know how to declare a varable in a C# class so that it is accessable to other classes and code?

After I have declared a class, I have accessed the methods of the class as it ...
by complete
Fri Jan 09, 2009 4:30 am
Forum: Software Forum
Topic: unisgned integers and global cases in C#
Replies: 0
Views: 2810

unisgned integers and global cases in C#

I am used to C++ more than C#.

In C++ you have header files and you have the ability to declare states. For example, you can declare a series of unsigned integers to be for a variety of different states to later use in switch statements or if-then statements.

Since C# does not have the same sort ...
by complete
Tue Dec 30, 2008 6:40 pm
Forum: Software Forum
Topic: _debug_
Replies: 0
Views: 2056

_debug_

I have seen this sort of thing in old MFC procgrams in C++ and I wonder what is the comparable way to do this in C#.

If I want a C# program to run differently in debug mode than in release mode, how do I do it? Don't I use some sort of #ifdef _DEBUG_ command?
by complete
Fri Dec 12, 2008 8:17 am
Forum: Software Forum
Topic: XML Formatted Email
Replies: 0
Views: 4926

XML Formatted Email

XML can do a very cool trick.

If you include the name of an XSL file in the XML file, you can produce what looks just like a formatted HTML file when you load the XML file into a browser.

The question I have is this. How would you actually produce an actual HTML file that can be sent as a formated ...
by complete
Mon Dec 01, 2008 6:13 pm
Forum: Software Forum
Topic: C# dll
Replies: 2
Views: 3955

IIRC, You can import a dll by right clicking on a project and choosing add resource (I think -- been a while since I used Visual Studio), then clicking browse and selecting the dll in the file browser. You can then import and use the classes contained in the dll normally.


I have done a few ...
by complete
Sun Nov 30, 2008 3:08 pm
Forum: Software Forum
Topic: C# dll
Replies: 2
Views: 3955

C# dll

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI that uses the DLL'S API?
by complete
Tue Aug 12, 2008 6:35 am
Forum: Software Forum
Topic: Hashtables
Replies: 1
Views: 2410

Hashtables

Has anyone written code for a hash table?

The Hash table classes are not part of the standard STL. This causes some difficulty that I think can best be overcome by getting advice from someone who has been down this path.

The hash table library can be gotten from one of three sources:

http://gcc ...