Software Development Network Logo
  • Visual Studio
  • Architecture
  • Visual FoxPro
  • Visual J#
  • SQL Server
  • Game Technologies
  • Visual C++
  • VS Express Editions
  • VS Team System
  • Visual C#
  • .NET Development
  • Windows Forms
  • Smart Device
  • Windows Live
  • Visual Basic

Software Development Network >> Greg Brewer's Q&A profile

Greg Brewer

Member List

hfrmobile
seve7
Robert C
SergioFlorezM
Jerry Xin
John Bristowe
esandall
Amadelle
Mazay
Yogita Manghnani
er824
kbrouill
hebert
FassaBortolo
CObject
LSC142003
Khanh Le
JongAm Park
Robert Schlabbach
Leng UNG
Only Title

Greg Brewer's Q&A profile

  • .NET Development internalprotected access modifier? (not internal protected!)

    Hi forum! I'm currently developing a library type project with a bunch of internal types responsible for internal logic. My problem: i can't use these types in protected methods of  public library types! The compiler quits with an "inconsistent access modifier" error. So my question is, are there any plans to add an "internalprotected" access modifier (i.e. protected -- but only internally) to future c# specs The only solution i can come up with is to make the mentioned protected members internal accessible, but this would break my class design. Example: public class PublicType {     protected void ProcessData(Inter ...Show All

  • Windows Forms Look and feel

    Hi, Where can I get library for Look and Feel in my C# application I need freeware library. Thank's Alexei Hi, I need the freeware versions. In windowsforms.net I have libraries but they are shareware and for full version I need to pay. So If somebody can tell me where to get this library Thank's Alexei ...Show All

  • Windows Forms read data from a datagrid

    I'm implementing a master-detaildatagrid. the datagrid show the details, so these details change when i go to an other record. I have a combobox on which data from a database is bound. In the datagrid, there's a colum that show the history of previous selected items in the combobox. I want my combobox to select the item that was last choosen. In short:I want the combobox to show the item that is in the datagrid first row. Now, I don't know how to select a celltext from a datagrid. it doesn't work with Rows[0]["columnname"]. Does anyone have suggestions Thanks! hi, ...Show All

  • Visual C# Trouble understanding threading

    I've got an application written in C# 2.0, and am trying to speed up my reporting a bit. On the main form, I have a button that will create a report that can take quite some time. While this report is being created, my main form goes unresponsive. The button doesn't even pop back up while I'm waiting on it. I figured I'd spin off a thread and have it create the report. It worked, but the second the form is loaded, it goes away. How can I get this form to load separate from my main thread, and then somehow come back so it doesn't go away You're opening the 2nd form from your working thread I think you shouldn ...Show All

  • SQL Server Strange Results in executing views in SSME

    I am getting some interesting (read 'undesirable') results in SSME. I am attaching two scripts, one that creates a TestTable and the second creates a TestView, based on TestTable. When TestTable is created, enter the following rows (format is TestID, Sequence): 1 - 99 2 - 98 3 - 97 4 - 1 5 - 2 6 - 3 When the data is entered, highlight TestTable from the list of tables, right-click and select Open Table. The result should be that all entries are shown, in the TestID order. The actual result (at least for me) is that the order is by Sequence. If I look at the SQL, it is a simple select statement (Select * from TestTa ...Show All

  • Visual Studio Express Editions TableAdapter.Update does not save data

    How can I save data entered in a dataset via the UI I tried the code suggested in the "VB Guided Tour", Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Me .AddressesBindingSource.EndEdit() Me .AddressesTableAdapter.Update( Me .SQLdbDataSet.Addresses) End Sub but all changes are lost when I restart the application. Thanks. "Found the solution in the free downloadable book 'Build a program now' at the 'Registration Benifit Program' p154 (text in blue)." Where can I download this boo ...Show All

  • Windows Forms Defining window shape

    I have problem with defining shape of a window. I know how to do it in WinAPI but have no idea how to solve this problem in windows forms.  thanks for the answer, I`ve even managed to find a solution in visual studio 2003 form designer :) ...Show All

  • Windows Forms Table existence in a database

    How may I find out if a specific table exist in my Microsoft Access database, by ADO .NET  For example I have an Access database named "MyDataBase". I want to figure out is there a table named "MyTable" in this database Regards! M.Sadegh Samiei Check out the GetOleDbSchemaTable method of OleDbConnection.  To get all the tables (inclu ...Show All

  • SQL Server Transferring table data from an ODBC database to a SQL Express database

    I am a SQL newbie.  I have two connected databases that I work with in Visual Web Developer Express or Visual Basic Express.  One is an ODBC master database that contains much table data and the other is my new destination sql express database.  Where I was once very comfortable using the query grid in Access to accomplish almost anything with tables, it seems like now it is much more difficult.  Can someone offer me some simplified advice on how to easily transfer the table data in the ODBC database tables to the sql express database.  I have read sections on BCP and Bulk Insert but so far I have ...Show All

  • Software Development for Windows Vista Lab 1 Excercise 2 Arguement Exception

    I am getting a argument exception when running lab01 excercise 2. The exception occurs on CreateWorkflow(...) in the Form1.cs file. The exception text and stack trace are provided below. How do I fix this I am using WF Beta 2 on Windows Server 2003 SP1. ------------------------ System.ArgumentException {"Invalid workflow parameter value.\r\nParameter name: FirstName"} InnerException {"Object of type 'System.String' cannot be converted to type 'System.Int32'."} Form1.cs -------- ... Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("FirstName", txtFirstName ...Show All

  • SQL Server sql server connectivity problem

    i am facing following problem when running my web application SQL Server does not exist or access denied. i have sql server 2000 installed on different mechine named xenon and invocking connection from different mechine with following connection string in vb.net 2003 1. Odbc.OdbcConnection("Driver={SQL Server};Server=xenon;" & _ "Uid=sa;Pwd=1234;Database=Northwind") 2.With sqlconnection.connectionstring= "workstation id=TOSHIBA;packet size=4096;integrated security=SSPI;data source=XENO" & _ '' "N;persist security info=True;initial catalog=Northwind" ...Show All

  • Visual C# Accessing properties dynamically

    Hi folks Newbie question - please be kind! I want to access properties dynamically. I have the property name as a string "MyProp", and I want to  get the value myClass.<MyProp> . My background is in dynamic languages where you would simply eval() a string to do this kind of thing. How is it done in C# I don't have a lot of time to spend on this, so I'd appreciate any pointers... You need to use reflection to do that. Let's say you have an instance of your class, myClass: Type type = myClass.GetType(); PropertyInfo info = type.GetProperty("MyProp"); object value = info.GetValue(myClass, ...Show All

  • .NET Development The configuration section cannot contain a CDATA or text element.

    With this config section: < EditorSettings > < name > Verdana </ name > < size > 24 </ size > < style > 2 </ style > </ EditorSettings >  I receive this error "The configuration section cannot contain a CDATA or text element." Using the new ConfigurationManager, ConfigSection and ConfigElement classes, are you unable to have that type of config section now. I am able to make it work like this: < EditorSettings name=" Verdana" size=" 24" style=" 2" / > Also, can you have multiple config sections in the same external config file Any ideas ...Show All

  • Visual Studio 2008 (Pre-release) Animate element height

    Is it possible to animate the height of an element forth and back using XAML only The height should go to 0 in one animation and back to the initial value in another animation. The problem is I don't know the initial height of the element at compile time. ScaleTransform works partially, because I don't want the content of the element to be scaled. The only solution I could find is to do it in code-behind. Here's a simple code sample that animates the width and height of a rectangle element on mouseover and returns to it's previous size on mouseleave. HTH Andrew <Page xmlns=" http://schemas.microsoft.com/w ...Show All

  • Visual Studio Team System Organizing changes into changesets prior to check-in

    Hi all, I've been evaluating Team Foundation's source control capabilities, and have been generally pleased. However, there's one "nice-to-have" feature that doesn't seem to be present, and I want to make sure I'm not missing something. Often, a member of our team will be working on several bugs or features within the same workspace, and will want to manage these changes separately, for example: file1cs, file2.cs - Are being edited to fix Bug 101. file3.cs - Is being edited to fix Bug 102. file4.cs, file5.cs - Are being added to implement Feature Foo. I would like the ability to manage each of these "group ...Show All

©2008 Software Development Network