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

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

Alpehans

Member List

derekyeong
textman
pippen
My Vizai
Dhananjaya Bk
PhrankBooth
David Weller - MSFT
April m
RajDas
TABLO
aahkam
guilhermecvm94558
Paul Gerald
Shivapriya
jbearfoot
Ian Vink
amendez
VikasAgr
gracias
mackenzie 2480
Only Title

Alpehans's Q&A profile

  • Windows Forms VB2005 Add system Date to new record in Datagridview new

    Hello, When I push the add button a new row is added to my datagridview. How can I automatically insert the system date in the new row in the column 'Date' I hope to hear from you guys... It's not exactly code... go to your DataTable design, highlight the field you want to put the date in, and enter "=Now()" in its DefaultValue property. EDIT - This won't work.  I think the reply refers to the column setting of the DataGridView. ...Show All

  • SQL Server DataGridView/SQL Express - Updating record using seperate form

    Hi, I am currently using VC++/Cli 2005. In a project, I'm using a DataGridView control to show records from a SQL Express 2005 table. Instead of updating a specific item directly within DataGridView control, I would like to open a new form and allow user to update selected record/item within that form. The reason to update this way is conditionned by the fact that I have 3 levels of detail as following: Level 0 Level 1 Level 2 1:N 1:N Furniture --> Component --> Component You all understand that update form of Level1 will/must include, as Level0 do, another DataGridView control to display/detail all related items issued from next level. This explains why I can't ...Show All

  • Smart Device Development GPSID: GPSOpenDevice does not start GPS

    I'm desperately trying to access the built-in GPS of a FujitsuSiemens PocketLoox N560. I can successfully call GPSOpenDevice(NULL, NULL, NULL, 0); and also get a correct handle. But the GPS hardware does not start. The PocketLoox normally indicates active GPS with a blinking orange light, but thats not the case. So far I tried the following things: Accessing the GPS the 'old fashioned' way, using a COM-Port connection. That works. As soon as I open the COM port, blinking light goes on & the GPS (sporadically) sends NMEA messages. Run the C# sample from MSDN - that also works. (But I need a C++ solution for my project What else do I have to do to start the GPS hardware ! Here's the source code I'm using: [...] if (gps_handle == NULL ...Show All

  • Gadgets How to Save User Preferences on Spaces?

    Can someone explain to me how to save user preferences on Spaces or point me to some instructions If there is a way to determine whether a gadget is on Spaces or Live, that would be good to know too so that I can hide the preference link in Spaces view mode. I got one of my gadgets to save user preferences on Live but it's not working on Spaces. Thanks Someone with more knowledge will be around soon I am sure, but this is the method I use var prefValue = m_module.getPreference("some value"); if (prefValue == null) { m_module.setPreference("some value", " some value "); } I just asked a similar question about view mode vs author mod ...Show All

  • .NET Development Problem about opening Office document in a new Window.

    Hi all (first post yipee), anyway.... currently my web application have an icon that allows the user to edit an office document (word./excel), it is begin brought up by window.open(). However, problem lays here, since this isn't a model/modeless dialog, the user is allowed to go back to the application and reclick the edit icon. This causes the first office document that popped up to become blank and a second office document window will come out. The function of the icon is simple, it just calls window.open(), i am just wondering if there is a way to not allow the user to go back to the parent window and click on the edit icon again. showmodelessdialog() does not work in this case, i have tired opening an excel document with it but it re ...Show All

  • Visual C# IntelliSence Bug in C# 2005

    string Test(string s) { return s; } int Test(int i) { return i; } void CallTest() { string s = ""; int i = 0; Test(s). IntelliSense not working here } It works in VS 2005 Standard. On the Test(s) line: I type ‘t’, intellisense shows me Test as the first choice. I type ‘(‘, intellisense shows me that there are 2 functions to chose from. So, intellisense works. You might check your settings in Tools | Options | Text Editor | C# | Intellisense to ensure you have everything turned on. ...Show All

  • Microsoft ISV Community Center Forums Hide/unhide

    I have a button that when the user presses the button the program will search an ordered column for values equal to 0 and hide the rows that has values equal to zero. If the rows already are hidden then they shall be revealed by pressing the button. My code is: Sub showHideButton_Klicka() Dim relativCell As Range Dim i As Integer, j As Integer, k As Integer Dim blnFirstFound As Boolean, blnLastFound As Boolean, blnIsHidden As Boolean Set relativCell = Worksheets("Berakning").Cells.Find("Rel.", LookIn:=xlValues) 'hittar forsta och sista cell med varde 0 Do Until IsEmpty(relativCell.Offset(i, 0)) = True Or blnLastFound = True If blnFirstFound = False Then If relativCell.Offset(i, 0) = 0 Then blnFirstFound = True k = i ...Show All

  • Smart Device Development Error Code c00e000b recieved when starting msmq on Pocket PC Phone Addition

    Hello All... Im getting error code c00e000b on a pocket pc device when using visadm to start msmq after installing it. when I use the verify short cut I get a successfull reply but when I use the status short cut I get the c00e000b error code. I have seen many posting on the internet for this error but no solutions. I downloaded the msmq cab from the MS web site to make sure I have the latest version, but Im not sure it is the right version for my processor my device has a Intel(R) PXA270 processor and Im using the msmq.arm.CAB There's no MSMQ CAB for WM 2003. You'd need to copy these files to device and configure MSMQ as described in Mark's blog or MSDN. These files are redistributable, so y ...Show All

  • Architecture Problema con la arquitectura de una aplicacion (referencias ciclicas)

    Hola, tengo un problema con la arquitectura de capas. Necesito que dos capas se comuniquen de forma reciproca la una con la otra y no se como hacerlo para no hacer referencias ciclicas. Espero que me podais ayudar, gracias. Shiveta, Una manera de aproximar este problema, si no puede ser evitado, es definir un conjunto externo de interfaces que definan las responsabilidades y funciones de cada capa en forma externa a la misma (normalmente en un assembly independiente), de forma tal que introducirlas como un tercer elemento rompan la referencia ciclica. De esta forma, cada una de las dos capas implementara las interfaces que le corresponden, a la vez que usara las interfaces opuestas para interactuar con la otra capa. Para terminar de ...Show All

  • Visual Studio project templates disappeared

    From one day to another my project templates disappeared. I can only create a Webapplication, but no WindowsApplication. I can't add a WindowForm to a project, only inherited forms. What can I do I reinstalled Visual Studio and followed the instructions of the Thread "Visual Basic Templates disappeared" but it didn't help. Hi Silke, Verify that the templates still exist on your system. The corresponding .zip files containing the templated files should be located under c:\program files\microsoft visual studio 8\common7\IDE\Project Templates and c:\program files\microsoft visual studio 8\common7\IDE\Item Templates. The .ZIP files will be located in a <language>\<LCID> subdirectory ...Show All

  • Visual C++ Getting garbage setting dialog box text

    Hi Folks; I'm trying to set the text of a dialog box with SetDlgItemText. As an example I'm trying: SetDlgItemText(hwnd, IDC_F1, "Some text"); where IDC_F1 is defined as the ID for an edit box. What I'm getting is just garbage and I thought maybe it was my font but I've set it do Courier New, size 8 which I thought was pretty standard. Maybe someone could shed some light on my sitation. I'm still having a couple issues getting this to work :(. Essentially what I have is a struct: struct WMIData { char CompName[25]; }; and the idea is this will be used in the gathering of system data. It gathers just fine but I still need to convert it to a format that I can use in a text box. L"Some tex ...Show All

  • Visual Studio 2008 (Pre-release) LineBreaks or Environment.NewLine -- which is more efficient?

    Quick question: in flow documents, are <LineBreak>s or inlines appended with \r\n more efficient memory/perf wise Thinking simply, I'd guess that the 4 extra bytes within the space allocated for the inline text is a lot cheaper than the extra 8 bytes on the GC heap + 4 bytes for pointer that it costs for a <LineBreak>. But if in rendering it has to do something fancy like convert \r\n to a LineBreak object, <LineBreak> would be cheaper. Thanks in advance, Rei There is already an overhead associated with using WPF document formatting. Unless you have hundreds of thousands of hard line breaks in your document, the savings of using NewLine (if any) wouldn't be significant ...Show All

  • Windows Forms Treeview adding nodes problem in Framework 2

    I have a user component called 'SiteJobs' which housed in my main application windows form. It basically consists of Treeview as main display object, and accept a string object which corresponding to job campaign. It has public method called 'AddJob' , as code below public void AddJob ( string campaign ) { if ( campaign == "" ) return ; TreeNode newNode = new TreeNode ( campaign ); newNode . Name = campaign ; tvJobs.Nodes.Add(newNode); lblCurrentJob . Text = "Job: " + campaign ; int index = tvJobs . Nodes . IndexOfKey ( campaign ); if ( index !=- 1 ) tvJobs . SelectedNode = tvJobs . Nodes [ index ]; if ( OnNewJobIsEntered != null ) On ...Show All

  • Visual C++ Bug: __alignof on member variable causes internal error

    // Compile in C++ mode struct Struct { __declspec(align(8)) char data[12]; int MemberFunction(); }; int Struct::MemberFunction() { return __alignof(data); } The above code causes a C1001 on the return line regardless of optimization settings. I tried it on 3 versions: VC 7.1 x86-32 VC 8.0 SP1 x86-32 VC 8.0 SP1 x86-64 Note that the above code is bad; __alignof is only documented to work on types. Report it at http://connect.microsoft.com/VisualStudio , and post the resulting issue URL here. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Question about content pipeline

    If i do this model1 = content.Load< Model >( "myModel" );   model2 = content.Load< Model >( "myModel" ); do model1 and model2 hold the same reference if not, does the data inside them (the vertices and index buffers) hold the same reference Thank You Yes, they are the same reference ... the content manager notes that it already loaded myModel the second time you request it and simply gives you the same object again :-) Incidentally, if you have more than one content manager, the default behavior is that requesting the same asset from two different managers will result in the asset being loaded into memory twice. I've got a sample on my website that shows how to get co ...Show All

©2008 Software Development Network