Software Development Network Logo
  • Windows Vista
  • Smart Devicet
  • Visual C++
  • Microsoft ISV
  • Game Technologies
  • Audio and Video
  • SQL Server
  • Visual C#
  • Visual Studio
  • Visual Basic
  • IE Development
  • Windows Forms
  • Visual FoxPro
  • SharePoint Products
  • .NET Development

Software Development Network >> kageg's Q&A profile

kageg

Member List

Nishant Sivakumar
aCaen
Dcoder85
etones
mfroster
Leonard Lee
robinjam
Bill Cumming
vijayalakshmi
jpsml
Garry W
Jassim Rahma
maddman
Joe Hanna
Aurels
Ultrawhack
RostaB
Steffanp
ishotjesus
BhuttCrackSpackle
Only Title

kageg's Q&A profile

  • .NET Development Is it possible to enumerate modifiers?

    Hi All, I would like to place in a combo both the vbModifiers and c# like default,private,internal,public etc.... Can these be extracted from somewhere or shall i manually add them also forgot how you handle keywords or reserved words in c# the following does not seem to work public enum cSharpModifiers { @default, @private, @protected, @internal, @public } thanks in advance You can extract the type attributes of a type using the TypeAttributes property of the Type class like so: object obj = ...; TypeAttributes attr = obj.GetType().TypeAttributes; You can then isolate the visibility flags using TypeAttributes.VisibilityMask . The problem is that the enumeration maps mul ...Show All

  • Microsoft ISV Community Center Forums Reactivate embedded chart and make it the ActiveChart in excel

    Hi all, I can't make this work for embedded charts in excel. It only works for charts that are on an own sheet. Can someone tell me what to do to make it work for embedded charts as well. Dim Ch As Chart Set Ch = ActiveChart ''' Code that reads in input data... Ch.Activate With ActiveChart ''' Fill chart with input data .ChartType = xlXYScatterSmoothNoMarkers .SetSourceData Source:=myDataRange, PlotBy:=xlColumns .HasTitle = False .Axes(xlCategory, xlPrimary).HasTitle = True .Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = _ "Displacement [mm]" .Axes(xlValue, xlPrimary).HasTitle = True .Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Force " End W ...Show All

  • Visual Basic Supported Database

    Hi! I just want to know what databases does Visual bAsic .net support.. Can anyone give me a list. Tnx! well it supports almost any really as long as the connectionstring and or "drivers" are correct. It supports OleDb (MS Access, or any other databases that supports OleDb connections), SQL Server using the System.Data.SqlClient (or connecting it via OleDb approach) and a good few others as well. Not sure where you can obtain a list from but these 2 are the most common ones ...Show All

  • Windows Forms force datagridview column valuetype on cell

    Hello I have a datagridview that is binded to a DataTable. The table has a column of value string, and I set the ValueType of the column of the grid to double, for example. When I get a value of the cell, the value is string, but the valueType is double... Can I get that value as a Double Here's the code: protected override void OnLoad( EventArgs e) { base .OnLoad(e); DataTable t = new DataTable (); t.Columns.Add( "col1" , typeof ( string )); t.Columns.Add( "col2" , typeof ( string )); t.Columns.Add( "col3" , typeof ( DateTime )); dataGridView1.DataSource = t; dataGridView1.Columns[0].ValueType = typeof ( double ); t.Rows.Add( new object [] { "0" , ...Show All

  • Visual FoxPro table question

    Hi, I don't know how to check if a fox table has a list of atributes or fields in a specfied order. For example, I have a table employee and I want to know if it has the fields id_employee, employee_name and employee_hiredate in this order. This verification will be included in a fox program. Does someone know how to solve this Thanks, A table's field order should be irrelevant in your application (if it's you might be in trounble later). Anyway you can check that with afields(), field(), copy structure etc. ie: use myTable for ix=1 to fcount() m.ix,field(m.ix) endfor ...Show All

  • Visual Studio 2008 (Pre-release) Security Validation with Operation Attributes

    Say I want to place attributes on the interface for a services operation or on the concrete implementation of the services operation. [OperationContract()] [MyAttribute("This is the sample attribute on an operation")] void MyOperation(); Now, during the authorization process, I want to be able to get the attribute off that operation for the current operation. I can't find the OperationDescription nor can I find how to get the type that will be instantiated and the method it would call so I can find the attributes that are applied to that method. Should I be using an IOperationBehavior instead and where should I put the info I'll need to extract so that the ServiceAuthorizationManager can get access to it to do a retrieva ...Show All

  • Visual C++ Code generation bug when throwing exceptions in C++/CLI with optimizations.

    While writing a C++/CLI project using exceptions I've encountered a bug( ) related to stack unwinding and deleting local variables in unreached parts of the functions on the stack. The following code demonstrates the bug. Please compile with Visual C++ 2005 with /CLR and /O2 flags set. In debug mode, the stack unwinds and the runtime does nothing with the local variable str . In release mode, the runtime attempts to destruct str , even though it has not been used. A workaround which in some cases appears to work is to declare str in the scope of the function. In our case this would be very inconvenient. Has anyone experienced something similar We could not find anything on MSDN or on Connect. Output in debug mode: Main test functi ...Show All

  • .NET Development XML File with No Namespace information

    Does anyone know if it is possbile to deserialize an xml file that has no namespace information in it as I am getting an error (CTfile xmlns=''> was not expected) It will deserialize if I add an entry for xmlns="some valid url" any ideas I am pretty sure that XML sample that you showed, that does not declare any namespaces at all, will not deserialize if you have those XmlType and XmlRoot serialization attributes demanding a namespace (e.g. Namespace= "http:/www.dfes.gov.uk/schemas/cbds"). If you remove that Namespace from the .NET code I can't understand that you get the same error, at least not on the CTFile element. If you get a similar error on a descendant element then you ...Show All

  • Visual C++ When performing clean project/solution I want to remove a file that was copied during a post-build step

    Hello! I'm using MSVC++ 8.0 professional edition and in one of my projects a file is copied during a post-build step. Now I want this file to be automatically deleted when a clean solution/project is performed. How do I do that / mindcooler ...Show All

  • .NET Development SERVER APPLICATION UNAVAILABLE

    HELLO ALL I have written a program like below: public void Button1_Click( object sender, System.EventArgs e) { SqlConnection conn; SqlCommand comm; conn= new SqlConnection("server=PC13059;database=TRIM_SHOP_INFO;uid=sa"); conn.Open(); string str="saikat1"; comm= new SqlCommand(str,conn); comm.CommandType=CommandType.StoredProcedure; DataGrid1.DataSource =comm.ExecuteReader(); DataGrid1.DataBind(); conn.Close(); } when in the place "saikat1" i am giving another StoredProcedure "saikat" it is giving error "SERVER APPLICATION UNAVAILABLE" whereas both the StoredProcedure is executing locally. The two stored procedure is like belo ...Show All

  • Windows Forms DataBinding Using MySQL native connector, problem with server explorer

    Hello everyone, I have downloaded the native MySQL connector from the following link: http://dev.mysql.com/downloads/connector/net/1.0.html My goal is to create typed dataset using drag and drop from the server explorer, and eventually bind the datasets to various controls and implementing insert, update and delete. The problem I am facing is I cant get the database listed in the server explorer. Can anybody suggest me anything You can not create a typed dataset that uses the mysql .net connector. You should be able to if you use an odbc connection. You will need to install the mysql odbc drivers. ...Show All

  • Windows Search Technologies WDS and Outlook archives on networked server

    WDS 3.01, XP Pro SP2, Outlook 2003 I, like many people, use Outlook in and out of the office on a laptop. While at work I will routinely archive my Outlook folders to a networked server. I need to have these archives indexed and searchable. To get them indexed I opened the archives and WDS successfully indexed all of the archived folders. However, when I open Outlook when not in the office WDS will remove the archives from the index, because they are no longer available. Then when I get back into the office WDS re-indexes the archives. This is problematic for several reasons. First it is a considerable drain on resources, both for the laptop and for the network. Secondly, once these archives are indexed I do not need them reindexe ...Show All

  • Windows Forms Could not find 'WindowsApplication1.Program'

    Hi... I had created a windows application using c#. Initially the solution file name as well as the namespace was WindowsApplication1,which is the default. But then i renamed the solution as WinService. The namespace is also changed as WinService. But when i try to run the project, i am getting an error as : Could not find 'WindowsApplication1.Program' specified for Main method WinService. It is also not showing any line numbers. I searched in all my doucments and program.cs file, but i couldnt locate WindowsApplication1, as i had changed everything to WinService. what is wrong Please help Hi.. I found out the solution. I changed the project properties to the WinService.Program. The project ...Show All

  • .NET Development using SmtpClient.SendAsync Method in class library - how???

    I put together a Class Library called “Email” to send out emails from my website. Now that it is all working I wanted to try and see if I could send out emails asynchronously. I found that there is this great method (SmtpClient.SendAsync Method) to send out emails asynchronously. When I add everything to my “SendEmail” class and test it, I received the following error message: Failure sending email. And here is way: {"Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event."} Do I have to roll my own using BeginInvoke and ...Show All

  • SQL Server How to print labels like label 1 of 1 and label 2 of 3....

    I have a report that will be a label and I need to print N number of labels depending on a certain number returned from the query. Let's say that number returned is 3. So, on my first label I want to print 1 of 1 and on the second label, 2 of 3 and the third, 3 of 3. All other information on the label will be the same for all 3 labels. All information used is from the query. One of the fields accessed through the query holds the number I need to use to do this. Is there a way to do that through the report designer using vs.net Is there a setting for this or is it a SQL thing I need to put in the query some how. Or am I completely off track Any help would be greatly apprciated. thanks It's very h ...Show All

©2008 Software Development Network