|
Dave Kreskowiak wrote: f it were that "urgent", you'd either be Googling this question to until your fingers bled, or running to the bathroom, whichever the case may be.
Very true
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Dave Kreskowiak wrote: If it were that "urgent", you'd either be Googling this question to until your fingers bled, or running to the bathroom, whichever the case may be.
Well said Dave.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Say something useful dammit! Don't post rubbish like that constantly.
|
|
|
|
|
|
Check out File.Copy.
using System;
using System.IO;
class Test
{
public static void Main()
{
string path = @"c:\temp\MyTest.txt";
if (!File.Exists(path))
{
using (StreamWriter sw = File.CreateText(path))
{
sw.WriteLine("Hello");
sw.WriteLine("And");
sw.WriteLine("Welcome");
}
}
using (StreamReader sr = File.OpenText(path))
{
string s = "";
while ((s = sr.ReadLine()) != null)
{
Console.WriteLine(s);
}
}
try
{
string path2 = path + "temp";
File.Delete(path2);
File.Copy(path, path2);
Console.WriteLine("{0} was copied to {1}.", path, path2);
File.Delete(path2);
Console.WriteLine("{0} was successfully deleted.", path2);
}
catch (Exception e)
{
Console.WriteLine("The process failed: {0}", e.ToString());
}
}
}
Paul Watson wrote:
Like, if you say sort of, like, you know, one more, you know, time, I'm going to, like, you know, sort of sort you out, you know.
|
|
|
|
|
How to avoid MDIParent showing scroll bars whenever the child form exceeds client area? Setting MDIParent.AutoScroll to false doesn't help.
|
|
|
|
|
It wouldn't. Why would you want to do this?
Suppose I have a form that I've moved right to the bottom right hand corner of my screen and the main form is maximized. Then, suppose that I have changed the resolution of my monitor down from 1024 to 800*600, all of a sudden there's a form that is hidden from me and I couldn't get at it because there are no scroll bars to help me get to it.
There are carefully thought out reasons for the way that Windows usually works and users are used to them. If you try to break the behaviour in any way you run the risk of alienating your users.
|
|
|
|
|
> Why would you want to do this?
I'm designing an imaging application. Both Photoshop and Paint Shop PRO does not show scroll bars in their MDI-based environment.
> If you try to break the behaviour in any way you run the risk of alienating your users.
So in this case and in my opinion - not showing the scroll bars is the "more" standard behaviour.
The whole problem should be solved via the MDIClient, but I don't even know where to start.
|
|
|
|
|
I'll look more carefully, later. There is the
solution .
But not a managed solution.
|
|
|
|
|
There is no managed solution. This behavior of the MdiClient control is by design. It's standard behavior in document, more specifically text editor, editing. Image editing is a whole different kind of MDI setup. Both the applications you mentioned do NOT use the managed MDIClient in the .NET Framework. They both use their own, custom-built, MDI containers.
|
|
|
|
|
Hi,
I have "English and Japanese" resources in my VC++.Net 2003 application (in same .rc file). Depending on the OS language the application is able to display the English (on English XP OS) or Japanese resources (on Japanese XP OS) properly.
Now, I have added the "Neutral resources" to this existing application. The problem is, irrespective of the OS language the application is displaying the "Neutral resources" (Even in English and Japanese OS).
My requirement here is,
1. If the OS language is English then the application should display "English resources"
2. If the OS language is Japanese then the application should display the "Japanese resources"
3. Else on any other language OS , the application should display the "Neutral resources.
Thanks & Regards,
Neeraj
|
|
|
|
|
hi friends
i have how to javascript string null value
i have get the sessin value in one string variable
var ListId='<%=Session["LiatingId"]%>']
if(ListId != ""){
alert('not null')}
else alert('null')
if the listid is null then also alert('not null ')is executed
how to solve this problem
Thanks in Advance
|
|
|
|
|
What does Viewsource show up?
Did you check with length?
|
|
|
|
|
yes i have solved that problem,using string.length function
|
|
|
|
|
Actually even in C#, the length comparison is considered faster than string.Empty == strVariable
|
|
|
|
|
I've done scripting long back but i think javascript treats null as "null" [string]
U need to check these string rather than checking the empty state.
Just give a try
--Akki
|
|
|
|
|
Whenever I "reload" my rssdocument
as in
rssdoc.Load(rssReader);
my childnode count goes down to zero. What is up with that? I want to reload a rss feed every minute or so. What are my options?
|
|
|
|
|
|
dear all,
right now i have a final semester project. and the defination is "Operating Mobile Through PC using bluetooth connectivity"
so i wont to know how to start bluetooth programming with vb.net... so plz help me..
Chirag
|
|
|
|
|
Better buy a book and start read the concepts and try it.
and here we will help you if you get any error.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
chirag visavadia wrote: bluetooth programming with vb.net
Good Luck!
|
|
|
|
|
Chirag - BlueTooth communication is normally done via a bit of "Smoke and Mirrors". In other words, there is no actual BlueTooth API in .NET. What you want to do is write to and read from the serial ports. This[^] article gives information on communicating with a device via BlueTooth.
|
|
|
|
|
Actually the native interface to Microsoft's Bluetooth stack (for Windows XP SP1 and later) is via Windows Sockets. However, the .NET Framework System.Net.Sockets.Socket class does not allow you to create a Bluetooth socket - it does not appear in the AddressFamily enumeration. It might be possible to cast AF_BTH (which has the value 32) to an AddressFamily , but this seems a bit (!) dodgy.
However, programming Bluetooth via sockets is pretty hard - it's a lot easier to set up a binding to a serial port profile using whatever tools your Bluetooth drivers make available.
|
|
|
|
|
Hi,
Im quite new to xpath in .Net. I have an XML-structure shown below that contain measurements(diameters,areas etc) The one below includes two different measurements of an Bi diameter and also the mean value. I now want to extract the mean value.(the <value>5.0</value> tag.
As mentioned ,the file consists of many different measurements using the same strucutre. With the following expression I manage to extract the value but then I also get all the following mean values from all of the other calculations. How do I extract ONLY that node. I would really appriciate some help thanks!
Expression:
//item/item/concept[@codValue='11820-8']/following-sibling::item/value[@codValue='R-00317']/following::value
<item valType="CONTAINER">
<concept codValue="125005"> MeasureGroup</concept>
<item valType="NUM" relType="CONTAINS">
<concept codValue="11820-8">Bi Diameter</concept>
<value>4.9</value>
</item>
<item valType="NUM">
<concept codValue="11820-8">Bi Diameter</concept>
<value>5.1</value>
</item>
<item valType="NUM">
<concept codValue="11820-8">Bi Diameter</concept>
<item valType="CODE">
<value codValue="R-00317">Mean</value>
</item>
<value>5.0</value>
</item>
</item>
|
|
|
|
|
I answered this cross-post in the XML forum. Please don't cross-post.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|