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

Software Development Network >> Rui Figueiredo's Q&A profile

Rui Figueiredo

Member List

Tovdb
arcliner
Jon Braganza
yanivpinhas
laurag
pidnas
Toad62
SPWilkinson
Tomik
Territorial Musings
malkie
Velen
ronny.dahl
Sree Prakash
zdrae
ps1terry
Subhosh
Yashwardhan
aguess
DD_Helmetman
Only Title

Rui Figueiredo's Q&A profile

  • Visual Basic Textbox Caret Line, Col

    I'm trying to find the Line and Column of the caret. When I searched these forums earlier, I found a this Function: How 'bout this function: Public Function GetCaretPosition( ByVal tb As TextBox) As Point Dim oldpos As Integer = tb.SelectionStart Dim y As Integer = tb.GetLineFromCharIndex(tb.SelectionStart) Dim x As Integer = -1 Dim cnt As Integer = -1 While tb.GetLineFromCharIndex(tb.SelectionStart) = y If tb.SelectionStart - 1 > 0 Then tb.SelectionStart -= 1 cnt += 1 Else x = oldpos Exit While End If End While If x < 0 Then x = cnt End If tb.SelectionStart = oldpos Return New Point(x, y) ...Show All

  • Visual Basic Are you running MSDN Library

    Hi, we are currently migrating our VB.NET VS 2003 projects to VS 2005. Some of our developers are experiencing performance problems with their VS 2005 IDE. These problems are becoming a blocking issue since it slows down their development time... The performance problems are multiple: slow builds, slow Intellisense, ... but when opening a designer screen with a PropertyGrid (eg. the "Properties" - "Compile" window of a VB.NET project's properties, the "embedded resource editor", ...) is really slow. The PropertyGrid draws itself one 'cell' every second, and in the case of a resource file with 100+ lines this takes a very long time to render. When we place another window over this property grid, or if we 'hide' ...Show All

  • Windows Forms Create toolstrip with default buttons

    Hi, I want to create a new toolstrip with some default buttons (something like the bindingnavigator). I create a new class exToolstrip Public Class exToolstrip Inherits ToolStrip I add the toolstripbuttons in the InitializeComponent Public Sub New() MyBase.New() InitializeComponent() End Sub Ho wever, in my testproject i can't change the inserted toolstripbuttons or reorder them. this is normal, but i want something else: in the bindingnavigator, for example, you can change the buttons because the buttons are not in the bindingnavigator itself, but are added in the form in the InitializeComponent class. I want to make a control to do the same. Any idea thx in advance, Stijn W ...Show All

  • Microsoft ISV Community Center Forums Can you use VBA to access a spread sheet embedded in a word doc?

    I am trying to use VBA code written in MSWord to access an embedded spread sheet. I can't find any documentation on how this is suppose to work. Does word access the sheet through an instance of excel Is the sheet part of the document so I can find it in the "ThisDocument " I have tried everything I can think of, so any help would be appreciated. The primary verb is to activate, same as clicking the object. You can use that but there is no code to deactivate the object when completed. Have not tried using verbs with a msoEmbeddedOLEObject, so can not say. Did you try ...Show All

  • SQL Server OpenRowSet fails in SQL 2005 even when Ad Hoc allowed

    I have a Windows 2003 64-bit server running SQL 2005. I am trying to run an OpenRowSet query, but I am getting " "cannot create instance of linked server" (null)" The OpenRowSet I am trying to run was running perfectly fine on the same machine before we moved to SQL 2005 and runs fine on many other machines - so I do not think it is an issue with the openrowset itself. When I've had his issue on other machines, I have run the following: sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure ‘Ad Hoc Distributed Queries’, 1; GO RECONFIGURE; GO And I could then run the Ad Hoc queries fine. But, when I try ...Show All

  • Visual C++ 'Use Managed Extensions' woes

    I have a native C++ DLL that stands in-between a high level C# application and a low level proprietary driver (all built under Visual Studio 2003) and was recently found to be not working properly when managed extensions were enabled but is fine when they are not, and of course we need em. The problem seems to lie in a rather ugly data structure that is defined like so: struct CalData_T { short LinCountsNb[64]; short LinCountsWb[64]; short MaxAgcErr[76]; short AttenOnErr[76]; struct Tuner_T { short AgcCounts[32]; short TunerGain[32]; }Tuner[76]; short Temp; }CalData; When populating this structure with data we can access ...Show All

  • Visual Studio 2008 (Pre-release) Button styles in a ToolBar?

    Looking for a clue to figure out what's going on. Buttons within a toolbar don't use the default button style. How does ToolBar change the style Will this help http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=681467&SiteID=1 ...Show All

  • Visual C++ Linker Error LNK2001 When Calling a Function from a DLL

    Hi, I am using VC++ 6.0 Standard Edition, trying to call a function from a DLL using the Load Time method. The .exe compiles fine, but it seems that the linker does not see the .lib and gives me the 2001 error. I'm guessing it could be an IDE parameter that I have missed. Here's a simplified version of the code: ============ DLL =================== #include "stdafx.h" #define dll_entry( type ) extern "C" type __stdcall dll_entry( int ) run_alert () { return 15; } ========= .DEF File =========================== LIBRARY psMyDll EXPORTS run_alert ================Executable module ==================== #include "stdafx.h" //#include "psMyDll.h" int run_alert(void ...Show All

  • Windows Forms non-bound grid control in .NET? (like MSHFlexGrid)

    I'm halfway through writing a mini spreadsheet-like application in VB6 where the user can freely enter text into a table of cells, format them, get results from simple maths, etc. I would now like to rewrite in VB 2005 Express but can't find a suitable unbound grid control to replace MSHFlexGrid in .NET. I would prefer not to use a COM component if possible (and have seen quite a few worrying notes in the forums on MSHFlexGrid behaving badly in .NET). Is there a .NET based control I could use DataGridView seems to insist on being bound to data so isn't suitable (unless there's a property I can set to unbind it ). My application won't be bound to data, but lets the user type whatever data they want into the cells. ...Show All

  • SQL Server deadlock errors

    I'm setting up a push merge replication, after the initial merge agent completes without errors I move the subscriber from a wired connection to a wireless connection. At this point I get an error… The schema script …Program Files\Microsoft SQL Server\MSSQL\REPLDATA\unc\[ table ]_93.sch' could not be propagated to the subscriber. (Source: Merge Replication Provider (Agent); Error number: -2147201001) Cannot drop the table '[ table ]' because it is being used for replication. (Source: dfdmfvltgh09 (Data source); Error number: 3724) After this error the initial merge agent kicks off again trying to apply the initial snapshot where I then get the following deadlock errors. Transaction (Process ...Show All

  • Software Development for Windows Vista Windows Vista Application Compatibility Questionnaire

    Hi, Which types of questions are asked in "Windows Vista Application Compatibility Questionnaire" section How many questions are there Regards, Sakil. ...Show All

  • .NET Development Is there a way to Redirect STDOUT/STDERR during AppDomain.ExecuteAssembly like Process.Start's redirection streams

    I'm trying to locate the ability to redirect the stdout/stderr within an AppDomain when making calls to the ExecuteAssembly method similar to the ability to do so with Process.Start's RedirectStandardError/ RedirectStandardOutput Thanks, Ty I too am looking for this ability. Or, similarly, any ability to redirect the stdout/stderr of an assembly without having to start a new process, but by running it in the same process either in a separate domain or not. ...Show All

  • SQL Server table scalar function syntax. . how wrong and how far am i?

    SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION DetailedView AS BEGIN Declare @fieldname varchar ( 10 ) Declare @stmt varchar ( 4000 ) Declare Fields Cursor For Select Amounttype From Amounttypes Set @stmt = 'Select pono, myid, billtype' Open Fields Fetch Next From Fields Into @fieldname While @@Fetch_Status = 0 Begin Set @stmt = @stmt + ', sum(amountfc * Case When amounttype = ''' + @fieldname + ''' Then 1 Else 0 End) As ' + @fieldname Fetch Next From Fields Into @fieldname End Close Fields Deallocate Fields Set @stmt = @stmt + ' From multiplebillsviewall Group By pono, myId,billty ...Show All

  • Visual FoxPro Dbf Autoincrement with ADO

    Hello everybody, I created a table with an autoincrement field( CREATE TABLE `Synch_LogFile` ( `ID` I Autoinc NOT NULL, `TableName` C (100) NOT NULL, ...) ) when I try To open it by ADO with VB (Select * From Synch_LogFile) I get this error message: [Microsoft][ODBC Visual FoxPro Driver]Not a table. What's I'm doing wrong Thanks, 1) it will not work with ODBC and newer table capabilities such as autoincrenent fields as I said. On top of that you are invoking MSASQL and nto VFO ODBC Driver 2) Should work with OleDb Provider. What is your code to update What is the failure error message Remember you cannot/should not write to the autoinc field as it fills automatically. Also remember to provide values for any columns wit ...Show All

  • Visual Studio Express Editions Help displaying search results in a label

    Can someone please help me with my code. I believe it is working properly but i don't know how to display my search results in label. Please take a look at what i have so far any help would be grately appreciated. I am using VB 2005 express for the front which is connect to an Access DB for the back end. Private Sub CheckInReportSearchButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckInReportSearchButton.Click Dim ds As New WrightBrothersFinalDataSet Dim ta As New WrightBrothersFinalDataSetTableAdapters.CheckInReportQueryTableAdapter Dim vdate As Date vdate = Me.CheckInDateTimePicker1.Text ta.FillBy(ds.CheckInReportQuery, vdate) Me.CheckInReportQueryBindingSource.DataSource ...Show All

©2008 Software Development Network