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

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

Basiclife

Member List

Pete R
Jive Dadson
fDogGT
dops141441
Anatolik
Jordan Carroll
Chintan Jhaveri
ajay_s
CBuilder
Jose Diaz
00002210Dave
Ritesh Tijoriwala
Markish
Scott Allen - OdeToCode.com
Mahender
clueless in chicago
Ashish Dwivedi
telepet9
Phatriff
JohnSLG
Only Title

Basiclife's Q&A profile

  • Visual Studio Express Editions Problem with VB source code/original

    I was baffled by some code that didn't work when it looked correct. I inserted a breakpoint, and it was never reached. I noticed the breakpoint icon change into a "yellow ring" with a message that my breakpoint can never be reached because my "source code is different from the original version." This seems to be caused by an attempt to change code whilst debugging. I never do this. I searched for help and found that this problem can be corrected in the full version of VS - but I have Express and the options mentioned are not available. I also read that by deleting files from Bin and Obj, the problem could be fixed. Didn't work either. Luckily, I had a copy of the project from a few hours earlier. This ...Show All

  • .NET Development get all form names.. and their tags please

    I itterate through all the forms of my solution like so: Assembly asm = Assembly .GetExecutingAssembly(); ArrayList allForms = new ArrayList (); foreach ( Type t in asm.GetTypes()) { if (t.BaseType == typeof ( Form )) { allForms.Add(t.Name); } } Anyone have any idea how I would then get the Tag property for each of these Forms that are places in the allForms ArrayList Thanks. You can’t... at least not without having an instance of those forums. Remember that reflection like what you are doing only involves examining type information, not examining an actual instantiated object and without an instance there is virtually nothing read ahead of time. Whil ...Show All

  • Visual Studio Trigger ms build from inside visual studio build (c++ project)

    Hi, I have a small ms build project for updating a file containing version info (using the CommunityTaks) Now i want this build script to be called after i build the c++ project in visual studio. How can i do this nm, i found the solution. I made a updateversion.proj file for msbuild Then i made a updateversion.cmd file setting the path variables and runs the msbuild In my c++ on the post-build event i call the updateversion.cmd file both the proj and cmd file are located in the project folder ...Show All

  • .NET Development Limit the row number result in a .Select() method.

    Hi! I have a DataTable with 180.000 rows, i need get the rows one by one with a less ID and TTL = 0, i use this: DataRow[] NextValue = dt.Select("TTL = 0", "ID") ; Debug.Print("Arr" + NextValue.Length.ToString()); if (NextValue.Length > 0) { // Do stuff with NextValue[0] .... }   The problem is, that the firsts times ... the NextValue array could have 179.999 DataRows... and next 179.998 ... etc.. etc... Do this query spend a lot of time, i need reduce the time but ... how Some idea Regards. Fill the datatable with only the records you need at that particular moment. dt.Fill(myTable, myCustomParameter, myCustomParameter) ...Show All

  • Visual Studio Express Editions Are there any new VB 2005 coding competitions going now?

    Are there any new VB 2005 coding competitions going now Thanks Kim ...Show All

  • Windows Forms Best Practices Disposing under inherited controls

    Dear Sirs: Two quick questions: 1) I have a MyLabel: Control, that creates a different Font to use as default, the constructor looks like: public MyLabel() { mFont= new Font(...); Font = mFont; } Question: should I override Dispose(bool) from Control and call mFont.Dispose() Or that will be taken care of by Control 2) To speed things up, I cache a LinearGradientBrush (mBrush), and create a new one when ReSizing, instead of doing so in OnPaint. Should I call if (mBrush !=null) mBrush.Dispose() before mBrush = new LinearGradientBrush(...); whenever I have to recreate the brush Thanks Daniel (a newbie at Disposing matters) If a class instance runs out of focus then the dispose method will (eventually) ...Show All

  • Visual Basic Calling an exe multiple times

    I have to develop an application where I need to generate PDF from HTML. I am using ABCPdf component for the same. Now I am giving my users a web interface where they can select the HTML documents (lets say HTML1.html,HTML2.html,HTML3.html ...so on) and then the PDF gets created by invoking an exe which does all the work in the background. Now i want a scalable and robust solution to accomplish this task as my users can be any number and there can be n numbers of html documents to be converted to pdf. For example my user1 schedules 20 HTML files to convert to PDF like wise my user2 also schedules his 20 html files to be converted to PDF and there is no limit to the number of users. and so on .. so if I develop an exe to do the task ...Show All

  • Visual C++ Calling C# Main() in C++.NET

    Hi, I am a newbie and I wanted to know if it is possible to call an application written in C# using C++.NET. I know that Main() is the entry point of the this C# application...so can I launch the C# application by calling its Main() from a C++.net program Is this related to managed and unmanaged code Do I need to include the class where Main() is located in the C++.net program Should I do that by "#using classWhereMainIsWritten" or using the namespace Help! Here is what you want. C# code, t.cs: public class M {     public static void Main()     {         System.Console.WriteLine("hello from C#");     ...Show All

  • SQL Server ActiveX Script Task/Function Not Found

    We have a SQL Server 2005 Cluster that we are trying to send email from to notify when certain jobs have completed, failed, etc. We are having a bit of a problem getting the email to work and I believe that the failure is at the SMTP server, not at the SQL level. That being said, I'm trying to create a simple SSIS package that I can use to test connectivity to the SMTP server with and send email. I've added an ActiveX Script Task that calls a COM object that actually sends the email. I keep getting a "Function not found." error when I try to execute the package, and I have no idea why I'm getting that. It says that the errors were found during validation. Can anyone help Function not found ...Show All

  • Visual C# Code convention

    Hello, As a development team leader I have a difficulty to exlpain logically the following case: We write code in c#, designing classes that will hold data(stored in SQL DB). Let's say for example a class which will hold the DB user information. The DB table will hold the followin columns: [UserID],[UserFirstName],[UserLastName],etc... Now the class will hold the following properties: UserId,FirstName,LastName. The question is why using "UserId"(as the property name) and not just "ID" like any other native objects in the .net framework Thanks, Itzik Paz. UserId is more descriptive of what the field actually is.  Id is short for Identifier, and could be an identif ...Show All

  • Visual C# Compiler Error CS0570 from C++ defined property

    Compiler Error CS0570 Does anyone understand error CS0570 'class' is not supported by the language This error occurs when using imported metadata that was generated by another compiler. Your code attempted to use a class member that the compiler cannot process. The code being called was written in Managed C++ paraphrased like so: public ref class FilePath { ... [MyPropAttribute] property int Name { const int get(); } ... }; The attribute [MyPropAttribute] is defined like so: [System::AttributeUsageAttribute(System::AttributeTargets::Property)] public ref class MyPropAttribute: public System::Attribute {...}; When I try to use the property in C# code I get CS0570, but see no document on how to get around t ...Show All

  • Visual Studio Express Editions error C3861: identifier not found and others

    Hi I have an old project which works well in studio 2003.But when i try to compile it with express c++ 2005.On the first go it gave the error'Command line error D8045 : cannot compile C file'.I looked the error up and changed the option compile as 'Compile as C++ code(/tp)'.After it gave another error after which i changed the option of using 'precompiled errors ' to 'not using precompiled errors' Now when i am compiling a list of arnd 100 errors pop up.Some of it goes like this show.c(23) : error C2061: syntax error : identifier 'matrix' .\show.c(24) : error C2061: syntax error : identifier 'cmatrix' .\show.c(25) : error C2143: syntax error : missing ';' before '*' .\show.c(25) : error C4430: missing type specifier - int assumed. Note: C+ ...Show All

  • .NET Development How to regex everything before start of a specific string

    How can I regex all chars starting from Substring(1, ...) to ... where ... is the start of the first occurance of html tag "<br>" in the incoming string In other words, strip everything after the first encountered <br> in the string ...Show All

  • Windows Search Technologies WDS 3.0 RTW gives error trying to index Outlook Express message store

    When WDS 3.0 RTW tries to index the Outlook Express message store, I am getting the pop-up error: "Outlook Express could not be started. The application was unable to open the Outlook Express message store. Your computer may be out of memory or your disk is full. Contact Microsoft support for further assistance. (0x80004005, 183)" I have plenty of memory and the disk is not full. Does this version index OE Any idea how to resolve this I am also seeing events such as these in the Event Viewer: Event Type: Warning Event Source: Windows Search Service Event Category: Gatherer Event ID: 3036 Date: 10/26/2006 Time: 12:09:18 PM User: N/A Computer: PC1 Description: The content source < ...Show All

  • Windows Forms Binding Data to DataGridView - don't select a row

    Hi, I'm binding data to a DataGridView: DataView dv = ss.GetAllCenterLevels(_stockCenterID).Tables[0].DefaultView; dgvStockLevels.DataSource = dv; This works fine and data is bound to the DataGridView fine. However the first row is automatically select, How do I bind the gird so no rows are selected (I want the user to select the row) Thanks may be you can try: private void Autoselect_Load( object sender, EventArgs e) { Table_AB TBC = new Table_AB (); DataTable TB = TBC.GetTable(); this .dataGridView1.DataSource = TB.DefaultView; this .dataGridView1.Rows[0].Cells[0].Selected = false ; } ...Show All

©2008 Software Development Network