JoraPJL's Q&A profile
Software Development for Windows Vista Vista it's out and I still have the Power icon problem
Hello, I've just installed the Windows Vista Beta 2 (Build 5384) and so far so good, except for one thing: somehow i can't activate the option to show the power icon on the "notification are" of the "taskbar". When i go to the properties of the "taskbar", and then go to the "notification area" options, i'm allowed to select to always show the clock, volume and network icons, but not the power icon. Do you know what can i do to fix this problem Because of this problem, i never know when the battery is low. Thanks for your help!! Hello again... I thought my machine was battery-enable, but it doesn't shows any battery icon in the tray. And in the "Tas ...Show All
Visual Studio 2008 (Pre-release) how to inherit winfx usercontrol?
In the project I attached, I have two winfx usercontrols named UserControl1( parent class ) and UserControl2( child class ) .I want UserControl2 inherit UserControl1. Also in UserControl2 I overwrite the parent method. After inherit from the parent class UserControl1, I want to append a new button in UserControl2.xaml, but it seems that UserControl2.xaml can not display the new button control, just display the parent usercontrol1.i find a workaround is to invoke the base class method to add the new button control in UserControl1. xaml.cs. Could you please tell me why I can not add the new button control in UserControl2.xaml directly =========== UserControl1.xaml <UserControl x:Class=&quo ...Show All
Visual Studio Express Editions Random
i need to make a random function that is only from 1 to 7 and that will not repeat eg 1,2,3,4,5,6,7 random number 3 so 1,2,4,5,6,7 random number 5 so 1,2,4,6,7, random number 6 so 1,2,4,7 and so on. i have tried to make it work but i couldn't I was actually looking for code I wrote, which was smaller than this. But this gets my vote because it creates an object that can be passed to the array, for my money, this is good OO coding and that's why I like it, it reminds me of how the STL works. ...Show All
Smart Device Development Showing only one Application Form in 'Running Programs'
Hi all, I came across the solution to this only the other day, but unfortunatley I haven't been able to find the website :( Anyway, what I want to do is to only display the one main Application Form name in the 'Running Programs' applet on the device. At the moment, because my application uses many Forms I can get upto around 6 Form entries in the 'Running Programs' applet. What do I need to do to just have the one entry in the 'Running Programs' applet Thanks in advance. Hi Tryst, This is the way I do it, see if it helps you too. I call a function from every form while traversing from a form to another. GeneralFunctions.MoveToForm(this, new Form2()); where, this is the current form which needs to close, and new Form2() is th ...Show All
.NET Development New Socket returned by Socket.Accept()
Hi all, Im writting an network app with the tipical fragment of code in SERVER side: /* Server side */ IPEndPoint myEndPoint = new IPEndPoint ( IPAddress .Any, 4000); Socket mySocket = new Socket ( myEndPoint.AddressFamily , SocketType .Stream, ProtocolType .Tcp); mySocket.Bind(myEndPoint); mySocket.Listen(-1 ); Console .WriteLine( "Server listening..." ); Socket client = mySocket.Accept(); Console .WriteLine( "First Local EndPoint : {0}; Client socket LocalEndPoint: {1}" , mySocket.LocalEndPoint.ToString(), client.LocalEndPoint.ToString(), ); /*********/ My question is why client.LocalEndPoint is the same that mySocket.LocalEntPoint I read in MSDN that Socket.Accept() crea ...Show All
Windows Forms What if I do not need my own class?
(VS2005 - beta 2) Hello, is there anyway to capture a keypress or keydown event in the DataGridView I know there's events called KeyDown and Keypress, but if the DGV is in edit mode, they never get caught. My ultimate goal is to make it so pressing enter moves to the Cell to the right, instead of to the next row but I need to know what key is being pressed before I can do that. Thanks -Adam To handle the KeyDown and KeyPress events for the editing control just handle the EditingControlShowing event and access the events on the editing control. Check out the DataGridView faq for more info: http://www.windowsforms.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc That said, ...Show All
Visual Basic array error
i wrote a function to calculate the molecular weight for chemical calculation but the function work in wrong way and i test every thing and i found the error raised from certein part and if you give the function NaOH return calculation for NaO this is function Function CalculateTheMW( ByVal Formula As String ) As Double 'Variablies-------------------------------------------- Dim charstr() As Char Dim Counter, Number As Integer Dim Value, Total, DotValue, ParaValue As Double Dim Temp, Numberstr As String Dim State1, State2 As Boolean 'body of function-------------------------------------- charstr = Formula.ToCharArray State1 = False Counter = 0 '======= ...Show All
Visual C++ How to get the local time in miliseconds
Dear All, using win32 C++, I just want to know what is the usual way to get the local time in the format "hr:min:sec.milisec" Your help is much appreciated regards Bassam Thanks four your respons. What header files should I use in order to implement your code snippet. I have used another way to get the local time, unfortunately, it doesn'r give the milisecond. I wounder if you can help me with a coherent code relevant to mine because it is more understandable and uses the the same header file "ctime.h". My code is: #include <iostream> using std::cout; using std::endl; #include <ctime> const unsigned short timeBufferSize = 12; c ...Show All
Visual Studio Team System Schema Compare
I have 2 questions about the Schema Compare functionality in DB Pro: 1.)On a DB that has replication enabled, and is being Published from, there will be extra replication triggers on the selected table objects (e.g., Articles) that SQL Server inserts at the time of setting up replication. Further more, given two databases with identical schemas, the replication related triggers placed on the included table objects will not be named the same. This appears to be because the strategy chosen by Microsoft to name the replication triggers includes GUIDs. That said, in my particular situation, there are Update & Delete triggers on these tables, too, that we have created on our tables. So, is there some way when doing a Schema Compare in D ...Show All
Visual C++ Setting the cursor
I am trying to set a cursor that I have created in my MFC application. I have managed to set the icon with this line: m_pMainWnd->SetIcon(::LoadIcon(NULL, IDI_QUESTION), true); However, mainWnd does not have a setCursor function. So I thought I'd have to go to my view class, but, that doesn't have a setCursor (or a load Cursor) function. I found this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=162844&SiteID=1 I tried to do what he said in the view class, but it didn't work. It would not load the cursor. BOOL CLab2View::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { SetCursor(AfxGetApp()->LoadCursor(IDC_CURSOR1)); return CView::OnSetCursor(pWnd, nHitTest, me ...Show All
Software Development for Windows Vista Why can't I inherit from InvokeWebServiceActivity?
Hi I want to add som custom behavior to the InvokeWebServiceActivity but realize that it is marked as sealed (oh horror!) First. why is that Second. What to do then Do I have to recreate to whole InvokeWebServiceActivity behavior and add my extensions to this I guess i could reverse engineer with Reflector but come on. Im lazy :) If the ONLY way is to do it my self how do I get the "Web service Add url dialog" to show up for my custom activity. Second. How do i genrate the proxy regards Anders If you just need to work with the proxy, you can use the Invoking event and cast the proxy on the eventargs to your proxy type and then set properties on it. If you want to interact wit ...Show All
.NET Development Querying an MSXML.ISchema object to retrieve defined elements
Hello, I create a schema cache and load an XSD schema into it. Is there anyway to query what is contained within this schema programmatically I can manage to get the top level element definition using the following (VB 6.0 immediate window) but I can't navigate below this element. The schema is very simple and has a top level element <MESSAGE> which can contain a choice of either <PHONE>, <FAX> or <MAIL>. schSch.elements.length 1 schSch.elements.item(0).name MESSAGE As the initial '.elements.length' is 1, how can I navigate/interrogate the schema to ascertain the sub elements <PHONE>, <FAX> or <MAIL> and what their grouping is (i.e. choice, sequence, etc.) I realise I can load the ...Show All
Windows Forms public IList GetItems()
hi, I wants to know the return type of the following is IList public IList GetItems() whats the use explanation...... hi, I wants to ask whats the use of the declaration and why we have written there return type as IList Please explain in detail.... Again one question whats the use of following declaration IList variablename=new ArrayList(); explanation needed... ...Show All
Visual FoxPro Forcing code into a Click Event
I have added a grid to a form. I'm using the code below to control the contents of the grid. I want to react when the user clicks on Column4.Text1. How can I add an IF...ENDIF set of code to the ThisForm.Grid1.Column4.Text1.Click event WITH ThisForm.Grid1 .RecordSource = 'viols' .Column1.ControlSource = 'viols.oxv' .Column1.Width = 83 .Column1.Header1.Caption = 'Current status' .Column2.ControlSource = 'viols.violation' .Column2.Width = 320 .Column2.Header1.Caption = 'Violation' .Column3.ControlSource = 'viols.allowed' .Column3.Width = 81 .Column3.Header1.Caption = 'Violation Amt' .Column4.ControlSource = 'viols.new_oxv' .Column4.Width = 104 .Column4.Header1.Caption = 'Change status to:' ENDWITH ThisForm.Grid1.Column4.Tex ...Show All
SQL Server Is Service Broker Enabled?
Hello, I've been trying for two days now to get SQL Cache Dependencies to work. So far, nothing has worked, and I have been around the block a few times now on this one. So now I'm going back to basics, as I think my code and queries are fine. My first question is how to confirm that I have a Service Broker that is up and running. I am using SSX as my database engine. Other posts mention how the "look at the service broker folder", and I don't see a folder anywhere. Can someone tell me what to look for I've added various SP's based on tutorials on web sites, so I can't tell if those SP's are mine or theirs at this point (I've been at this too long). Where is the "folder" the other posts have mentioned Do I need to do ...Show All
